Jump to content

$page->title doesn't work with multilanguage title field for home page


nico
 Share

Recommended Posts

Hi all,

I'm trying to access the home/root page's multilanguage title field via API like so: 

$page->title;

this works on all other (sub-) pages, which are using the exact same template as the home page. only on the home page, it is not working to either output or save a different language title than the default one. it always outputs the default language page title – and saving a new page title via api (no matter if default or other languages) is not working at all (while working fine on normal sub pages with the same template). when saving via the admin-interface, it is being saved to the database - but still not output properly when fetched via the api.

this is only happening with the required multilanguage title field. all other content fields are working just fine.

is there any reason for this, like the root page title being restricted somehow? we tried comparing the different pages and templates and couldn't come up with any difference, except for the home page having the status "systemID" in settings.

thanks,
N.

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...