We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2762
    • 1,198 Posts
    Add schema.org microdata for "WebPage", "Article" or "Blog" (and more) to your MODX Evolution website without change the html code of your template and your snippets tpls.

    This plugin search for html tags and default modx snippets output and automatically adds schema.org microdatata.

    Supported Properties in RC 1.3:

    itemscope and itemtype: Default (WebPage), Contactpage, SearchResultsPage or Tv value
    mainContentOfPage / articleBody
    headline
    alternativeHeadline
    image
    keywords (tagLinks snippet)
    rating (anythingRating snippet)

    Configuration parameters:

    The default plugin configuration works with the Evolution demo content installation and most used modx snippets, but it can be customized according to the need.

    The packages Includes a SchemaItemScope tv for onpage settings

    Basic Example (before and after):

    Before:
    <body>
    <div class="container">
    <h1>Title of this page</h1>
    <div class="tagLinks">Tags: <a href="..." rel="tag">tag1</a>,<a href="..." rel="tag">tag2</a></div>
    <img src="assets/images/image.png" alt="image test"/>
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
    <div class="anythingRating">
    <div id="score_idItem" class="score">
    <span class="outnbsClass">0/5 stars</span> <span class="votesClass">(0 votes)</span>
    </div>
    </div>


    After:
    <body itemscope itemtype="http://schema.org/Blog">
    <div class="container">
    <h1 itemprop="headline">Title of this page</h1>
    <div class="tagLinks" itemprop="keywords">Tags: <a href="..." rel="tag">tag1</a>,<a href="..." rel="tag">tag2</a></div>
    <img itemprop="image" src="assets/images/image.png" alt="image test"/>
    <div id="maincontent" itemprop="articleBody">
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
    </div>
    <div class="anythingRating">
    <div id="score_idItem" class="score" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
    <span class="outnbsClass" itemprop="ratingValue">0/5 stars</span> <span class="votesClass" itemprop="reviewCount">(0 votes)</span>
    </div>
    </div>
    


    Download and docs on github
    https://github.com/Nicola1971/SchemaWebPage-plugin


      Free MODx Graphic resources and Templates www.tattoocms.it
      -----------------------------------------------------

      MODx IT  www.modx.it
      -----------------------------------------------------

      bubuna.com - Web & Multimedia Design
      • 9995
      • 1,613 Posts
      bookmarked smiley
        Evolution user, I like the back-end speed and simplicity smiley