We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27023
    • 36 Posts
    Ok i’m rather struggling to create my portfolio site with the use of ditto tagging.

    Basically i have a folder tree that is setup as follows:

    Portfolio (id=3)
    - Web
    - Print
    - SEO


    I need to basically have a portfolio page that displays all the documents in each folder and the tags above each that once clicked will filter for that tag. I also need at the top of the portfolio page to have buttons for all the tags so that they can be filtered from there also.

    I have managed to get the tags to work for each individual document that is displayed with its tags but its the filter at the top of the page that i’m struggling to get working.

    Here is the code so far:

    Ditto call on portfolio page:
    [!Ditto? &parents=`3`&orderBy=`createdon ASC` &tpl=`portfolioThumbs` &depth="0" &showPublishedOnly="1" &display=`18` &paginateAlwaysShowLinks=`0` &tplPaginateNext=`portfolioNext` &paginate=`1` &tagData=`portTag` &tagDelimiter=` / ` &tagMode=`onlyTags`!]


    Chunk for each document item:
    <li>
              <div class="tags">[+tagLinks+]</div>
              <a href="#"><img src="[+portThumb+]" alt="[+pagetitle+]" width="295" height="132" /></a>
              <a class="porttitle" href="#">[+pagetitle+]</a>
    </li>
      • 26931
      • 2,314 Posts
      I have managed to get the tags to work for each individual document that is displayed with its tags but its the filter at the top of the page that i’m struggling to get working.
      you could use the TvTagCloud Snippet for that http://modxcms.com/extras/package/473
        • 27023
        • 36 Posts
        I tried the TvTagCloud route but was unsuccessful as it displayed all the tags for the 2 samples i had.

        For instance it outputted
        WEB/CMS/ECOMMERCE(1) PRINT/LOGO(1)

        but i wanted it to output all the tags seperately like
        WEB(1) / CMS(1) / ECOMMERCE(1) / PRINT(1) / LOGO(1) / SEO(0)


        so it covers my two samples that have multiple tags in web,cms etc...

        Is this possible with TvTagCloud does anyone know?

        thanks in advance