Yep, thanks for quick reply and the solution, Gert.
(should be something better explained, as so much other things...)
I've found the old thread and found out why it was designed this way.
But I forgot it - Das Alter...
Holger
sitename() and meta-tags
Re: sitename() and meta-tags
I think, you are so very much younger than me (hot-blooded)Holger wrote:But I forgot it - Das Alter...
Re: sitename() and meta-tags
I think I'll stay hot-blooded even if I'm 85 years old .Gert wrote:I think, you are so very much younger than me (hot-blooded)Holger wrote:But I forgot it - Das Alter...
But you don't need all fingers of both hands to calculate the difference in age between us .
Anyway. I see it's better and more flexible the way it is now.
Holger
Re: sitename() and meta-tags
But that's not true. The "Title" is thought to be shown as the title of a page in the list of the serchresults.phg wrote: And he is very surprised, that the Meta "Titel" is shown by the function sitename(). He (and I) think, that this is not correct. The content of the meta tags is determined for the robots, not for showing in the html-document.
So it's not only determined for robots.
Holger
Re: sitename() and meta-tags
We also could rename sitename() to pagename() in cms.php.
And create a new function sitename() using $tx['site']['title'], were that more clear?
And create a new function sitename() using $tx['site']['title'], were that more clear?
Re: sitename() and meta-tags
Seems to be a better solution since there are many templates out there including sitename().Gert wrote:We also could rename sitename() to pagename() in cms.php.
And create a new function sitename() using $tx['site']['title'], were that more clear?
With an update to XH the user may get confused like Horsts.
BTW: The tooltip of the Meta-Plugin should be changed too IMO.
Holger
Re: sitename() and meta-tags
Hallo, changed and tested in newest utf-8 Version:
Now we don't must add it to the gdm-list, it's solved
@Horst: overwrite the whole function sitename() in cms.php with that code.
Code: Select all
function sitename() {
global $tx;
return isset($tx['site']['title']) ? $tx['site']['title'] : ''; // changed by GE CMSimple_XH 1.2
}
function pagename() { // changed by GE CMSimple_XH 1.2
global $cf;
return isset($cf['site']['title']) ? $cf['site']['title'] : ''; // changed by LM CMSimple_XH 1.1
}
@Horst: overwrite the whole function sitename() in cms.php with that code.