Premitting I have already read the "How to link Read more... button to another page instead of the node" tutorial on http://ddblock.myalbums.biz/node/851.
I have only installed and activted the DDBlock module with no additional themes..
I am at the stage where I have been able to cutomize the size of the slideshow by editing the css however I can't seem to get the read more.. button to point to a custom field (either node ref or plain text url) I create on the ddblock item content type.
I have added these fields to the views so they are available..
Now what I should do is, and I quote the tutorial:
"Change preprocess function
To make the Read more... button link to another page you need to change the code of the [theme_name]_preprocess_ddblock_cycle_block_content preprocess function in your template.php file."
.. but I can't find where this is defined.. I am using a Nodestream distribution on Drupal 6 .. and the Theme I use is defined within the profiles/nodestream section.. when I look in there I can see no such functions in template.php..
Surely I am missing something?
Can anybody help me?
Comments
Comment #1
ppblaauw commentedFor Drupal 6 its easier to use the views_slideshow_ddblock module, which comes also with an example module.
The example module can be enabled to create the content type, views and no preprocess functions needed anymore.
In this case a link field (using the link module) can be used to map the URL to the readmore button.
No changes in preprocess functions needed.
If you want to use the ddblock module, and the Drupal theme does not have a template.php file, you need to create one and add the preprocess functions to it.
After adding preprocess functions, the cache needs to be cleared, so drupal can pick up the functions added.
Hope this helps you further, please let me know.
Comment #2
petercavanagh commentedThanks fire your reply..Actually I am indeed using the views module you mention, so I must have not understood yet how to use the link field.. Do you have some simple steps to suggest?
I was kind if thinking the same.. But when I tried mapping the nid field in the configuration to the new url or even simple text containing just a node id it didn't work.. What I really want to pass in its either a full url for external pages or a note reference to existing site content..
Comment #3
petercavanagh commentedFire = for, note = node
Comment #4
ppblaauw commentedWhen using a link field (using the link module) to add a field of this type to the content type, you are able to give:
1.) The title of the link which will be shown on the button
The title can be like:
readmore...
view
2.) The Url of the link where the link will link to.
This can be like:
a link to a node: (/node/10)
a link to a relative page (/contact)
a link to another site (http://www.drupal.org)
The readmore button expects a Url with a title, so you can map the link field added to also the view (as a field) to the slide_readmore slideshow template variable.
Hope this helps you further, please let me know.
Comment #5
petercavanagh commentedSuper... All sorted using a link field.. Thanks so much for your help!
We can close this