Jump to content

Get page by path


nabo
 Share

Recommended Posts

Hello

I have a page that is called "Uno" in default language (italian) and "One" as English version, and parent is "Servizi" ("Services" in English).
I need to get this page using path... so

$pages->find('path=/it/servizi/uno')

but I think this is equivalent to 

$pages->find("path=/servizi/uno")

the problem is that I want to get this page using the solely the language path because this case always return the page... and it's not what I want

$pages->find("path=/it/services/uno")
$pages->find("path=/it/servizi/one")
$pages->find("path=/en/servizi/one")
$pages->find("path=/en/services/uno")

is there a way? 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...