Page 1 of 1

Metadata template by default

Posted: Fri Oct 13, 2006 6:36 pm
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

Re: Metadata template by default

Posted: Mon Nov 20, 2006 4:00 am
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...