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

    I followed this tutorial for tagging content:
    http://vimeo.com/929777?hd=1

    Thought all was okay, but now I realise it’s not working correctly... more importantly I think I may have misunderstood what it was actually offering, so I’m trying to get it to do something it does’t do!

    Basically I like the fact that I can click a link, and then it goes to a page showing news items with all items with that tag. I got that part working fine.

    The part I can’t get to work is for it to list the right tags within the document... as I want the tags listed within the news item itself. But the call I had (below) was not showing tags for the current document.

    [!Ditto? &parents=`2` &total=`20` &summarize=`1` &tpl=`tags-news` &removeChunk=`Comments` &extenders=`summary` &tagData=`news-tags` &tagDelimiter=`, ` &tagDocumentID=`14`!]

    Can anyone help me.. I’m feeling really dumb on this one.

    Thanks
      • 12379
      • 460 Posts
      I create a template for the blog/news item called "Permalink" and put this Ditto call in it:

      [[Ditto? id=`wp` &documents=`[*id*]` &dateFormat=`%A, %B %d %Y  at %l:%M %p` &dateSource=`pub_date` &tpl=`blog_post_tpl` &tagData=`tags` &tagDelimiter=`,` &tagDisplayDelimiter=`, ` &tagDocumentID=`34`]]
      


      ... where blog_post_tpl (note tagLinks placeholder):
      <h3>[+longtitle+]</h3>
      <p><span class="post-date">Posted on [+date+] with tags [+tagLinks+]</span></p>
      <p><strong>[+introtext+]</strong></p> 
       [+image:isnot=``:then=`<p class="image"><a href="[+url+]"><img src="[+image+]" /></a></p>`+]
       [+content+]
       <p>{{AddThis_button}}</p>


      ...and tag landing page is 34.
        Mostly harmless.
        • 12372
        • 44 Posts
        Thanks hotdiggity. I have just this minute fixed mine! I needed to add &documents with the current ID - that’s what I was missing, and have fixed it.

        Thanks again for the fast response, it is appreciated.
          • 12379
          • 460 Posts
          Glad to hear. If you’re using Reflect to display WordPress style archives and tags, you’ll probably need to look at this thread eventually, too.
            Mostly harmless.