Search

Hello!

Can you say me what is different in /data/params/root-page and /data/params/current-page?

it's values are same in 2.2 for any pages! (even for "page-not-found")

They're not the same if you have sub-pages. With: page/subpage, the current-page is 'subpage' and the root-page is 'page'.

Oh! Got it! Thanks, kanduvisla!

Well... So, what XPath expression should i use to determine root page of entire site?

{$root}

fawx, thank you! And excuse me for my not clear question... i'm sick in english. =(

{$root} returns value like "http://host.zone/"

I was needed to got the handle of the index page.

But i've found the way already. It is "/data/navigation/page[types/type='index']/@handle"

If you want you know the page currently displayed, you should just be able to use $current-page.

Nils, thank you for useful notice!

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