Is it possible to publish a node associated with a particular "taxonamy term" to get published to a specific page, instead of front page.

For example, if I have page named "Health" and want any nodes/stories that are associated with taxonamy-term 'health' to be published only to the Health page of the website, instead of front page.

Comments

nevets’s picture

Yes, first start by visiting "Administer" > " Content management" > "Content Types". Click edit for you content type(s) you do not want published to the front page by default, scroll down to "Workflow" and under "Default options" make sure "Promoted to front page" is not checked. This will keep any new content from being promoted to the front page by default (you would need to unset the flag for any existing content under "Publishing options" when editing the content).

As for publishing content to a specific page the taxonomy module provides the path taxonomy/term/{tid} for viewing all content with a specific taxonomy term using the terms id (tid). You can alias the path and even use pathauto to automate the creation of aliases for these paths. You can also use views to make pages specific to a taxonomy term though since you are using Drupal 6 you may want to stick with taxonomy/term/{tid} since views is still be developed for Drupal 6.

pmomidi’s picture

Yep...I am using Drupal V6 and hence cannot fully exploit the functionality of views or panels. I will try your suggestion with taxonomy/term and see if it will help me resolve my issues.

Thanks for your suggestion.

tmallen’s picture

You could create a block View containing only "Health"-related pages, go to Site Building > Blocks, and have this block show up wherever (sidebar, content, header, etc.). Then go to the bottom of that Block settings page and specify it to only appear on the Health page by specifying that page's path.

This assumes you have Views installed. If you're not familiar with creating Views, let us know here.

EDIT: Didn't see that you're in Drupal 6...this means you probably can't work with Views, which is why my new Drupal site is running on 5.7 -- I figure I'll upgrade once CCK, Views, Pathauto, and others are stable.

pmomidi’s picture

I tried going to Administration -> Taxonomy -> list terms and select my term.

When I go to taxonomy/term/1 , it does show me the list of nodes that are part of that particular taxonomy term. It shows the list of full nodes along with the full body and images of the node.

Is there a way to restrict to publish the list of node links instead of the full body, so that the full body can only be displayed when user clicks on the node link ?

I have done this earlier with front page by editing the node.tpl.php and adding a if ( !$is_front ) and filtering the content, so that only the node link is displayed on the front page instead of the full node body. Is there a way to achieve this for the URL that displays the contents of the particular taxonomy term ?

nevets’s picture

A better way is to use the views module which comes the "Taxonomy" (taxonomy_term) view. Click 'Add' for that view to make a copy, on the next screen change the name (I just add a 2 at the end of taxonomy_term). Under page change the view type to "List View" and then under "Fields" add "Node: Title" as a field. Save the changes and your taxonomy/term/{tid} pages should now list just the titles.