Metadata template by default

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.
Locked
Michael AC

Metadata template by default

Post by Michael AC »

Hi there,

when creating a new content, this metadata template...

Code: Select all

<meta name="description" content="" lang="de" />
<meta name="keywords" content="" lang="de" />
<meta name="date" content="yyyy-mm-dd" />
...should be inserted automatically into the metadata textarea.

Where can I preset the $metadata variable?

I've tried it with the siteprefs.php (canary, line 53), but this didn't work.

Code: Select all

$metadata = '<meta name="description" content="" lang="de" /><br /><meta name="keywords" content="" lang="de" /><br /><meta name="date" content="yyyy-mm-dd" />';
if (isset($_POST['metadata'])) $metadata = $_POST['metadata'];
Hmmm, didn't find a possibility anywhere else...

Kind regards
Michael
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Metadata template by default

Post by Dr.CSS »

For all pages metadata use the Site Admin » Global Settings Global Metadata: text box...

For page specific use the Option tab Metadata: text area...

Both require you to input them in the true metadata form...
Locked

Return to “CMSMS Core”