We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36592
    • 970 Posts
    Quote from: joshlfisher at Mar 11, 2009, 12:54 PM

    I’d like to use the built in TV description to serve as the tags TV, but this call doesn’t work.
    I think you can not use ’description’ or any other modx variables like content/pagetitle... as &tvTags parameter.
      • 36592
      • 970 Posts
      These are the part of this snippet source.
      $tb1 = $modx->getFullTableName("site_tmplvar_contentvalues");
      $tb2 = $modx->getFullTableName("site_tmplvars");
      $tb_content = $modx->getFullTableName("site_content");
      $query = "SELECT stv.name,stc.tmplvarid,stc.contentid,stv.type,stv.display,stv.display_params,stc.value";
      $query .= " FROM ".$tb1." stc LEFT JOIN ".$tb2." stv ON stv.id=stc.tmplvarid ";
      $query .= " LEFT JOIN $tb_content tb_content ON stc.contentid=tb_content.id ";
      $query .= " WHERE stv.name='".$tvTags."' AND stc.contentid IN (".implode($cIDs,",").") ";
      $query .= " AND tb_content.pub_date >= '$pub_date' ";
      $query .= " AND tb_content.published = 1 ";
      $query .= " ORDER BY stc.contentid ASC;";
      

      I’m not a PHP programmer but you seems to have to add something like...
      $query .= " AND tb_content.deleted = 0 ";
      

      ???
        • 14779
        • 256 Posts
        Quote from: tkfm at Mar 12, 2009, 01:22 AM

        Quote from: joshlfisher at Mar 11, 2009, 12:54 PM

        I’d like to use the built in TV description to serve as the tags TV, but this call doesn’t work.
        I think you can not use ’description’ or any other modx variables like content/pagetitle... as &tvTags parameter.


        Is there any way to get around this? smiley
          PM me to find out how you can get a FREE ipad 2!
          • 14779
          • 256 Posts
          I tried to hack the snippet, but I am not at all proficient in php, so it naturally failed smiley

          Anyone know how I can display the info inside the description TV?
            PM me to find out how you can get a FREE ipad 2!
            • 17427
            • 10 Posts
            Hi all,

            I’m having the same trouble as many of the members in here and hope someone can help. I’ve tried everything mentioned in all the replies / comments and so far, no good.

            I have installed the latest version of TVTagCloud (2.1.4) and Ditto (2.1+), and can generate a tag cloud for the test tags I’ve inserted (into 2 pages). The cloud can be seen at http://www.rationalrec.org.uk/archive/tag-cloud.html

            Holding your mouse over each tag will show the number of pages MODx is counting for each tag - so I know there are these tags on documents in the site. When I click on any of them, though, I get ’No documents found’ every time.

            My configuration code is:

            Tag cloud:
            [!TvTagCloud? &parent=`2` &tagData=`docTags ` &landing=`66` &sort=`asc` &showCount=`0` &displayType=`cloud` &tooltip=`[+count+] documents tagged with '[+tag+]'` &tagDelim=`,`!]


            Results page:
            [!Ditto? &startID=`2` &paginate=`0` &sortBy=`pagetitle` &sortDir=`asc` &tagData=`docTags` &tagDelimiter=`,`!]


            Any help gratefully received!
              • 36592
              • 970 Posts
              [!TvTagCloud? &parent=`2` &tagData=`docTags ` &landing=`66` &sort=`asc` &showCount=`0` &displayType=`cloud` &tooltip=`[+count+] documents tagged with '[+tag+]'` &tagDelim=`,`!]

              I think TvTagCloud snippet does not have the parameter ’&tagData’.
              It should be ’&tvTags’ ?
                • 17427
                • 10 Posts
                Cheers for the reply tkfm - I’ve changed the parameter and it does exactly the same thing - page still up at http://www.rationalrec.org.uk/archive/tag-cloud.html

                Code is now:

                [!TvTagCloud? &parent=`2` &tvTags=`docTags ` &landing=`66` &sort=`asc` &showCount=`0` &displayType=`cloud` &tooltip=`[+count+] documents tagged with '[+tag+]'` &tagDelim=`,`!]


                and still brings no results where there should be some.

                I think it might be a problem with Ditto, but I’m not experienced with PHP so at a bit of a loss!
                  • 36592
                  • 970 Posts
                  &tvTags=`docTags `

                  You have one space before ending "`".
                    • 17427
                    • 10 Posts
                    Eagle eyes! I’ve amended and tested and still doing the same thing.

                    Code is now - for tag cloud:
                    [!TvTagCloud? &parent=`2` &tvTags=`docTags` &landing=`66` &sort=`asc` &showCount=`0` &displayType=`cloud` &tooltip=`[+count+] documents tagged with '[+tag+]'` &tagDelim=`,`!]


                    And for Ditto landing page:
                    [!Ditto? &startID=`2` &paginate=`0` &sortBy=`pagetitle` &sortDir=`asc` &tagData=`docTags` &tagDelimiter=`,`!]


                    Any ideas why I’m getting no results for the tag searches?
                      • 3707
                      • 241 Posts
                      You could try using &parents=`2` instead of &startID=`2` in your Ditto call.