We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    2 ditto calls, first call using &trunc=`0` and &total=`1` for the complete doc and other to get the following docs (&start=`1` in the second ditto call to jump over the first document).

    EDIT: or, if you can access the full content in ditto template even if trunc is enabled, you could use &tplFirstRow parameter in the ditto call to define separate template for the first document and in that template use [+content+] in place of [+summary+] (not 100% sure if there’s placeholder for [+content+])


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 28338
      • 46 Posts
      Thanks. I will check it out.
        • 2136
        • 134 Posts
        finally made it through all 3 threads. i’m having a problem similar to simon79.

        i’ve made a TV called ’workTags’, a multi-select listbox with 3 tags - brand||print||web. each entry will be tagged with a combo of the 3. what i want to do is have all entries with a specific tag be outputted on a page.

        what i’ve gotten to work:
        [!Ditto? &startID=`12` &tpl=`blogTemplate` &summarize=`10` &paginate=`1` &filter=`tvworkTags,print,1` !]

        whereby anything that only has the ’print’ tag is displayed. what i’d like is to have anything with the print tag, either by itself, or selected with other tags to display.

        what i tried, after reading simon79’s posts and their responses:
        [!Ditto? &startID=`12` &tpl=`blogTemplate` &summarize=`10` &paginate=`1` &filter=`tvworkTags,web,!=` !]

        which is following what Mark recommended:
        Quote from: Mark at Jul 19, 2006, 09:04 AM

        @simon79: First off, there is no parameter increment and second your &filter should look like this:

        &filter=`tvFilter,MPC,!=` 
        


        this isn’t working - it seems to be outputting anything that’s tagged. i tried all the other operators (<, >, <=, >=, !=, ==) and ’!=’ is the only one that seems to do anything, everything else results in ’No entries found.’ so should my call be different, or should i not use a multi-select listbox?

        thank you.
          Sorry - not using ModX anymore 01/01/2007
          • 2136
          • 134 Posts
          i just noticed that when you click on the returned results to go to the complete entry, the SEF url is correct but the content of the page is not the entry but the home page.

          example: here’s the page that has the call with the != operator mentioned in my previous post: http://inkwire.net/work/web

          if you click on any of the entry titles, like ’Test Print Entry,’ the following page has the correct SEF url but the content is from the site’s start (home) page. what am i doing wrong?

          also, how can i format the display of the complete entry? i’d like the title to be repeated on the page.

            Sorry - not using ModX anymore 01/01/2007
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            It’s not supposed to be http://inkwire.net/work/work/portfolio/test_web_brand.html (note the doubled work/work). I deleted the extra work and it goes where expected. It’s going to the home page because that’s the setting for page-not-found errors.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 18397
              • 3,250 Posts
              @arphaus : You need to deliminate the output coming from the TV in some way. Right now it is just gobbling together whever checkbox’s you have checked. Use the delimited list widget with a common deliminator and then set &tagDelimiter with that value. Alternatively you could just append a comma and then a space after each value in the checkbox to do the same thing.

              Secondly, You can only use <=, !=, etc when running the snippet via $modx->runSnippet. You need to use 1-6 to trigger those modes. There is a table I wrote floating around the forums with what goes with what.

              Lastly, what Ditto tpl are you using for the page with SEF URL issues?
                • 2136
                • 134 Posts
                Quote from: sottwell at Oct 08, 2006, 11:57 PM

                It’s not supposed to be http://inkwire.net/work/work/portfolio/test_web_brand.html (note the doubled work/work). I deleted the extra work and it goes where expected. It’s going to the home page because that’s the setting for page-not-found errors.

                here’s the two templates i’m using. the first is for a list on a portfolio page, the 2nd is for the ’latest buzz’ section that appears on several pages:

                <div class="blogFormat">
                  
                    <p class="blogHeader"><a href="[~[+id+]~]"><strong>[+title+]</strong> </a></p>
                <p>[+summary+] </p>
                <!--<span class="blogAuthor">[+author+]</span>-->
                
                </div>

                <a href="[~[+id+]~]"><strong>[+title+]</strong> </a><br /><br />
                <p>[+description+] </p>
                <span class="blogAuthor"><a href="[~[+id+]~]"><strong>Read more...</strong> </a></span>


                Quote from: Mark at Oct 09, 2006, 12:59 AM

                @arphaus : You need to deliminate the output coming from the TV in some way. Right now it is just gobbling together whever checkbox’s you have checked. Use the delimited list widget with a common deliminator and then set &tagDelimiter with that value. Alternatively you could just append a comma and then a space after each value in the checkbox to do the same thing.
                Secondly, You can only use <=, !=, etc when running the snippet via $modx->runSnippet. You need to use 1-6 to trigger those modes. There is a table I wrote floating around the forums with what goes with what.
                ok - for the TV i kept it as a multi-select list with 3 options, added the Delimited List widget and selected a comma as the delimiter. i changed the call to add &tagDelimiter:
                [!Ditto? &startID=`12` &tpl=`blogTemplate` &summarize=`10` &paginate=`1` &filter=`tvworkTags,web,6` &tagDelimiter=`,` !]

                i tried 1-6 for the &filter and 3 of them resulted in all entries being listed and 3 had no entries. should i take a different approach with the TV?
                Quote from: Mark at Oct 09, 2006, 12:59 AM

                Lastly, what Ditto tpl are you using for the page with SEF URL issues?
                both templates are above. i notice on http://inkwire.net/work/print that both Ditto entries there have the extra ’work’ in the url which is causing the problem. what should i be using instead of [~[+id+]~]?

                i hope you guys know that i really appreciate all the help i’ve received from various people. i think the community has a lot to do with it. and the help & encouragement definitely make a difference. thank you.
                  Sorry - not using ModX anymore 01/01/2007
                  • 7923
                  • 4,213 Posts
                  have you tried to set <base href="[(site_url)]" /> to your template?


                    "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                    • 2136
                    • 134 Posts
                    doh - that fixed the url issue. much thanks.

                    i’m also trying a text comma delimited TV and still unable to get the ’show all entries that have X tag’ to work.
                      Sorry - not using ModX anymore 01/01/2007
                      • 2136
                      • 134 Posts
                      anyone have suggestions on how to get the tags to work? i unfortunately can’t move forward with the site until this is resolved.
                        Sorry - not using ModX anymore 01/01/2007

                      This discussion is closed to further replies. Keep calm and carry on.