tagit feature

Questionstagit feature
Bob asked 11 years ago

I am using the current paid version of PHP Grid and I am looking to add tagging to my database. I checked the sample for the tag it feature and saw how the notes field was set to convert entries to tags.

Is there an example that also shows how to read and display any current tags and how to save any newly created tags?

Thanks,
Bob

1 Answers
Abu Ghufran answered 11 years ago

Hello,

If you are talking about current tags like …
availableTags: ["c++", "java", "php", "javascript", "ruby", "python", "c"]

This is something outside the scope of the phpgrid component. However i can tell the steps required to make them dynamic.

1) Bind an on_update and on_insert event in tagit demo, and in callback split the comma separated submitted values and store them in some database table.
2) Run another query to select stored tags from table, and replace it with availableTags using php code.

This way, newly entered tags will be available in autocomplete of tagit.

Your Answer

13 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?