{metadata} tag - formatting

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
olavt

{metadata} tag - formatting

Post 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?)
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: {metadata} tag - formatting

Post by RonnyK »

What did you put in the metadata under "Global Settings"?

Ronny
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: {metadata} tag - formatting

Post by Nullig »

Did you remember to end the tag properly - /> - like,



Nullig
olavt

Re: {metadata} tag - formatting

Post by olavt »

RonnyK wrote: What did you put in the metadata under "Global Settings"?

Ronny
It is only the default:

"
"
olavt

Re: {metadata} tag - formatting

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

Re: {metadata} tag - formatting

Post 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
olavt

Re: {metadata} tag - formatting

Post 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:


alby

Re: {metadata} tag - formatting

Post 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
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: {metadata} tag - formatting

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

Return to “CMSMS Core”