I have a content type where users select a taxonomy term. However, I don't want that content type appearing for the taxonomy listings on pages like /taxonomy/term/123.
Is there a simple way to do this? The "published to front page" option doesn't seem to affect taxonomy listings. I could play around with URL based php conditionals in the content template but I don't really want to start going down that road.
Regards
Neil
This can be done with the Views module. Views provides a default view to emulate Drupal core's handling of taxonomy/term -- it is called taxonomy_term and can be enabled by visiting admin/build/views.
After enabling, the only change you have to make is to add a filter that excludes your particular content type.
On Thu, Nov 4, 2010 at 7:26 AM, Neil Coghlan neil@esl-lounge.com wrote:
I have a content type where users select a taxonomy term. However, I don't want that content type appearing for the taxonomy listings on pages like /taxonomy/term/123.
Is there a simple way to do this? The "published to front page" option doesn't seem to affect taxonomy listings. I could play around with URL based php conditionals in the content template but I don't really want to start going down that road.
Regards
Neil
[ Drupal support list | http://lists.drupal.org/ ]
Override the taxonomy/term page with a view. There should be some default views already in there, which you only need to enable. Add a filter to the view to exclude your content type.
On 11/04/2010 09:26 AM, Neil Coghlan wrote:
I have a content type where users select a taxonomy term. However, I don't want that content type appearing for the taxonomy listings on pages like /taxonomy/term/123.
Is there a simple way to do this? The "published to front page" option doesn't seem to affect taxonomy listings. I could play around with URL based php conditionals in the content template but I don't really want to start going down that road.
Regards
Neil
Thanks Christopher/Carl, that worked just nice.
On 04/11/2010 11:25, Christopher M. Jones wrote:
Override the taxonomy/term page with a view. There should be some default views already in there, which you only need to enable. Add a filter to the view to exclude your content type.
On 11/04/2010 09:26 AM, Neil Coghlan wrote:
I have a content type where users select a taxonomy term. However, I don't want that content type appearing for the taxonomy listings on pages like /taxonomy/term/123.
Is there a simple way to do this? The "published to front page" option doesn't seem to affect taxonomy listings. I could play around with URL based php conditionals in the content template but I don't really want to start going down that road.
Regards
Neil