Active
Project:
Rules Autotag
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2011 at 21:00 UTC
Updated:
23 Jan 2013 at 20:14 UTC
I followed the Exemplary Usage Instructions on the project page.
It works, the extracted tags are added to the node's field (node:field_tags in my case), but any existing tags in that field are erased!
How can i modify the rule so that extracted tags are added to the field/list with existing tags?
I prefer not to create another separate field for the extracted tags.
Thanks
Comments
Comment #1
dasjoone of many possible approaches might be:
- at admin/config/workflow/rules/components clone the existing "Autotag to terms list" action set
- instead of the "Set a data value" action which overwrites the existing terms you would to "loop" over all extracted terms and "add an item to a list" for each of those
feel free to share the component with the community afterwards :)
Comment #2
Yuri commentedI managed to get one extracted term added to the extisting terms, but the loop does not work for me yet.
My custom component:
------
Extract tags
Parameter: Text to extract terms from: [text], Vocabulary used for extraction: [vocabulary]
Provides variables: Extracted terms (extraced_terms)
Loop
Parameter: List: [extraced-terms]
List item: Current list item (list_item)
> Add an item to a list
Parameter: List: [target-terms], Item to add: [list-item], Enforce uniqueness: true
---------
Suggestions to get this working are greatly appreciated. Thanks.
Comment #3
dasjolooks good for me.
i suggest that you try using the debug action which comes with the devel module in order to tack down whats happening.
generally you can just post the code of your exported rule then you don't have to write it by hand :)
Comment #5
BeaPower commentedCan someone provide a screencast or screenshot, this is all too confusing!
Comment #6
BeaPower commentedanyone?
Comment #7
BeaPower commentedDid you ever get this to work?
Comment #8
TimelessDomain commentedComment #9
dasjoComment #10
onequad commentedHi,
I am unable to ge this working as well. Any help please?
I added this component:
And then add this rule:
Comment #11
onequad commentedUpdate: changing the above rule to use
instead of
seems to fix the problem.
Please consider adding this component to the module.
Comment #12
dasjothanks onesquad!
would you like to file a patch for adding the component?
Comment #13
onequad commented@dasjo I have no idea how to make a patch for doing that. Please go ahead and add the component if you find it could be useful. Thanks a lot. ^^
Comment #14
timb commentedFirst thanks for this module! I use it extensively to autotag websites on my site: http://attorneylawpractice.com/website/14153/wwwbipccom. As I was reworking my scripts, I ran accross the fact that the built-in rule 'Autotag to terms list' will clobber the taxonomy field it is populating.
I cloned and rewrote as 'Autotag to terms list (no clobber / no dupes)', and thought I would provide as an import for you forum people