adding tags to pods

0

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.

asked Nov 25 '09 at 4:34

kunal17

11

add comment
enter at least 15 characters

7 Answers

2

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.

answered Aug 23 '10 at 12:51

clarinetlord

456

@clarinetloard's package would be great for this. I just recently tried it out and it works wonderfully. Although I think there's a bug with escaping single quotes when using it. When adding a tag with a single quote it re-appears in the "possible tags" pick list with a backslash preceeding it. e.g. Test's is Test\'s – hsatterwhite Jan 11 '11 at 9:16
add comment
enter at least 15 characters
0

Is it posible??

answered Aug 22 '10 at 9:32

iCristiano

11

add comment
enter at least 15 characters
0

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

answered Aug 22 '10 at 9:34

iCristiano

11

add comment
enter at least 15 characters
0

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

answered Nov 16 '10 at 1:23

aadchrom

1

add comment
enter at least 15 characters
0

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>

answered Jan 11 '11 at 3:24

scottnath

1

add comment
enter at least 15 characters
0

@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!

answered Jan 12 '11 at 2:10

hsatterwhite

211

edited Jan 12 '11 at 2:14

add comment
enter at least 15 characters
0

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?

answered Jan 18 '11 at 5:41

scottnath

1

Afte re-reading the "About" section of the package, I am going with no, it does not support native WordPress taxonomy. However you could modify the package to do so if you're up for the challenge. :) – hsatterwhite Jan 18 '11 at 11:41
add comment
enter at least 15 characters