Page 1 of 1

{metadata} tag - formatting

Posted: Tue Aug 28, 2007 8:29 am
by olavt
I have included the {metadata} tag in the template. But the information is not properly formatted.

This is what is included in the header information:






Beatles, The Beatles, music theory, musical analysis, musicological analysis, I Should Have Known Better, Alan W Pollack

The last part,
"Beatles, The Beatles, music theory, musical analysis, musicological analysis, I Should Have Known Better, Alan W Pollack"

is written in the "Metadata" field in the template. I think this should have been included in tags
, but it is unformatted. Is there a way to get the correct formatting tags here?

(And is there a way to include the content in the "Description (title attribute):" field in the template in tags in the header?)

Re: {metadata} tag - formatting

Posted: Tue Aug 28, 2007 8:39 am
by RonnyK
What did you put in the metadata under "Global Settings"?

Ronny

Re: {metadata} tag - formatting

Posted: Tue Aug 28, 2007 3:10 pm
by Nullig
Did you remember to end the tag properly - /> - like,



Nullig

Re: {metadata} tag - formatting

Posted: Tue Sep 04, 2007 1:01 am
by olavt
RonnyK wrote: What did you put in the metadata under "Global Settings"?

Ronny
It is only the default:

"
"

Re: {metadata} tag - formatting

Posted: Tue Sep 04, 2007 1:04 am
by olavt
Nullig wrote: Did you remember to end the tag properly - /> - like,



Nullig
Who knows. I have not done any formating of the data - which I thought should not be necessary when the text is entered into the "Metadata" field in the edit form. Do I have to format this manually? (I am not using the wysywyg editor, as it does not work in Opera.)

Re: {metadata} tag - formatting

Posted: Tue Sep 04, 2007 5:33 am
by alby
olavt wrote:
Nullig wrote: Did you remember to end the tag properly - /> - like,



Nullig
Who knows. I have not done any formating of the data - which I thought should not be necessary when the text is entered into the "Metadata" field in the edit form. Do I have to format this manually? (I am not using the wysywyg editor, as it does not work in Opera.)
For metadata content in Global setting you MUST know html sintax. See Nullig code or default data, example of metadata content:

Code: Select all

<meta name="Generator" content="CMS Made Simple - Copyright (C) 2004-6 Ted Kulp. All rights reserved." />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Beatles, The Beatles, music theory, musical analysis, musicological analysis, I Should Have Known Better, Alan W Pollack" />
<meta name="description" content=[color=red]'[/color]The last part, 
"Beatles, The Beatles, music theory, musical analysis, musicological analysis, I Should Have Known Better, Alan W Pollack[color=red]'[/color]/>
Attention to quote because in test there is double quote

Alby

Re: {metadata} tag - formatting

Posted: Tue Sep 04, 2007 10:25 am
by olavt
I know the HTML syntax. But the metadata is not global data. What I want to do is to write the content in the metadata and descrption field int the edit template without having to worry about formatting on each page, and have them formatted in the result. Someting like this:



Re: {metadata} tag - formatting

Posted: Tue Sep 04, 2007 11:17 am
by alby
olavt wrote: I know the HTML syntax. But the metadata is not global data. What I want to do is to write the content in the metadata and descrption field int the edit template without having to worry about formatting on each page, and have them formatted in the result. Someting like this:


Please but I have a language problem.
I don't understand when you say "formatting on each page"  ???
If you add {metadata} in your template (head part), smarty substitute {metadata} with metadata tags in Global setting plus metadata tags in Option of current page

Alby

Re: {metadata} tag - formatting

Posted: Tue Sep 04, 2007 11:27 am
by tsw
olavt wrote:
something like this requires a new field name "keywords" if the field is named "metadata" its pretty clear that the content is going to be ALL metadata you want to add (even <meta refresh if you want).

I agree, this is not the best way to handle it, but thats how it is right now.

Quite clean way to change the behavior is to add second content block (name keyword ;) to your template, (check the tag syntax for how to make the input area only one line)

hope this helps...