[themes] Read more link in node teaser

Andy Walpole andy at suburban-glory.com
Thu Feb 18 09:32:31 UTC 2010


Hi there Drupal droogs,

I've been using the following code in the node tpl file to create a read 
more link in the node teaser:

<?php  print "<a href='/" . $node->links["node_read_more"]["href"] . "' 
class='readmore' title='" . 
$node->links["node_read_more"]["attributes"]["title"] . "..' >" .  '<img 
src="' . base_path() . path_to_theme() . '/images/read-more.gif" 
width="120" height="40" alt="" />' . "</a>"; ?>

Now $node->links["node_read_more"]["href"] works fine at creating the 
right URL until I put the site into a sub directory, and then instead of 
the links being /themes/?q=node/62 they are /node/62... which is wrong

Does anybody have any ideas what I can do to sort this problem out?

Regards,

Andy

-- 
----------------------
Andy Walpole
http://www.suburban-glory.com
Work: 05601310400
Mob: 07858756827



More information about the themes mailing list