We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30319
    • 406 Posts
    I’m attempting to use a Ditto page to display job openings.
    However, I don’t want people to click to a new page for each opening they want to read about.
    How do I make Ditto display the full content of each article on one page??

    Setup: Main page is "Jobs" as a container with this code:

    [[Ditto? &parents=`40` &display=`40` &removeChunk=`Comments` &tpl=`jobs` &paginate=`1` &extenders=`summary,dateFilter` &dateFormat=`%A, %B %d, %Y` &display=`10`]]
    


    The ’jobs’ trial template is:
    <h2>[+title+]</h2>
    <div class="jobs">[+link+]</div>
    


    I know the template is not quite right. Basically what I want is to NOT use summary and to NOT truncate any text, how do I NOT truncate any of the body text??

    Thank you, Tom
      • 30319
      • 406 Posts
      I found the answer I needed here:

      http://modxcms.com/forums/index.php/topic,47972.0.html

      I never found this placeholder in any Ditto documentation: [+content+].

      This is what I needed.

      Thank you, Tom
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        You can use any of the document fields (as their corresponding database field names), such as pagetitle, longtitle, introtext, content, menutitle. Ditto automatically makes them into placeholders, along with any TVs associated with the document.
          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
          • 30319
          • 406 Posts
          Thank you...this kind of information was not in the Ditto docs I read before inquiring.
          Then reading the forums I found something about &orderBy and a link to a longer placeholder list, which answered my question.
          Forum search here is not all that good. sad
          Thank you, Tom