We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10076
    • 1,024 Posts
    Hi,

    I tried to get the metatags created automatically, with no result.
    maybe someone can come up with a solution. This is because allthough I create the TV s so clients "only" need to fill out the metatag description TV and the metatag keywords TV, they dont!
    SO I tried to fill those TV s with place holders like [+title+][+longtiltle+], probably I do not realy understand what is happening, but it does not return results.

    Next I tried it with a chunk:
    <meta name="keywords" content="[+title+] [+longtitle+]"> 
    <meta name="description" content="[+summary+]">


    Again nothing parsed, my ignorance again I guess. Finally I tried with ditto call in a TV, this way:
    @INHERIT[!Ditto? &parents=`[+id+]`&tpl=`description`&hideFolders=`1` &showInMenuOnly=`0` !]

    The tpl being the above chunk, but that creates a list not of the current page, bot of all the pages found in the parrent. Any suggestions? BTW I know this will not give the best metatags, but probably better then no metatags at all.

    Thanks, Frank.

      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Use [*...*] tags. The other [+...+] tags are placeholders set by certain snippets for their own use.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 10076
        • 1,024 Posts
        Hi,

        I am trying the MetaTagsExtra snippet. Moddified it a bit so the introtext is used for the description. Will try to find a way to use the content for that and limit the amout of words used.
        I believe Ditto uses that (So I would prefer using ditto for the metag description). Also would like to find a way to extract text from content, filter out words like "the,it, verbs etc) to create the keywords. But that s a tour de force for me.
        So it will take a lot of time,

        thanks, Frank.
          • 14214
          • 299 Posts
          A plug-in extracting key words for you would be a beautiful addition! If you find a solution do let us know.

          jisaac
            • 7291
            • 129 Posts
            Please keep us posted... sounds like a valuable addition
              [center]-- smiley --[/center]
              [center]New View Media - Custom Website Design[/center]
              [center]Custom Website Design & Marketing = Strategic Business![/center]
              • 36805
              • 354 Posts
              Quote from: Frank at Apr 15, 2010, 07:30 AM

              [..]
              I am trying the MetaTagsExtra snippet. Moddified it a bit so the introtext is used for the description. Will try to find a way to use the content for that and limit the amout of words used.
              [..]
              Why not give this a try?
                • 10076
                • 1,024 Posts
                Thanks, been busy, but will try that for sure.
                  • 29019 ☆ A M B ☆
                  • 104 Posts
                  It looks like you’ve abandoned your first approach, but part of the reason your description didn’t parse is you used "summary" instead of "introtext". If you (or anybody) is still interested, it should work if you try this in a chunk or template:

                  <meta name="description" content="[*introtext*]" />


                  Alternatively you could try the "description" field.
                    www.darkstardesign.com

                    Are you in the Nashville area? Join us for our next MODX meetup!