Difference between revisions of "Meta"

From JOTA-JOTI Wiki
Jump to: navigation, search
(Created page with "Meta data operate in files with the extension ".html" Specimen: <code><meta name="''key''" content="''value''" /></code> Possible keys: * title => (string) Page titl...")
 
m
 
Line 8: Line 8:
 
* area      => (string)  Categorie to which the page belongs to
 
* area      => (string)  Categorie to which the page belongs to
 
* innavi    => (bool)    If TRUE: the page will be shown in the navigation
 
* innavi    => (bool)    If TRUE: the page will be shown in the navigation
* link-title => (string)  ??? (unknown)
+
* link-title => (string)  [IDX] title="link-title" in the menue option =ToolTip
 
* sortval    => (integer) Position in the menue; biggest one first
 
* sortval    => (integer) Position in the menue; biggest one first
 
* reldate    => (date)    date when the page will start display; ISO format YYYY-MM-DD
 
* reldate    => (date)    date when the page will start display; ISO format YYYY-MM-DD
Line 21: Line 21:
 
* include    => (string)  relative path and filename to a file, which will be included
 
* include    => (string)  relative path and filename to a file, which will be included
  
 +
Some keys have only an effect, when the key is placed in an "index.html" file. These are marked with [IDX]
  
 
All the Meta-informations are useable in the array "$SNC_PAGEINFO"
 
All the Meta-informations are useable in the array "$SNC_PAGEINFO"

Latest revision as of 15:06, 31 August 2014

Meta data operate in files with the extension ".html"

Specimen: <meta name="key" content="value" />

Possible keys:

  • title => (string) Page title = first headline h1
  • area => (string) Categorie to which the page belongs to
  • innavi => (bool) If TRUE: the page will be shown in the navigation
  • link-title => (string) [IDX] title="link-title" in the menue option =ToolTip
  • sortval => (integer) Position in the menue; biggest one first
  • reldate => (date) date when the page will start display; ISO format YYYY-MM-DD
  • deldate => (date) date when the page will ends display; ISO format YYYY-MM-DD
  • auth => (bool) authentification necessary for this page
  • logout => (bool) If TRUE: logout and delete the session
  • redirect => (string) redirection target; URL
  • form => () include Formparser
  • headline => (string) alternative name of the page in the HTML <title>
  • css => (string) includes one CSS file from the folder "/css/"
  • script => (string) includes one JavaScript file from the folder "/js/"
  • include => (string) relative path and filename to a file, which will be included

Some keys have only an effect, when the key is placed in an "index.html" file. These are marked with [IDX]

All the Meta-informations are useable in the array "$SNC_PAGEINFO"