15 juillet 2009 ~ 7 Commentaires

Ajouter des meta tags en TYPOSCRIPT

Il existe quelques extensions (metatags en autre) permettant d’exploiter les champs (‘description’, ‘Mots clés’, ‘résumé’, …) présent lorsque l’on édite les propriétés d’une page dans l’onglet « Meta données ».

Il est aussi possible d’exploiter ces champs en TYPOSCRIPT d’une manière assez simple :

page.meta {
     keywords.field = keywords
     description.field = description
     author.field = author
     robots = index,follow,archive
}

Grâce à ce code, si un champ est rempli, la balise meta correspondante sera automatiquement créée.

Il est bien sûr possible de paramétrer l’ensemble des champs présents dans l’onglet « Meta données ».

7 commentaires pour “Ajouter des meta tags en TYPOSCRIPT”

  1. Ryo 14 novembre 2009 at 17:57 Permalink

    Bonjour et merci pour cette explication.

    Une question me taraude cela dit, est-il possible en typoscript de procéder de la manière suivante :

    J’ai dans les constants d’un site, des champs meta tags permanent pour toutes les pages. exemple :

    plugin.meta.keywords = (mes keywords)
    plugin.meta.description = (ma description)

    Et je voudrais savoir si en typoscript, il est possible quand on remplit les meta données dans une page précise, qu’elle écrase celle qui sont dans les constants. En revanche si aucun metatags est détecté dans une page unique, alors typo utilise les constants.

    Actuellement typo ajoute les keywords et description d’une page en plus de celle prédéfini dans les constants ce qui n’est pas bien optimal pour le référencement au cas par cas.

    Merci par avance :)

  2. Thomas Leroy 16 novembre 2009 at 00:31 Permalink

    J’ai répondu à ta question dans un nouveau billet :

    http://www.tleroy.fr/ajouter-meta-tags-par-defaut-typoscript/

    J’espère que cela répond à tes attentes.
    Merci de me confirmer tout ceci :)

  3. Ryo 17 novembre 2009 at 05:11 Permalink

    Superbe ! Merci beaucoup :)

  4. DavidEruct 31 août 2021 at 16:08 Permalink

    Best professional affordable San Diego appliance repair near me services. We fix ovens, refrigerators, dishwashers, washers, dryers.

    We have you, and your best interest, at heart. We guarantee exceptional customer Appliance Repair San Diego and we’re here to help you every step of the way. Whatever your problem – we have your solution. You can rest assured that you’re in good hands with us.
    Our goal is to take the appliances repair off you and ensure that both customers and clients are being provided the professional service we provide at a affordable price.We pride ourselves on our exceptional customer service, commitment to our customers, our employees – and the well-being of our planet.

    We believe in sharing our success with our employees and giving back to the communities in which we live. We strive to provide a mutually rewarding, gratifying work environment that fosters personal development. That’s our simple secret to success.

  5. JamesPoose 27 juin 2022 at 00:59 Permalink

    Jamshedpur is a large city set between the Subarnarekha and Kharkai rivers in the east Indian state of Jharkhand. It’s known for huge, tree-lined Jubilee Park, where the Tata Steel Zoological Park has resident species including tigers and leopards. To the east, the hilltop Bhuvaneshwari Temple has an elaborate 5-story entrance tower. North of the city, elephants roam through the forests at Dalma Wildlife Sanctuary.

    Jamshedpur

  6. www.lawrence.com 25 février 2023 at 06:31 Permalink

    Заголовок Н1 (название статьи
    или страницы) находится вверху
    страницы, он может содержать те же ключи, как и в title, но не повторять слово в слово – должны быть различия.


Laisser un commentaire