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

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

The read more text can be changed in the "link" field used in the view.
This is a link to the node itself.

  • Goto the views configuration page
  • click the "Node: Link Link" field in the Fields section of the views configuration page
  • Fill out the required text for the read more link at: "Text to display: " at the bottom of the field configuration page
  • Update the display
  • Save the view

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.

deggertsen’s picture

Status: Postponed (maintainer needs more info) » Fixed

I 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!

ppblaauw’s picture

Title: How to link Read more... button to another page in 2.x » How to link Read more... button to another page in 2.x (Fixed)

Thanks for your reply.
Changed issue title.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gmasky’s picture

Read 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

gmasky’s picture

Never 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.