Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Separating company name and site name
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:
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?
<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?
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
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
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