Skip to main content
added 344 characters in body
Source Link
Kevin
  • 28k
  • 12
  • 95
  • 196

I have 1 blog block in the home page where i am displaying the title and body of the body of the blog up to 2 lines.After that I want to add read more link which redirect to the blog content type.I am using views there in the preview it is read more link is showing correctly. but not displaying in the content page. I used this code below in node.content type.tpl.php to display the read more link. But the read more link is not adding to the blog . but to some other content in that page. Please suggest how to do this?

<div class="content"<?php print $content_attributes; ?>> <?php hide($content['links']); hide($content['links']['#links']['node-readmore']); print render($content); if($teaser) { print l(t('Read more'), 'node/' . $nid, array('attributes' => array('class' => t('node-readmore-link')))); }?></div> <?php print render($content['links']); ?>

I have 1 blog block in the home page where i am displaying the title and body of the body of the blog up to 2 lines.After that I want to add read more link which redirect to the blog content type.I am using views there in the preview it is read more link is showing correctly. but not displaying in the content page. I used this code below in node.content type.tpl.php to display the read more link. But the read more link is not adding to the blog . but to some other content in that page. Please suggest how to do this?

I have 1 blog block in the home page where i am displaying the title and body of the body of the blog up to 2 lines.After that I want to add read more link which redirect to the blog content type.I am using views there in the preview it is read more link is showing correctly. but not displaying in the content page. I used this code below in node.content type.tpl.php to display the read more link. But the read more link is not adding to the blog . but to some other content in that page. Please suggest how to do this?

<div class="content"<?php print $content_attributes; ?>> <?php hide($content['links']); hide($content['links']['#links']['node-readmore']); print render($content); if($teaser) { print l(t('Read more'), 'node/' . $nid, array('attributes' => array('class' => t('node-readmore-link')))); }?></div> <?php print render($content['links']); ?>
deleted 42 characters in body
Source Link

[view preview page][1]II have 1 blog block in the home page where i am displaying the title and body of the body of the blog up to 2 lines.After that I want to add read more link which redirect to the blog content type.I am using views there in the preview it is read more link is showing correctly. but not displaying in the content page. I used this code below in node.content type.tpl.php to display the read more link. But the read more link is not adding to the blog . but to some other content in that page. Please suggest how to do this?

[view preview page][1]I have 1 blog block in the home page where i am displaying the title and body of the body of the blog up to 2 lines.After that I want to add read more link which redirect to the blog content type.I am using views there in the preview it is read more link is showing correctly. but not displaying in the content page. I used this code below in node.content type.tpl.php to display the read more link. But the read more link is not adding to the blog . but to some other content in that page. Please suggest how to do this?

I have 1 blog block in the home page where i am displaying the title and body of the body of the blog up to 2 lines.After that I want to add read more link which redirect to the blog content type.I am using views there in the preview it is read more link is showing correctly. but not displaying in the content page. I used this code below in node.content type.tpl.php to display the read more link. But the read more link is not adding to the blog . but to some other content in that page. Please suggest how to do this?

added 83 characters in body
Source Link

I[view preview page][1]I have 1 blog block in the home page where i am displaying the title and body of the body of the blog up to 2 lines.After that I want to add read more link which redirect to the blog content type.I am using views there in the preview it is read more link is showing correctly. but not displaying in the content page. I used this code below in node.content type.tpl.php to display the read more link. But the read more link is not adding to the blog . but to some other content in that page. Please suggest how to do this?

I have 1 blog block in the home page where i am displaying the title and body of the body of the blog up to 2 lines.After that I want to add read more link which redirect to the blog content type.I am using views there in the preview it is read more link is showing correctly. but not displaying in the content page. I used this code below in node.content type.tpl.php to display the read more link. But the read more link is not adding to the blog . but to some other content in that page. Please suggest how to do this?

[view preview page][1]I have 1 blog block in the home page where i am displaying the title and body of the body of the blog up to 2 lines.After that I want to add read more link which redirect to the blog content type.I am using views there in the preview it is read more link is showing correctly. but not displaying in the content page. I used this code below in node.content type.tpl.php to display the read more link. But the read more link is not adding to the blog . but to some other content in that page. Please suggest how to do this?

added 54 characters in body
Source Link
Loading
Source Link
Loading