We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13740
    • 86 Posts
    I want a page to display a list of customer testimonials, and have the template dictate the formatting. Thus I want the web site manager to simply enter the data into a list of fields - e.g. "Quote" and "who said it", and then have the page pull that data in and format it.
    How should I best go about this? Is this what TVs are for?
    This would equally apply to a staff listing, client list, portfolio, etc.

    Also, once achieved, is there a way to randomly change the sort-order with each page view, and also have a maximum limit to how many records are shown ?

    Thanks!
      • 25663 MODX Staff
      • 12,272 Posts
      Exactly what TVs are for and how I did them on http://corganics.com/. Set up a TV for each "field", then use Ditto to assemble them as needed. You can use the randomize parameter in Ditto 2.1 to select a single random quote, or a range of random quotes to any arbitrary limits.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 13740
        • 86 Posts
        thanks for the quick reply, and you have a beautiful site!

        If I’m using TVs, does that mean I have to manually set the total number of entries the manager can put in (by creating a TV for each one,) or am I still not getting it?
        I wish there were some more comprehensive documentation...
          • 25663 MODX Staff
          • 12,272 Posts
          You can put in any number of entries you want. You use the Ditto parameters to tell it how many to output on your front end. TVs are the equivalent of custom content fields, in your case, author and quote.

          The Manager doesn’t alter it’s behavior based on the number of TVs, unless you write a custom plugin to make it do so. The Manager is used for controlling the site and creating/editing content.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 4971
            • 964 Posts
            But each testimonial has to go on one MODx document right...
            so one TV, multiple documents & then Ditto to agreggate.
              Website: www.mercologia.com
              MODX Revo Tutorials:  www.modxperience.com

              MODX Professional Partner
              • 25663 MODX Staff
              • 12,272 Posts
              Correct charliez.
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me