How to change comma seperated list of words into taxonomy terms
ncameron - September 8, 2009 - 10:58
| Project: | Feed Scraper |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi there,
Firstly many thanks and congratulations on providing such an insanely useful module. I'm impressed with how well it works and intuitive the user interface is.
I have a question.
I'm using a regex which produces a string of keywords separated by commas e.g:
"Buffer Stock Saving, Capital Flows, Foreign Exchange Reserves, Net Foreign Assets, Small Open Economy, Sovereign Wealth Funds"
I want to add each of these as a new taxonomy term but currently it adds the whole string as a taxonomy term. Is it possible to do this? If not where would be a good place in the code to get started making this change?
Thanks very much,
Neil

#1
Hi Neil,
This is an interesting use case. Unfortunately, even though it is in my roadmap, the support for multiple values is still not there. As far as I've understood you were already able to grab those terms: if possible, can you show me the input text and the regex you are using? I could use them as first use case in developing the multi values support.
Thanks,
Antonio
#2
Ciao Antonio,
Thanks for the quick reply. The input text is:
<?php<br />
<br /><b>Programme Area(s)</b>: International Macroeconomics (IM)
<br />
<br /><b>Date of Publication</b>: 23/09/2009
<br />
<br /><b>Keyword(s)</b>: Buffer Stock Saving, Capital Flows, Foreign Exchange Reserves, Net Foreign Assets, Small Open Economy, Sovereign Wealth Funds
<br />
<br /><b>JEL(s)</b>: C61, F3
<br />
?>
The RegEx I'm using is:
<?php#<b>Keyword\(s\)</b>:.([^<]+)#
?>
Thanks very much for your help with this, I really appreciate it. Let me know if there is anything I can do.
Thanks,
Neil
#3
SUbscribing, interested in this also! To get a comma seperated list out of the rss-category tag into more than one taxonomy term.
greetings, Martijn