[drupal-support] copying vocabularies and their terms
puregin
puregin at puregin.org
Mon Jun 13 04:48:40 UTC 2005
Christopher,
I don't understand why you have to copy vocabularies.
I'm assuming your content vocabulary is the one with 47 terms.
I'd imagine a story about a cat rescued from a tree in Washington
might be tagged thus
(human interest, washington, 2005_06_13)
You'll want to set up a PHP page to display your stories. Your code
can obtain the community name and the
issue name from the URL arguments: If someone visits
www.example.com/newsletter/washington/2005_06_13
- newsletter is an alias for the page you have created.
- washington is the first argument, specifying the community
- 2005_06_13 is the second argument, specifying the issue
Your PHP script would then do a query to ask for all
articles tagged with a community tag of "washington",
and an issue tag of "2005_06_13". It would then
iterate over the 'content topics' terms, and display
articles matching content together (in date order,
if you wish)
You can find an example of categorizing articles
via a taxonomy at
http://www.bridgingtothefuture.org/newsletter_2005_05
This is about a dozen lines of PHP - your code might
be another few lines because you have the extra
vocabulary for community.
Djun
On 12 Jun 2005, at 6:59 AM, Christopher Taylor wrote:
> Hello everybody,
> I was hoping somebody could help me with a PHP script or give me a
> suggestion that would easily allow us to copy a vocabulary.
> I am not familiar with PHP or programming.
> We have tried using groups but I can't make the content get presented
> in a organized news paper/magazine order in the group.
> I have also tried creating vocabularies of:
> content, community, issue
> The problem is there is no order to the nodes in the last two
> vocabularies only date order.
> My vocabulary has about 47 terms and it is designed to be local news,
> information, and discussion content for a community.
> I would like to copy the vocabulary so that I can build multiple
> communities easily. We also are going to publish the information in a
> weekly magazine.
> My firwst test community is Washington, DC.
> If you can help, please let me know. If it helps, we'll give you free
> advertising in our publication.
>
> Best Regards
> Christopher
>
More information about the drupal-support
mailing list