Hey everyone, I'm currently wrestling with the inconsistency of registry vs. Zope title.
I believe the issue was mentioned before in this thread.
context.getSite().Title() retrieves the title I set with setTitle(), so far so good. However context.getSite().unrestrictedTraverse('plone_portal_state').portal_title() retrieves the actual current site title that I'm trying to change, namely 'Plone site'.
Is there a way to change the site title that the website actually displays?
Not sure if you're talking about the title you see when you land on the front page.
That title is set by the page, not the global site title.
Regardless of what you set the site title to, the homepage will be influenced by the default page.
Please clarify further if I'm misunderstanding your query.
Ah, I recently heard about the export functionality, I'm not too familiar with it so it wasn't my first instinct to rely on it. Doing it via XML is totally okay.
I've downloaded .tar, copied and customized the properties.xml and ran a quick install. Unfortunately nothing seems to have changed, the site is still called "Plone site" despite my edit in the properties.xml.
To ensure that it actually accepted my quick install, I even exported the new properties.xml, only to be met with an exact replica of the one that I copied in our file system. So, while it seems to accept the XML, it seems that it ignores the "title" property. Just to mess around, I attempted to rename it to "site_title", though that gave an error.
Am I doing something wrong? Are there steps involved I'm not paying attention to, or maybe alternate approaches?
I've dabbled with the registry before, and although I suspected it might be relevant for the implementation, I didn't end up experimenting with it. After trying your suggestion, it ends up working like a charm. Thanks again for the help regarding this!