Page Meta data

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
tgnc.org.uk
Forum Members
Forum Members
Posts: 75
Joined: Sun Nov 08, 2009 1:31 pm

Page Meta data

Post by tgnc.org.uk »

How do I stop the meta data being output to the page output?

Every time I set specific meta data for a page, the meta data is printed with the page output, meta data NEVER gets seen by the individual, so gould a DEV pleas point me to the the part of the CMS that controls this output as this annoying to say the least and it ruins the page layout.
CMSMS 1.6.7, Apache 2.0 Web Server, Red Hat Linux Server, PHP 5.2.12
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Page Meta data

Post by Rolf »

Hi tgnc.org.uk

Metadata can be placed in the page editor at Page Specific Metadata under the tab Options
In the html template will be the {process_pagedata} tag which calls this field.

And there is the {metadata} tag in the template that calls the Metadata which is entered in Site Admin >> Global settings

Hope this helps,

Rolf  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
replytomk3

Re: Page Meta data

Post by replytomk3 »

What exactly is the problem that you have?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Page Meta data

Post by Dr.CSS »

The problem most likely is that they are putting plain text into the metadata box not doing it like a normal meta tag should be done...





Note the " />  a lot of people forget to close them...
tgnc.org.uk
Forum Members
Forum Members
Posts: 75
Joined: Sun Nov 08, 2009 1:31 pm

Re: Page Meta data

Post by tgnc.org.uk »

Thanks.

The issue I was having was the raw text list was being output at the head of the page ranter than being wrapped in a meta tag. The input box does not make it clear that you have to include the HTML as well.

It might be a good widget to make to check for a <meta tag, if non present then wrap the contents of the text area prior to stuffing it in the database. The meta text I did not input, my friend did, so I will tell him off.

Question now is how do I mark this post as resolved?
CMSMS 1.6.7, Apache 2.0 Web Server, Red Hat Linux Server, PHP 5.2.12
replytomk3

Re: Page Meta data

Post by replytomk3 »

Oh, so you were not putting the "meta" tag where necessary, just plain text. This was asked for many times before.

To mark the thread as [Solved], edit the first post in this thread, and modify the subject line.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Page Meta data

Post by Dr.CSS »

The thing about the metadata box per page is that it doesn't know what kind of metadata you are going to put in it so you have to use an html based meta call...
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Page Meta data

Post by Rolf »

In the following post you will find some tricks to make the use of the description and keywords metadata easier:
http://forum.cmsmadesimple.org/index.ph ... 912.0.html #4 and #5

Regards, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
tgnc.org.uk
Forum Members
Forum Members
Posts: 75
Joined: Sun Nov 08, 2009 1:31 pm

[SOLVED] Re: Page Meta data

Post by tgnc.org.uk »

Thanks for the feed back.

@DR Css ... As for meta type... I guess you could make a pull down to indicate what type but generally a keyword list is something separated by a space or comma, or both comma and space. So a RegExp to test for " ", "," or ", " possibly would cure this detection issue.

As for the raw text, I automatically assumed this is what would be put in.
CMSMS 1.6.7, Apache 2.0 Web Server, Red Hat Linux Server, PHP 5.2.12
Post Reply

Return to “CMSMS Core”