Metatags

Fra Molrikwiki

Skift til: Navigation, Søgning

[redigér] Gyldige metatags, der validerer i html5.

http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#standard-metadata-names

Konstanter på skabelon.t3.molrik.dk:

# cat=mo-settings/metatags/01; type=string; label= Metatags keywords - separated with commas - overrided by page keywords
meta.keywords = 

# cat=mo-settings/metatags/02; type=string; label= Metatags description - overrided by page description
meta.description = 

# cat=mo-settings/metatags/03; type=string; label= Metatags author - overrided by page author
meta.author = 

# cat=mo-settings/metatags/04; type=string; label= Copyright info - does not html5 validate
meta.copyright = 

# cat=mo-settings/metatags/05; type=string; label= Robots: Use for instance these codes: Index all pages: "all".  Index no pages: "none". Only this page: "index,nofollow".  Only subpages: "noindex,follow"
meta.robots = all
    
# cat=mo-settings/metatags/06; type=options[,General,Mature,14 years,Restricted]; label= Rating
meta.rating = General

Setup på skabelon.t3.molrik.dk

page.meta {
  keywords={$meta.keywords}
  keywords.override.field=keywords
  description={$meta.description}
  description.override.field=description
  author={$meta.author}
  author.override.field=author
  robots={$meta.robots}
  rating={$meta.rating}
}

Metatags, som man ofte tidligere anvendte, der IKKE validerer under html5:

date{
   data = page:crdate // page:SYS_LASTCHANGED
   date = Y-m-d
}
last-modified{
   data = page:SYS_LASTCHANGED // page:crdate
   date = Y-m-d
}
copyright = {$meta.copyright}
email={$meta.email}
revisit = 7
language = dk
distribution = GLOBAL
Personlige værktøjer