Results 1 to 2 of 2

Thread: Getting fallback pageid from template - help requested

  1. #1
    New user
    Join Date
    02-25-10.
    Posts
    24

    Default Getting fallback pageid from template - help requested

    Hi
    I have a multilingual site with a small php routine in the template reading the filenames from folders to display some jpg's in a gallery, each page has a corresponding folder.
    Everything works well, I use the template vars to get the pageid - my images folders are named like this
    'folder_'.$objPage->id

    This solution is great for one language however for my multilingual site, I would like to get the fallback pageid to avoid duplicating folders, how can I get this from the template, I had a look at "print_r($objPage)" but I can not see any relation to the fallback pageid from a second language.

    Any help would be welcome

  2. #2
    New user
    Join Date
    02-25-10.
    Posts
    24

    Default Re: Getting fallback pageid from template - help requested

    I have found the solution I think, this is $objPage->languageMain set to '0' for additional languages or to the fallback id for the primary language.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •