Meta Datas

General project discussion. NOT for help questions.
Post Reply
Piratos

Meta Datas

Post 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.
westis

Re: Meta Datas

Post 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).
Piratos

Re: Meta Datas

Post 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.
westis

Re: Meta Datas

Post 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.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Meta Datas

Post 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.
Piratos

Re: Meta Datas

Post 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.
Mikle

Re: Meta Datas

Post by Mikle »

thanks Westis
was useful
Post Reply

Return to “General Discussion”