Drupal Updates

Showing posts with label HOWTO. Show all posts
Showing posts with label HOWTO. Show all posts

Friday, May 7, 2010

Drupal: HOWTO – Link teaser to node in a View

This is how its done in Drupal 6:

First, create a view with a Teaser field any other fields you may require. Then:

1. Add field Node:Nid
a. select option ‘exclude from display’
b. re-order the position to make it the first field
2. Edit the ‘Teaser’ field
a. check ‘output this field as a link’
b. set the path as ‘node/[nid]‘
3. Update, Save and you should be good to go.

Drupal: HOWTO – Link teaser to node in a View(Drupal 5)

Someone asked me how to link a teaser to node in a View using Drupal 5.
This is how it could be done in a list view:
1. Change the view type to list view
2. Add your teaser field and any other fields you need
3. You add the node id field and save the view
4. Go to example.com/?q=admin/build/views/wizard, and select the view
5. Make the theme type simple list
6. Click select theme type
7. Paste all the code in the correct files
Your view should be showing with the node ids by now. Next, we go and convert our node ID into a URL in the theme

Click here to view the rest of the solution.