Page 1 of 1

Meta Datas

Posted: Wed Jan 11, 2006 11:22 am
by Piratos
Someone can choose the encoding charset with the template.
But - there is no tag to include this as a metatag like this autmatically:



-----------------------------------------------------------------------

Where can i insert my meta - datas of a page ??  No options are shown.

Re: Meta Datas

Posted: Wed Jan 11, 2006 11:59 am
by westis
Hi Piratos,

This has caused some confusion in 0.11.x. The headtags box when editing a page was removed and instead one was supposed to use a content block in the section of the template (like {content block='headtags' wysiwyg='false'} ), and enter metadata for each page in that content block.

But in 0.12 the metadata box for each page will be reintroduced. There will also be a tag called {metadata} that is inserted in the template and that takes both site global metadata and page-specific metadata entered for each page.

But as far as the charset is concerned, that should probably be in the default template and taken from the encoding setting in config.php (which from v. 1.0. will be editable from the Admin Panel), or better still, from the template encoding if it is not set to default (in which case it's taken from the config.php setting).

Re: Meta Datas

Posted: Wed Jan 11, 2006 12:13 pm
by Piratos
setting in config.php
i know that but that is not what i mean.

if i change or make the settings in the template i expect from the cms, that it was shown automatically  in the template.

Re: Meta Datas

Posted: Wed Jan 11, 2006 12:38 pm
by westis
Piratos wrote: if i change or make the settings in the template i expect from the cms, that it was shown automatically in the template.
That's what I meant with "or better still, from the template encoding". Whatever encoding that is set for the template should be in the metadata tag. If that is set to default, the setting in config.php should be displayed.

And from 0.11.x all language files are in UTF-8, so most often one doesn't need to change the encoding.

Re: Meta Datas

Posted: Wed Jan 11, 2006 12:53 pm
by Ted
The encoding is sent via http headers, because I figured there would be a lot of situations where we didn't have control over the meta tags.

So, if in config.php or for the template it is set to iso-8859-1, it'll be sent via the content-type header as such.

Re: Meta Datas

Posted: Thu Jan 12, 2006 9:03 am
by Piratos
I know that all, but if you develop with a local webserver and you try to validate e.g. html by validator.w3.org you must choose the upload option  - try it by yourself and you see what i mean.

Re: Meta Datas

Posted: Thu Jan 26, 2006 5:30 pm
by Mikle
thanks Westis
was useful