Page 1 of 1

CGHeadmaster - Sitename is always appended to title tag

Posted: Tue Oct 03, 2017 1:58 pm
by webform
If i try to override the meta title value, the sitename is always appended to "the meta title, the meta og:title, and the meta tweetmeme:title tags" if i want it or not:

Code: Select all

{cghm_config_set key='title' val="Hello World"} outputs "Hello World - My Site Name".
I would have expected the output to be = "Hallo World" for the meta title tag when i set an override value for the tag.

Do i have to override the meta title, the meta og:title, and the meta tweetmeme:title tags separately?

Cms Version: 2.2.3.1
CGHeadMaster: 1.0.12

Re: CGHeadmaster - Sitename is always appended to title tag

Posted: Tue Oct 03, 2017 3:06 pm
by webform
I have set up a module_custom override for CGHeadmaster to solve the issue:

"module_custom/CGHeadMaster/config/fields.ini"

and in the fields.ini file set the default value:

Code: Select all

[title_tag]
tag=title
dflt="{$config.title|default:\"{title} - {sitename}\"}"
noattrs=1
group=misc

[title]
dflt1="{$config.title|default:\"{title} - {sitename}\"}"
group=misc

[tweetmeme-title]
dflt1="{$config.title|default:\"{title} - {sitename}\"}"
group=twitter

[og:title]
keyattr=property
attr1=content
dflt1="{$config.title|default:\"{title} - {sitename}\"}"
group=og