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
    From this discussion https://forums.modx.com/thread/91582/evo-sitemap-not-working---help#dis-post-500888
    (Thanks to fourroses666 & mrhaw)

    Seo4Evo
    A Collection of SEO Tools for MODx Evolution from various authors with a dedicated ManagerManager Tab





    This Package includes


    Seo4Evo snippet
    Returns HTML meta tags for SEO4EVO Packages tvs

    meta charset
    base href
    title
    keywords
    description
    robots
    copyright
    canonical
    og:site_name (facebook)
    og:type (facebook)
    og:url (facebook)
    og:image (facebook)
    fb:app_id (facebook)
    author (google+)
    publisher (google+)

    <meta charset="UTF-8" />
     <base href="http://domain.com/" />
     <title>My custom title</title>
     <meta name="keywords" content="snippets,plugins,chunks,tvs" />
     <meta name="description" content="my meta description" />
     <meta name="robots" content="noindex, nofollow" />
     <meta name="copyright" content="Test Site" />
     <link rel="canonical" href="http://domain.com/design.html" />
     <meta property="og:site_name" content="Test Site" />
     <meta property="og:type" content="article" />
     <meta property="og:url" content="http://domain.com/blog.html" />
     <meta property="og:image" content="http://domain.com/assets/images/test2.jpg" />
     <meta property="fb:app_id" content="123456789123456789" />
     <link rel="author" href="https://plus.google.com/1234567891234567899" />
     <link rel="publisher" href="https://plus.google.com/123456789123456789" />


    Sitemap Snippet
    http://modx.com/extras/package/sitemap

    DynamicDescription Snippet
    http://modx.com/extras/package/dynamicdescription

    Virtual Alias Plugin
    http://www.stanback.net/code/modx/virtual-aliases.html

    Chunks:mm demo rules SEO (sample code for ManagerManager plugin the Seo Tab)

    On page settings (tvs)

    Seo4Evo Snippet tvs:

    CustomTitle - Seo Custom Title for metatag title - Default value is [pagetitle]
    Meta Keywords - Meta Keywords - comma separated keywords
    CanonicalUrl - Custom CanonicalUrl - If Empty full alias for pages or domain url for homepage - works like using if snippet :
    <link rel="canonical" href="[[if? &is=`[*id*]:is:1` &then=`[(site_url)]` &else=`[(site_url)][~[*id*]~]`]]" />

    Author - Google plus author page URL (if empty does not display the tag)
    Meta Description - If Empty get the first 25 words from content (via $modx->runSnippet DynamicDescription Snippet)
    Robots Index this Page - Include or exclude the page in Search Engines
    Robots - Following Links - Follow or noFollow links on the page

    Virtual Alias Plugin tvs:

    301 Redirects - Add old url - New aliases should each be added on a separate line. Omit any leading or trailing slashes as well as the default suffix (usaully .html)

    SiteMap Snippet tvs:

    Sitemap exclude - Include or exclude the page in Google SiteMap
    Sitemap update frequency - How often the content will be changed
    Sitemap Priority - Importance of the page


    Seo4Evo Snippet Parameters:
    preTitle
    postTitle

    Facebook Open Graph Protocol Parameters

    OpenGraph - 1= enable OG metatags
    OGfbappId - your facebook app id
    OGimageTv - image tv for your shared post on facebook default tv: thumbnail
    OGtype - default: website (more infos: https://developers.facebook.com/docs/reference/opengraph)

    Google Plus Parameters

    GooglePlus - 1= enable G+ metatags
    linkPub - the "brand" google publisher page

    Basic call - only site metatags
    Add Seo4Evo snippet call after the opening HEAD tag in your template
    [[Seo4Evo]]

    With Facebook Open Graph metatags
    [[Seo4Evo? &OpenGraph=`1` &OGfbappId=`123456789123456789` &OGimageTv=`my-thumbnail` &OGtype=`article`]]

    With Facebook Open Graph e Google plus metatags

    [[Seo4Evo? &OpenGraph=`1` &OGfbappId=`123456789123456789` &OGimageTv=`my-thumbnail` &OGtype=`article` &GooglePlus=`1` &linkPub=`https://plus.google.com/123456789123456789`]]


    More infos, download and docs:
    https://github.com/Nicola1971/Seo4Evo




    [ed. note: banzai last edited this post 12 years, 2 months ago.]
      Free MODx Graphic resources and Templates www.tattoocms.it
      -----------------------------------------------------

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

      bubuna.com - Web & Multimedia Design
      • 9995
      • 1,613 Posts
      Thanks! Nice work laugh
        Evolution user, I like the back-end speed and simplicity smiley
        • 2762
        • 1,198 Posts
        New Update!

        New in RC2.1

        2 new Seo4Evo snippet parameters for more customization of pagetitle:


        • preTitle
        • postTitle

        Example:

        [[Seo4Evo? &preTitle=`[(site_name)] |` &postTitle=`> [(site_name)]`]]


        Result:

        <title>Test Site | My custom SEO Title > Test Site</title>
        


        Added mm_ddMaxLength ManagerManager Rules to count/control max length !!
        Meta Description: 350 ch
        CustomTitle: 70 ch

        Updated image and infos in the first post.
          Free MODx Graphic resources and Templates www.tattoocms.it
          -----------------------------------------------------

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

          bubuna.com - Web & Multimedia Design
          • 2762
          • 1,198 Posts
          New little update RC 2.1.1

          New Seo4Evo snippet parameter: KeywordsTv: custom MetaKeywords tv:
          for old projects, you can use your existing tags tv (ie:documentTags) instead default Seo4Evo MetaKeywords tv

          example

          [[Seo4Evo? &KeywordsTv=`[*documentTags*]` &OpenGraph=`1` &OGfbappId=`123456789`]]
          

          Any suggestion/commets/bugs before Public Release?

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

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

            bubuna.com - Web & Multimedia Design
            • 9995
            • 1,613 Posts
            Looks near to perfect to me smiley
              Evolution user, I like the back-end speed and simplicity smiley
              • 2762
              • 1,198 Posts
              Have you tryied? I'm testing the complete package on 3-4 live sites and fixed all issue or possible improvements I've found, but need more tests before PL

              Note: I' ve just started a new modx Seo package project about Schema.org tags for evo
                Free MODx Graphic resources and Templates www.tattoocms.it
                -----------------------------------------------------

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

                bubuna.com - Web & Multimedia Design
                • 9995
                • 1,613 Posts
                I will try it, at the moment I can't really test it because I'm in the middle of a house "rebuilding".
                Tonight I will install it.
                  Evolution user, I like the back-end speed and simplicity smiley
                  • 9995
                  • 1,613 Posts
                  Argh, PackageManager isn't working for me that great sad

                  I get a blank screen after install.
                  The mm_rules chunk is visible and I did paste the code in the mm_rules but the files are not unpacked I think..
                  What steps do you take to install Seo4Evo ?

                  I can see the plugin, snippet and the chunk..


                  Upgrading my test domain from 1.0.10 to latest atm.
                  With the external URL it says it is not a valid package
                    Evolution user, I like the back-end speed and simplicity smiley
                    • 2762
                    • 1,198 Posts
                    The blank screen is related to PackageManager, it happens to me on some servers.

                    if tvs, plugin, snippet and chunk are installed, you just need to connect tvs to your template and add the snippet call instead your metatagas
                      Free MODx Graphic resources and Templates www.tattoocms.it
                      -----------------------------------------------------

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

                      bubuna.com - Web & Multimedia Design
                      • 9995
                      • 1,613 Posts
                      Correct, I haven't looked at the TVs yet because the tab wasn't visible.

                      This part in mm_rules doesn't make the new tab, when I remove this line the tab is there:

                      if ($modx->db->getValue($modx->db->select('count(id)', $modx->getFullTableName('site_tmplvars'), "name='MetaKeywords'"))) {
                      	mm_widget_tags('MetaKeywords',',');
                      }


                      PackageManager doesn't like the server I'm on then probably. About all my websites I use the same host so that sucks.


                      #EDIT#
                      Need to check my mm_rules, I see double stuff going arround.. [ed. note: fourroses666 last edited this post 12 years, 2 months ago.]
                        Evolution user, I like the back-end speed and simplicity smiley