Search

Hi,

I need for a red more link get the item path or url

now my xml look's like:

<a href="{$root}/article/{title/@handle}" class="morelink">red more</a>

but I don't want hard-code the aricle part in the path. Is there a another way to do this ?

You can use the '$current-page' parameter to build the URL. On nested pages you could use the '$current-page-id' parameter and a navigation datasource to build more complex URLs.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details