We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17282
    • 283 Posts
    I love what this snippet does, however I’m a bit stuck with the whole steps / styles thing
    .. it seems no matter what I put in my output 9 view source) always shows the class as being empty ...

    for instance .. im using this as my snippet call : " [!TvTagCloud? &parent=`0` &landing=`29` &tvTags=`docTags` &tagDelim=`,` &sort=`asc` &steps=`2,4,6` &styles=`tag3,tag2,tag1` &displayType=`cloud`!] but my source shows this :

    "<div class="tagcloud"><span><a class="" href="TagCloudTest.html?tags=4ortherecord" title="Click for stories about &quot;4ortherecord&quot; (4)">4ortherecord</a></span>
    <span><a class="" href="TagCloudTest.html?tags=actively+seeking+new+talent" title="Click for stories about &quot;actively seeking new talent&quot; (1)">actively seeking new talent</a></span>
    <span><a class="" href="TagCloudTest.html?tags=bulletin+board" title="Click for stories about &quot;bulletin board&quot; (1)">bulletin board</a></span>
    <span><a class="" href="TagCloudTest.html?tags=forum" title="Click for stories about &quot;forum&quot; (1)">forum</a></span>
    <span><a class="" href="TagCloudTest.html?tags=john+peel" title="Click for stories about &quot;john peel&quot; (1)">john peel</a></span>
    <span><a class="" href="TagCloudTest.html?tags=news+board" title="Click for stories about &quot;news board&quot; (1)">news board</a></span>
    <span><a class="" href="TagCloudTest.html?tags=promote+what+you+do" title="Click for stories about &quot;promote what you do&quot; (1)">promote what you do</a></span>
    <span><a class="" href="TagCloudTest.html?tags=ting+tings" title="Click for stories about &quot;ting tings&quot; (1)">ting tings</a></span>
    <span><a class="" href="TagCloudTest.html?tags=unsigned+music" title="Click for stories about &quot;unsigned music&quot; (1)">unsigned music</a></span>
    <span><a class="" href="TagCloudTest.html?tags=welcome" title="Click for stories about &quot;welcome&quot; (1)">welcome</a></span>
    </div>"

    note all classes are empty!

    what am I doing wrong ?

    Thanks
    Martyn
      Everytime you use Flash ... a puppy dies .....
      R.G Taylor
      • 12481
      • 9 Posts
      Quote from: Lizard at May 21, 2008, 07:13 AM

      I love what this snippet does, however I’m a bit stuck with the whole steps / styles thing
      .. it seems no matter what I put in my output 9 view source) always shows the class as being empty ...

      for instance .. im using this as my snippet call : " [!TvTagCloud? &parent=`0` &landing=`29` &tvTags=`docTags` &tagDelim=`,` &sort=`asc` &steps=`2,4,6` &styles=`tag3,tag2,tag1` &displayType=`cloud`!] but my source shows this :

      "<div class="tagcloud"><span><a class="" href="TagCloudTest.html?tags=4ortherecord" title="Click for stories about &quot;4ortherecord&quot; (4)">4ortherecord</a></span>
      <span><a class="" href="TagCloudTest.html?tags=actively+seeking+new+talent" title="Click for stories about &quot;actively seeking new talent&quot; (1)">actively seeking new talent</a></span>
      <span><a class="" href="TagCloudTest.html?tags=bulletin+board" title="Click for stories about &quot;bulletin board&quot; (1)">bulletin board</a></span>
      <span><a class="" href="TagCloudTest.html?tags=forum" title="Click for stories about &quot;forum&quot; (1)">forum</a></span>
      <span><a class="" href="TagCloudTest.html?tags=john+peel" title="Click for stories about &quot;john peel&quot; (1)">john peel</a></span>
      <span><a class="" href="TagCloudTest.html?tags=news+board" title="Click for stories about &quot;news board&quot; (1)">news board</a></span>
      <span><a class="" href="TagCloudTest.html?tags=promote+what+you+do" title="Click for stories about &quot;promote what you do&quot; (1)">promote what you do</a></span>
      <span><a class="" href="TagCloudTest.html?tags=ting+tings" title="Click for stories about &quot;ting tings&quot; (1)">ting tings</a></span>
      <span><a class="" href="TagCloudTest.html?tags=unsigned+music" title="Click for stories about &quot;unsigned music&quot; (1)">unsigned music</a></span>
      <span><a class="" href="TagCloudTest.html?tags=welcome" title="Click for stories about &quot;welcome&quot; (1)">welcome</a></span>
      </div>"

      note all classes are empty!

      what am I doing wrong ?

      Thanks
      Martyn

      Hi Martyn
      Steps is actually in percentage so the last value in the list should be 100, and thus, the Styles should be listed in the reversed order.
      Hope this helps.

      Cheers
      Hung
        • 17282
        • 283 Posts
        Thanks!
          Everytime you use Flash ... a puppy dies .....
          R.G Taylor
          • 2690
          • 148 Posts
          Hello,

          For some reason the &min parameter doesnt work for me. Here is the code i use to generate the cloud:
          [!TvTagCloud? &parent=`49` &limit=`100` &min=`5` &displayType=`cloud` &sort=`numdesc` &landing=`5497` &tvTags=`Product_Tags` &showCount=`0` &tagDelim=`,`!]


          here is the ditto call on the results page:
          [[Ditto? &parents=`59,60,2484` &depth=`5` &display=`all` &showInMenuOnly=`1` &hideFolders=`1` &sortBy=`pub_date` &sortDir=`DESC` &tagData=`Product_Tags` &tagDelimiter=`,` &tpl=`sneaker_list`]]


          Do you see any obvious problems with the above codes? What esle should i check?

          Thank you!

          Aleks
            MODx Revo 2.0.6-pl (Traditional) | Apache 2.2.3 | PHP 5.2.14 | MySQL 5.0.77 | MAC OS 10.6.5 | FF 3.6/Chrome 9.0.5
            • 36592
            • 970 Posts
            Quote from: bakalek at Oct 03, 2008, 12:26 PM

            For some reason the &min parameter doesnt work for me.
            I looked into the code of ver 2.1.4 and I think I found a bug...

            This part
            <?php
            ...
            // if this tag has less than the minimum required count, remove it
            if ($min > 0 && $data['count'] < $min) {
            	unset($tags[$tag]);
            	break;
            }
            ...
            ?>
            

            should be
            <?php
            ...
            // if this tag has less than the minimum required count, remove it
            if ($min > 0 && $data['count'] < $min) {
            	unset($tags[$tag]);
            	continue;
            }
            ...
            ?>
            

              • 36527
              • 120 Posts
              I wonder if anyone has any idea on how to do this:

              I have 20 odd docs and each has 4 sets of tv’s with about 10 checkboxed choices for a tag. So a admin user can tag a document multiple times in multiple categories such as:

              1. Location

              USA, Canada

              2. Transport

              Car, Truck

              etc

              What I want to be able to do is generate lists of each tv tag set and get the user to be able to drill down by say clicking on USA, this displays the USA results. And then is the user wanted to then drill down by car - this results in returning docs that have been tagged with USA and car.

              Any ideas?
                • 4429
                • 429 Posts
                I tried this with default settings and ended up with an inline list. Does it need styling to create an actual cloud with some items larger than others?


                Anyway I had a play with a very basic style but when using firebug and inspecting the elements, they all seem to be taking the style of tag1

                here is my code

                [!TvTagCloud? &parent=`54` &landing=`32` &tvTags=`tags` &showCount=`1` &steps=`1,4,100` &styles=`tag100,tag4,tag1` &displayType=`cloud`!]

                  • 2912
                  • 315 Posts
                  Hi, This should getyou started. Pop it in your current CSS style sheet or into your template directly:

                  .s1 {
                  font-size:100%;
                  }
                  .s2 {
                  font-size:125%;
                  }
                  .s3 {
                  font-size:140%;
                  }
                  .s4 {
                  font-size:180%;
                  }
                  .s5 {
                  font-size:210%;
                  }
                  
                    BBloke
                    • 4429
                    • 429 Posts
                    Quote from: BBloke at Oct 16, 2008, 02:31 PM

                    Hi, This should getyou started. Pop it in your current CSS style sheet or into your template directly:

                    .s1 {
                    font-size:100%;
                    }
                    .s2 {
                    font-size:125%;
                    }
                    .s3 {
                    font-size:140%;
                    }
                    .s4 {
                    font-size:180%;
                    }
                    .s5 {
                    font-size:210%;
                    }
                    


                    There is no change at all.

                    I used s5,s4,s3,s2,s1 for my &;styles=` ` tag but now its still only takes the style of one element, which in this case is s3. So all i end up with in an inline list and not a tag cloud.

                    Here are my tags:
                    europe(4) western europe(1) uk(6) eastern europe(1) cental europe(1)
                      • 16834
                      • 93 Posts
                      @c-m

                      Not sure where they crept in - in your actual code or here on the forum - but shouldn’t the ’&amp;’ be just ’&’ - make sure your HTML editor is not messing things up, here.

                      My code reads:

                      [!TvTagCloud? &parent=`70` &sort=`asc` &landing=`518` &tagDelim=`,` &tooltip=`[+count+] relevant documents` &tvTags=`docTags` &showCount=`1` &steps=`20,70,100` &styles=`tagLarge,tagMid,tagSmall`!]