adding tags to pods
I would like some advice as to the best way to implement this.
I want to add tags to my pods that can be entered as comma separated values into a column when creating the pod item. Then when a tag name is clicked I would like to list all pods items that have this tag attached to them.
Thanks.
7 Answers
You can try modifying this package I wrote to suit your needs:
http://podscms.org/packages/inline-pick-form/
Right now it's set up to add multiple categories as a related pod, but you could change the presave helper to save the comma separated values added to another field.
Not just tags, but a kind of field where the user can insert more than one iten, and each iten has your individual link/page...
I would also love this feature, has anyone implemented any kind of tagging module?
@clarinetlord can you explain your suggestion a little deeper?
Thanks, Adam
I'm having trouble getting this to work too. When I save the form, I get this error:
<blockquote>The page at http://example.com says: SQL failed; SQL: SELECT * FROM wp_pod_fields WHERE datatype = ORDER BY weight; Response: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY weight' at line 1</blockquote>
@clarinetlord's package is pretty simple and it's pretty sweet.
Once you import his package and you're ready to use it, be sure you've got a bidirectional pick setup between two pods. For instance if you have a book pod and a tag pod then you need to do the following.
1st setup your bidirectional picks between the book and tags pod
2nd set the tags pick in the book pod to a multi-select pick
3rd assign the select_categories input helper the tags pick in the books pod
4th add the select_categories pre save helper to the book pod
Save and play. It should be that easy. I was just using this for first time the other night and it was really that easy!
edited Jan 12 '11 at 2:14
I think that's where my confusion set in. So it sounds like this needs a separate pod for tags (or categories).
Do I understand then that this pod of tags (or categories) has no connection to the wordpress taxonomy?


