Elxis CMS Forum

Support => General => Topic started by: xmanhattan on February 11, 2017, 15:25:08

Title: populate meta tag
Post by: xmanhattan on February 11, 2017, 15:25:08
Hello all,

I would like to know how the following meta tag fields can be populated according to the category, page, articles information per output page using eFactory and/or elxisDocument.

The following are a few examples without information between the quotes.
I have added notes after the comments.
The ones that are noted as set by the webmaster are fixed information that require manual input.

So based on eFactory and/or elxisDocument, how can I output the website info to these meta tags?

Code: [Select]
<!-- Open Graph Protocol -->
<meta property="og:site_name" content=""> // this is similar to <title> of  ach page
<meta property="og:title" content=""> // this is similar to <meta name="keywords" for each page
<meta property="og:description" content=""> // this is similar to <meta name="description" for each page
<meta property="og:url" content=""> // this is similar to URL without www.

<meta property="og:type" content="website"> // this is set by the webmaster - this is standard for websites

<!--  twitter metadata  -->
<meta name="twitter:title" content="">  // this is similar to <meta name="keywords" for each page
<meta name="twitter:description" content=""> // this is similar to <meta name="description" for each page
<meta name="twitter:domain" content="">'; // this is similar to URL without www.

<meta name="twitter:creator" content="@xxxxxxx"> // this is set by the webmaster to owner user account