wintitle() and metadesc()

Important for your SEO. Use these functions in the HEAD of your master template "page.html" to specify a generic or article specific title and description.

parameters

//default="..."
Use this value for the window title or meta description. It is only used if the active article or HTML layout are not specified.

precedence

wintitle() wil look for the window title in one of these places:

  1. The SEO windowtitle attribute of the active article
  2. The SEO windowtitle attribute of the active HTML layout
  3. The value of parameter "default"

The title of the active article is used if the parameter default is empty or not present.
In wintitle() "[title]" is replaced by the title of the active article.

metadesc() wil look for the meta descriptions in one of these places:

  1. The SEO "meta description" attribute of the active article
  2. The SEO "meta descrition" attribute of the active HTML layout
  3. The value of parameter default

metadesc() returns "" (empty string) if there is no meta description SEO attribute or default value.

example

This function is used in the <head> <title> section of the page.html master HTML layout.
You can use single quotes for the metadesc parameter to prevent nesting double quotes.

<!DOCTYPE html>
<html>
<head>
<title>[wintitle(default="[title] - Website NAME")]</title>
<meta name="description" content="[metadesc(default='Your general description of the site')]"/>
</head>
<body>
...
</body>
</html>