- Web templates
- E-commerce Templates
- Loaded Commerce
- E-Commerce Comparison
- E-commerce Comparison: Payment and Shipping methods
- E-commerce templates compatibility table
- CMS & Blog Templates
- CMS Comparison
- CMS templates versions compatibility
- Facebook Templates
- Website Builders
Drupal 7.x. How to add a “Read More” link to View nodes
May 29, 2014
This tutorial is going to show you how to add a "Read More" link to View nodes on your Drupal 7.x template.
If you have a portfolio or a blog page created as a view on your Drupal 7.x site and would like to add "Read More" links to the trimmed versions of the nodes, please follow the next steps:
Log into your Drupal admin panel, open the portfolio page, mouse over its top right corner and select “Edit view.”
Under the “Fields” section of the next page click on “Content Body.”
In the window that will pop up, under “Rewrite results” check “Trim this field to a maximum length” and enter the maximum number of characters allowed for this field in the “Maximum length” field (e.g., 60).
Scroll down and check “Add a read-more link if output is trimmed” under the same section. Enter the text which will be displayed on the more link in the “More link text” field (e.g., Read More). Enter node/[nid] into the “More link path” field. Click “Apply.”
Now you need to add a nid field to the views field. Click “Add” next to the “Field” section.
In the window that will pop up check “Content:Nid” and click “Add and Configure Fields.”
On the “Configure Field” page check “Exclude from display” and click “Apply.”
Make sure the nid is above the body field. If not, click on “Add” next to the “Field” section and select “Rearrange.”
Move “Content: Nid” so it comes before “Content:Body” and click “Apply.”
Click “Save” at the top right.
After the changes are saved, you should see the “Read More” button added to the nodes on your page.
Feel free to check the detailed video tutorial below: