I use xtemplate on my site and I don't know how to transform the blog's title into a link (like read more).

Please, help me!!

"[div class="title"]{title}[/div]"

<,> instead of [,]

Comments

cel4145’s picture

if you are using drupal 4.2 with clean urls enabled, in xtemplate.theme after

$this->template->assign(array (

insert

"link" => "node/view/" . $node->nid,

and in xtemplate.xtmpl, change

<div class="title">{title}</div>

to

<div class="title"><a href="{link}">{title}</a></div>

that should do it.

Anonymous’s picture

Thanks!!... now is working! :D

Thanks again!