Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Woggers CreditAttribution: Woggers commentedThat tutorial is for Drupal 6. Process is quite likely very different now.
Comment #2
borgeous CreditAttribution: borgeous commentedDo you know how to link the readmore button to a specified url under drupal 7?
Comment #3
ppblaauw CreditAttribution: ppblaauw commentedddblock 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.
Comment #4
borgeous CreditAttribution: borgeous commentedI 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/
Comment #5
ppblaauw CreditAttribution: ppblaauw commentedSteps 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.