I've been trying to figure out how to change the Read more... link in the 2.x dev but am not quite smart enough to figure it out. It doesn't look like the documentation that exists here matches up very well with 2.x. The best I've been able to come up with is where I think the Read more... link is now being defined (vsd_if_examples.viewsdef.inc on line 227 is where the text is defined).
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'text' => 'Read more...',
'exclude' => 0,
'id' => 'view_node',
'table' => 'node',
'field' => 'view_node',
'relationship' => 'none',
I assume a modification needs to be made somewhere around there maybe with the 'field' value?
Hopefully I'm not double posting but I could track down anything on this anywhere else. Any help would be great!
Thanks
Comments
Comment #1
ppblaauw commentedThe read more text can be changed in the "link" field used in the view.
This is a link to the node itself.
If you want to link to another page you can add a field of the type "link" (you need to install the link module) to the content type.
With this field you can give the URL and the Text of the URL and use this field instead of the the current link field for the readmore button.
The documentation you are referring to is for the ddblock module, which uses raw views data, the views_slideshow_ddblock module uses rendered views data.
Hope this helps you further, please let me know.
Comment #2
deggertsen commentedI got it figured out with your help here. It took me a little while to realize that I needed to change the source for the read more... link under the slideshow style settings but I finally got it.
Thanks!
Comment #3
ppblaauw commentedThanks for your reply.
Changed issue title.
Comment #5
gmasky commentedRead More button: I am missing something when trying to link the image to a separate link field.
1. I created the link field for the content type field_banner_link
2. I add this field to the banner view
3. If I map read_me to field_banner_link the read more button does not appear
However If I map the read_me to Title link (link to node title) it works fine.
Am I missing something? Do I re-write the Title link to point to field_banner_link
Thanks for this great module
Gerry
Comment #6
gmasky commentedNever mind. I just re-read ppblaauw's comment #1 above.
1. Add a link field with a Link Title element and the url element to the content type (I also allowed tokens)
2. Remove the Node link field from the view
3. Add the Content link field to the view (created above), choose format "Title as Link"
4. Map the read_more button to the content link field created above and save the view.
5. Create content and don't forget to add a link title: Read More/Learn more/Whatever and add the url or if I want to point the slide to the node I use the token [node-url]
This is a more flexible than just pointing to the node url. Here is my views ddblock slideshow: http://stanislausbandra.in
Thanks ppblaauw, you rock.