Posted by borgeous on September 14, 2011 at 9:51pm
3 followers
Jump to:
| Project: | Dynamic display block |
| Version: | 7.x-1.0-rc1 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Issue Summary
im following the instructions from http://ddblock.myalbums.biz/node/851 so that my read more will link to a specified url, it tells me to edit my template.php file and make changes. But my template.php does not have any of the stuff that it wants me to edit or change? are their multiple template.php files? Im using drupal 7
Comments
#1
That tutorial is for Drupal 6. Process is quite likely very different now.
#2
Do you know how to link the readmore button to a specified url under drupal 7?
#3
ddblock for drupal 7 does not use preprocess function in the template.php file anymore.
It uses mapping of views fields to slideshow template variables.
1.) When you want to link the readmore button to another page, you can add a link field (needs link module) to the content type (for example a field called: "slide_url") and also add this link field to the views block display for the slideshow. In the link field you can give a URL and a text for the URL.
When you have the "slide_url" field set in the views block display, you can map this "slide_url" field to the slide_read_more template variable in the ddblock configuration page.
2.) When you want to link the readmore button to the node of the slide itself, you can add a "Node: Link" (Provide a simple link to the node.) field to the views block display used for the slideshow.
In the "node:link" views field options you have a setting "Text to display".
You can set this to: Read more...
When you have the "node:link" field set in the view block display, you map this "Node:link" field to the slide_read_more template variable in the ddblock configuration page.
Hope this helps you further, please let me know.
#4
I tried it but it didn't seem to work,
my read more button has disappeared, im using the upright60p theme, can i link the slide title to another url?
thanks for your help!
also this is the site im working on, the slideshow is on the front page
http://borgeous.us/
#5
Steps to link the readmore button to other pages:
Please make another issue to link the slide title to another url, so searching on issues and finding answers stays useful.