We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Quote from: hotdiggity at Mar 09, 2010, 01:00 AM

    I stripped it back thinking it could be the problem but all I was left with was:

    <div class="cell rounded_corners clearfix">
    <p>Hello!!</p>
    </div>
    Ditto doesn’t like that because it has no placeholders to process. Change the second line to <p>[+pagetitle+]</p> and see what happens. Bruno17 may be right about the parsing, though.
      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 12379
      • 460 Posts
      cell_layout:
      <h2 id="[*title*]"><a href="[~[+id+]~]">[*longtitle*]</a></h2>
      <div class="cell rounded_corners clearfix">
      
      <div class="intro-head full-width">
      [*introtext*]
      </div>
      
      <div id="main">
      [*content*]
      </div>
      
      <div id="sidebar">
      [*sidebar_content*]
      </div>
      
      <div id="footer">
      {{footer}}
      </div>
      
      </div>
      <!-- end .cell -->
      
        Mostly harmless.
        • 26931
        • 2,314 Posts
        try [*introtext*] -> [+introtext+] etc.
          • 12379
          • 460 Posts
          Yeah, tried that but the TVs drop out.
            Mostly harmless.
            • 23299
            • 1,161 Posts
            Do you need a container for the two content divs?
              • 3749
              • 24,544 Posts
              I assume that you’ve tried the Ditto call both cached and uncached. I know this would work in Revolution, but it may just not be possible on Evo because of the parsing order.

              In that case, the only thing I can think of is to either write your own mini-version of Ditto, pull the appropriate Tpl chunk, and fill in the placeholders yourself. Either that, or (see below).

              BTW, all the tags in the Tpl need to be [+tv+] -style tags (not [*tv*+] ). Otherwise, they’ll get their value from the document with the ditto call rather than the document being summarized.

              Here’s another thought. It’s truly ugly and wasteful, but it would have to work. Create a TV called "summary" and put everything you want to appear in the Ditto summary page in it (no tags at all). Then create a chunk called "GetSummary" containing just this:

              [+summary+]


              Then use &tpl=`GetSummary` in the Ditto tag.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 4172
                • 5,888 Posts
                you need your placeholders with [+......+] :

                <h2 id="[+pagetitle+]"><a href="[~[+id+]~]">[+longtitle+]</a></h2>
                <div class="cell rounded_corners clearfix">
                
                <div class="intro-head full-width">
                [+introtext+]
                </div>
                
                <div id="main">
                [+content+]
                </div>
                
                <div id="sidebar">
                [+sidebar_content+]
                </div>
                
                <div id="footer">
                {{footer}}
                </div>
                
                </div>
                <!-- end .cell -->


                and try
                &hiddenfields=`longtitle,sidebar_content.......`


                or hiddenFields , I’m not sure
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                  • 3749
                  • 24,544 Posts
                  It’s &hiddenFields. I forgot about that. It could work.
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting
                    • 12379
                    • 460 Posts
                    No that didn’t work either. H’bout what @mrhaw was describing earlier?

                    Quote from: mrhaw at Mar 08, 2010, 02:25 AM

                    If you have 3 ditto calls in the template
                    <h1>Products</h1>
                    id=`one` &tpl=`default` &parents=`2` &display=`[*number*]`
                    id=`two` &tpl=`[*urTV:is=`1`:then=`blue`:else=``*][*urTV:is=`2`:then=`different`:else=``*]` &parents=`2` &start=`[*number*]` &display=`1`
                    
                    <h2>More...</h2>
                    id=`three` &tpl=`default` &parents=`2` &start=`[*number:math=`?+1`*]` &display... &paginate...
                    [+three_next+]...


                    And add a number TV
                      Mostly harmless.
                      • 12379
                      • 460 Posts
                      Any clues here that would make phx solution work?

                      http://ditto.modxcms.com/tutorials/phx-and-nested-tags.html
                        Mostly harmless.