Tags in custom extension (ucm?)

84 views
Skip to first unread message

Bakual

unread,
Apr 14, 2013, 4:07:16 PM4/14/13
to joomla-...@googlegroups.com
I'm struggling a bit with trying to implement the new tag system into my component.
I was using https://github.com/elinw/joomla-cms/wiki/Using-tags-in-an-extension as a guide but it seems to be lacking some information (I guess?).
 
I was successful in adding the tags to my form and can add, edit and delete tags. This works fine using JHelperTags (instead of JTags like in doc).
I also add the (hopefully correct) contenttype to the #__content_types table during extension installation.
 
However when I try it with the similar tags module, I get a very interesting result. I see entries for my extension with a link to my item, but the title and alias of the item is somehow taken from a weblink, which obviously is wrong.
 
So I dived into the database to see what is going on and saw that in the #__contentitem_tag_map I have the entries for my tagged items, but with a "core_content_id" value of "1". Digging deeper I found that these field probably links to #__ucm_base or #__ucm_content or both. But those tables don't have any entry for my tagged items and the value "1" links to a weblink item in my case.
 
So maybe someone can shed some light on the purpose of those tables in general and how I get my tagged items into it. I'm sure I miss something somewhere.

Chad Windnagle

unread,
Apr 14, 2013, 6:33:20 PM4/14/13
to joomla-...@googlegroups.com
Hi, I'm not sure about your implementation (I don't know enough about tags currently to comment),  but did you see this article? 


Maybe it'll help. 



Small Logo
Chad Windnagle
s-go Consulting
607-330-2574 x103
607-229-6260 (Cell)
Website Design - SEO - Video

Follow Me: Facebook LinkedIn Twitter


--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-cm...@googlegroups.com.
To post to this group, send an email to joomla-...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Bakual

unread,
Apr 15, 2013, 1:00:50 AM4/15/13
to joomla-...@googlegroups.com
I saw this artictle and it is great. But it only covers the formfield, it doesn't say anything about how to store it in the database.

Bakual

unread,
Apr 15, 2013, 9:33:37 AM4/15/13
to joomla-...@googlegroups.com
While digging into this, I found a bug which prevents JUcmContent to construct from the alias alone.

Reply all
Reply to author
Forward
0 new messages