By datamodel on
How do I separate "read more" link from the rest of the element of the links array , in order to display separately, say, right after the node content's text.
How do I separate "read more" link from the rest of the element of the links array , in order to display separately, say, right after the node content's text.
Comments
solution for phptemplate themes
I have accomplished this by adding the following code to my node.tpl.php at the desired position.
€dit: to remove the read more link added by drupal you'd have to hide it with CSS (display:none;) or ... no idea, .. maybe a littlebit of regular expression replacing would do the job.
regards
Thanks for the help
I don't want to remove it. Just display it elsewhere from its default display position, in a vertical-bar-separated sequence of links contained in the $links array - used by the theme i'm using .
I'm trying out the code you suggested.
It Works :)
Thank you very much.
But now how do I remove the "read more" link / element from the $node->$links array ? :))
you should use another class
you should use another class for the new readmore link. and set the old one's class to "display:none;"
heres a another way to do it
heres a another way to do it http://www.angrydonuts.com/the_nuisance_of_the_read_more_fl written by merlinofchaos.
Thanks for the great link.
.
Prepackaged module available
I've created a pre-packaged drop-in Drupal module for Drupal 4.7 that implements the "read more" modifications mentioned on AngryDonuts.com:
http://exodusdev.com/drupal/4.7/modules/ed_readmore.module
Michael Curry - Exodus Development
link URL is wrong
The "read more" link given in teaser view (eg, frontpage, blogs) sets the href url to $node_url .
On the "blogs" page, which gives teaser view for all blog posts, every "read more" link ends up pointing to the "blogs" page.
That is, the link points to
http://localhost/drupal-4.7.3/?q=blog
I tried this and it seems to work:
Similar Question: Read Mode Drupal 5
Any suggestions on how to place Read more in the $content part of the blog. (Within the div class "content") I'm looking to put "read more" directly after the teaser without any line breaks as it seems to more intuitive..
If anyone has ideas in Drupal 5, as I think this should be easier and the future..
almost got it
i figure this should work.. strip out the end paragraph tag in my content read out.. + new read more class as above..