开发者

Drupal 7 - More link in view not showing

开发者 https://www.devze.com 2023-03-05 22:35 出处:网络
The \'more link\' is not shown in a block, while my settings are as shown here: I do have more than 2 items. Do you have an idea what\'s goi开发者_Go百科ng on? Thanks in advance.It\'s a block. So t

The 'more link' is not shown in a block, while my settings are as shown here:

Drupal 7 - More link in view not showing

I do have more than 2 items. Do you have an idea what's goi开发者_Go百科ng on? Thanks in advance.


It's a block. So the read more button doesn't know where it should be linked to. To fixed this you have to enter url of the target page into Advance -> link display at the right side.

Drupal 7 - More link in view not showing

Drupal 7 - More link in view not showing


Do you have a page display for your View? If not, then the more link won't have anywhere to go and therefore is not displayed. Try creating a Page display for your view.


You need to add the Content: Path field above your Content:body field, and exclude the Content: Path field from display.

Then, in your Content: body field, select Rewrite Results, and then Trim this field to a maximum length.

Next, set the More Link Text to "Read More"

Finally, under the More Link Path, add in [path] which is found under the Regular Expressions section.

Click save, and for any body content longer than the maximum length, there will be a read more link inline which links to your article.

0

精彩评论

暂无评论...
验证码 换一张
取 消