Z
Z
Z_Coder2013-11-25 16:32:10
Drupal
Z_Coder, 2013-11-25 16:32:10

How to not display Read more at the bottom of an article in Drupal?

Overridden read more in template.php:

$variables['content']['links']['node']['#links']['node-readmore']['title'] = 'Next';

In the teaser (announcement) of the article, everything is displayed as it should, but now in the whole article, under the text (ie, at the bottom of the entire text), the line "Next" is displayed.
How to make it not show up?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Misha Vasilyev, 2013-11-25
@Z_Coder

Can be overridden only when something is already there. In your case, as far as I understand, if there is no $variables['content']['links']['node']['#links']['node-readmore']['title'] then it will be created with value 'Next'.
Here on drupal.org something similar is advised. https://drupal.org/node/62005

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question