We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1705
    • 9 Posts
    Hello

    I need some help with the following. I have successfully set up tagged blogging and included a ’tag landing page’ - this all works fine.

    My client would like each page on the website to have a ’click here for related blog posts’ link or even all the links showing back to the relevant blog posting. For example - a blog post could be tagged "accommodation" - I need all "accommodation" tagged blogs to show up on the accommodation page.

    Can this be achieved with a ditto call?

    Any help or suggestions would be appreciated!

    Thanks

      • 19369
      • 1,098 Posts
      Hi Anika,
      Have you tried to read Ditto Forum? http://modxcms.com/forums/index.php/board,180.0.html
      Maybe you can find an answer there.

      Btw if you post the code it’s easyer to help you
        • 1705
        • 9 Posts
        Hi - thanks for your reply.

        I have searched through the ditto forum but have not found what I am looking for.

        This is what I have so far:

        The following Ditto call is on the main Blog page:

        [!Ditto? &parents=`57` &display=`4` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`myTags` &tagDelimiter`, ` &tagDocumentID=`16` !]

        myTags is a TV to add a new tag for each blog article I have.

        The same Ditto call is on a ’landing page’ - e.g if you click on the tag in the blog article it shows all articles containing that tag:

        [!Ditto? &parents=`57`&display=`4` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`myTags` &tagDelimiter`, ` &tagDocumentID=`16`!]

        So....
        this is somewhat effective. A user can go to the read all blog page - and filter through posts by tag.

        What I am trying to achieve: go to any random page in the site and be able to read or click on a link to view "any related blog articles to that page".

        So when a client posts a new blog article - it magically appears on a relevant page in the rest of the site smiley

        I am not even sure if the tagged blogging is even the right way to do this....

        Hope the above makes sense. Any suggestions appreciated.

        Thanks

          • 19369
          • 1,098 Posts
          Maybe this?
          http://wiki.modxcms.com/index.php/Tagged_blogging_with_Ditto
          and
          http://modxcms.com/tagLinks-1219.html

          This is for a previous version of MODx, I don’t know if it’s still working, but, perhaps... rolleyes