We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20349 ☆ A M B ☆
    • 453 Posts
    Hi all...

    I want to have news displayed via ditto and tags...


    Now.. how can I put on the right side of the template, latest 5 (or 10) related articles (via tag comparison)
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 15162
      • 59 Posts
      I do not know that is this the right way to do it, but this is how I do it.

      Using the &tags call thin(gy) you can specify a list of tags that are shown. IE &tags=`modx` will show every document that has been specified with the tag "modx". It would be hard work to do this manually every time, so I’m using my TV ([*documentTags*]) to insert the tags for me. Like this: &tags=`[*documentTags*]`.

      I have to admit that this solution is half bread because it is a bit stupid. Even if I had two documents with exactly the same tags (modx, does, rule) and one document with only one similar tag (modx, is, awesome) it would still show the document with only one similar tag first if it was newer. But this problem is most likely fixable with a snippet. It would be rather easy (I imagine) to give it some brain, but I myself don’t have the know-how to do this.
        • 20349 ☆ A M B ☆
        • 453 Posts
        I’m sure there is some better solution here? huh wink

        I can’t imagine that none of MODx users don’t use this feature embarrassed
        ..as this is common thing on all major websites
          BASE - Web Design Studio
          MODX Ambassador

          Website