Fieldtype, Module

Archived
Forum
(read-only)

Taggable

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Jamie Rumbelow

     

Import from categories or from field?

Feature Request

Derek Hogue
Derek Hogue

I use Solspace Tag’s “harvest” feature all the time, to import tags from either from a delimited text field, or from channel categories. This would be a great additional to Taggable.

I tried to rig this up myself for a one-time import, but some architectural decisions in Taggable prevented me from going further.

First, the fieldtype relies on what’s stored in exp_channel_data, not what’s in the exp_taggable_tags_entries table, so I not only would have to import into the exp_taggable_tags and exp_taggable_tags_entries tables (which I did successfully), but I’d also have to assemble and concatenate the tag data in the format Taggable expects for the exp_channel_data fields.

This seemed like too much time investment, so I though the Re-index Tags function might do this for me, using the Taggable db tables as the authoritative tag source, but it did not (it appears only to make sure the relationships between the two Taggable tables are correct, not that the exp_channel_fields columns are properly populated.)

With these roadblocks and the errors with EE 2.2, I’ll have to pass on using Taggable for on this site, but the tagging interface is great, so maybe down the road.

Jamie Rumbelow
# 1
Developer
Jamie Rumbelow

Derek,

The Taggable database tables are a little funky; I wanted to minimise the number of queries made (and be able to use ExpressionEngine’s native search: parameters). I decided that this was the best way of doing it, which unfortunately makes things like this slightly more difficult.

We used to have an autotag feature (similar to Solspace’s harvest) but I decided to get rid of it. Now I can’t remember why!

Thank you for the feedback, it’s very appreciated. If you’ve got any other comments or questions I’ll be more than happy to field them.

My best,

Jamie