Download & Extend

Read more link to other URL and template.php problem

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

Category:bug report» support request
Status:active» postponed (maintainer needs more info)

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:

  1. Add the slide_url field of type link to the content type.
  2. Add slide_url field to the view. (leave formatter at: title as link).
  3. Map the slide_url field to the slide_read_more slideshow theme variable.
  4. Fill in the slide_url field in the nodes for slides which should have a link/readmore button to other pages. (each slide can have another text for the button and another link this way).

Please make another issue to link the slide title to another url, so searching on issues and finding answers stays useful.

nobody click here