SPIP

[ar] [bg] [ca] [cpf] [cs] [da] [de] [en] [eo] [es] [eu] [fa] [fon] [fr] [gl] [id] [it] [ja] [lb] [nl] [oc] [pl] [pt] [ro] [sv] [tr] [vi] [zh] Espace de traduction

Download the latest version of SPIP

SPIP 1.9.2 SPIP 1.9.2
Home page > English documentation > Webmasters > A few examples of loops > To fill HTML Meta tags on article pages

To fill HTML Meta tags on article pages

November 2003 — updated : December 2007

All the versions of this article:

The goal of this example is to populate the meta tags on our page with the list of keywords associated with the article as well as the names of the authors.


If you want to optimize the indexing of your site by search engines, you can, for example, include the description of the article, the associated keywords and the name of the authors in the meta tags.

It should be noticed that for the keywords and the authors, we use a nested loop to seek this information for the related id_article. Also, we specify a separating comma so that the contents of the meta tag are comprehensible (including by a search engine).


ٍShow the template of this page Site created with SPIP | Translation area | Private area