We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32519
    • 94 Posts
    Alright, here’s the page in question. http://www.themovietimeline.net/modx/index.php?id=8
    Each different div needs to have a different document displayed inside of it. Not sure if there’s a streamlined way to do this. I’ve experimented with a few parameters, but to no avail. I want the end result will be similar to this page. http://www.themovietimeline.net/ (scroll down).

    Right now I have this ditto in the pages content section. [!Ditto? &parents=`8` &display=`1` &tpl=`timelinelayout` !]

    With the template call out being this {{chunk}}:
    <p><b><a href="[~[+id+]~]">[+pagetitle+]</a></b>
    [+introtext+]
    <a href="[+url+]"> read more...</a></p>

    Using this template:
    {{siteheader}}
    {{sidebar}}
    <div id="timelineheader">
    </div>
    <div id="tlleft">
    </div>
    <div id="tlleft2">[*content*]
    </div>
    <div id="timeleft1"> tadfafa
    </div>
    <div id="tlright">[*content*]
    </div>
    <div id="timeright1">
    </div>
    <div id="tlleft">
    </div>
    <div id="tlleft3">
    </div>
    <div id="timeleft2">
    </div>
    <div id="tlright2">[*content*]
    </div>
    <div id="timeright2">
    </div>
    </body>
    <div id="footer">
    <p>© [(site_name)]</p>
    </div>
    </div>
    </html>

      <a href="http://www.themovietimeline.net">The Movie Timeline</a> | <a href="http://www.antstuff.net">The Antfarm Site</a>
      • 15152
      • 360 Posts
      You can keep the Ditto call but simply ask it to call more documents - [!Ditto? &parents=`8` &display=`10` &tpl=`timelinelayout` !]

      The rest is up to your CSS styling. The images would require a Template Variable and call for it.
        There are no boring projects. Only boring executions. ~ Etzkorn
        www.impress-design.com
        • 32519
        • 94 Posts
        Quote from: JWMSales at Apr 06, 2010, 03:44 PM

        You can keep the Ditto call but simply ask it to call more documents - [!Ditto? &parents=`8` &display=`10` &tpl=`timelinelayout` !]

        The rest is up to your CSS styling. The images would require a Template Variable and call for it.

        Thank you, I gave that a try, but if I just call up more documents. It just displays all of the docs in every div. I have the same [*content*] call out in each div, and I think that is my problem. I need a parameter to tell doc=1 to populate div1, doc=2 to populate div2 and so on. Hopefully, without making a shitload of {{chunks}} or templates. I just don’t know how to do that, or if it’s possible.
          <a href="http://www.themovietimeline.net">The Movie Timeline</a> | <a href="http://www.antstuff.net">The Antfarm Site</a>