Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Anonymous (not verified) on
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
making an xtemplate post title a permalink
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.
Thank you
Thanks!!... now is working! :D
Thanks again!