swampmusic Posted February 5, 2017 Share Posted February 5, 2017 Is it possible to use localName($user->language) in a selector, something along the idea below, but I can't get it working ? $pages->find("template=hotel, localName($user->language)=$input->urlSegment2"); The problem I have is a urlSegment2 in any of 3 languages, so I need to be able to find the page in different language "names/urls". I dont like the idea of looping thru all the hotels looking for $hotel->localName($user->language) = urlSegment2; But I can't seem to figure out how to make a Selector work based on current language rather than the default. Thx, Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now