RE: Separating company name and site name

Olaf Kock, modified 6 Years ago. Junior Member Posts: 52 Join Date: 9/24/18 Recent Posts
I have a requirement where the site name needs to be Project A and the company name is Company X.  I can then make, for example:
​​​​​​​<title>${the_title} - ${site_name} | ${company_name}</title>

Currently, if I only have one site created, the Name field under Instance Settings represents both the site and company names. Therefore both ${site_name} and ${company_name} show the same text.

How do I work around this matter?
thumbnail
Christoph Rabel, modified 6 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
I am not sure here. Maybe you could
a) Not use the default site?
b) Add some code to the template, if (site_name == company_name) show something else
c) Add a custom field "override title" and use it if it is set
Jason Chee, modified 6 Years ago. Junior Member Posts: 52 Join Date: 9/24/18 Recent Posts
I have decided to add a new company name key into my template using configurable theme settings and it's good enough for my case emoticon