I have followed the instructions in this post [ http://ddblock.myalbums.biz/node/851 ] to link the "Read More" button to an external URL. I would also like to link the pager item to an external URL instead of to its own slide. Here is a description:
So if I have a dblock with four slides:
Topic A
Topic B
Topic C
Topic D
Right now if I know I want to read more on Topic D, I have to either wait for the topic D slide to come around and then click the "Read More," or I have to click the Topic D Pager Item, which will bring up the Topic D slide, upon which I can click the read more button.
What I want is for the Topic D Pager Item to also link to the external URL of the topic D slide, rather than linking to the topic D slide itself.
By the way, I believe I'm using the custom theme highlight-50I if it matters.
Does this make sense? How would I do this?
Comments
Comment #1
TonyV commentedI have posted this brief video to describe what I am hoping to accomplish. Thanks for any help.
http://www.promethius.com/pcu/ddblock/ddblock.html
Comment #2
ppblaauw commentedIn short you would need to adjust the link for the pager.
In the pager preprocess function add the pager_link variable:
In the pager-content.tpl.php file
adjust the line:
To
Change the href and change the pager class (the cycle plugin uses class="pager-link")
Hope this helps you further, please let me know.
Comment #3
TonyV commentedThanks very much for the feedback. I'll try implementing this shortly and report back.
Comment #4
blingximus commentedHi, I know this is an old issue but I have use for this feature.
I tried the above mentioned code but I failed to see any change on my site.
I would love to have some assistance with this. I am in need of urgent help.
Thanks
Craig
Comment #5
shippin commentedHello,
I'm as well trying to implement this fix to make pager-text linkable.
I didn't understand how do I set up a custom link for each news item after applying the changes to the code you suggested above?
Comment #6
ppblaauw commented#5
Download and enable the link module: http://drupal.org/project/link
Add a field of type link to the content type for the slideshow.
Add the field to the view for the slideshow.
Hope this helps you further, please let me know.