I have created a views block and page to display nodes based on term of a taxonomy vocabulary (contextual filter).
From this block I have a more link enabled and linked to the page.
Here how to make the views page path linked to corresponding taxonomy term pages?
-
2give the path of the view as taxonomy/term/%– Mohammed ShameemCommented Jan 23, 2013 at 11:01
-
Yes, this would work. But I am trying to link to a clean URL– AnAnDCommented Jan 23, 2013 at 11:06
-
1after adding that over ride the path by installing the pathauto module and define your patter there– Mohammed ShameemCommented Jan 23, 2013 at 11:10
-
ok I will add it as an aswer.– Mohammed ShameemCommented Jan 23, 2013 at 11:14
-
You can also override taxonomy pages per vocabulary - using views instead of default taxonomy page - using - drupal.org/project/taxonomy_display– SGhoshCommented Jan 23, 2013 at 11:32
Add a comment
|
2 Answers
- Provide the path as taxonomy/term/%
- Install the pathauto module and override the path using the required patterns.
-
When I do this, at the same time how do I print the Taxonomy title as page title? as it happens on the default Taxonomy term view.– AnAnDCommented Jan 23, 2013 at 12:54
-
by default it should display taxonomy title as page title if not in the contextual filter select "WHEN THE FILTER VALUE IS IN THE URL OR A DEFAULT IS PROVIDED " select Override title and place %1 Commented Jan 23, 2013 at 13:07
-
Yes, I did looked at how the contextual filter is configured on default Taxonomy term view, and did the same on my view it works like a charm.– AnAnDCommented Jan 23, 2013 at 13:21
you can add the link manually to the footer section, your code could be something like this:
<a href="<?php print url('news'); ?>" class="bottom-block-button"><span><?php print t('Read More'); ?></span></a>