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
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.