We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30023
    • 172 Posts
    I have the following call to ditto that uses pagination:

    return $modx->runSnippet('Ditto', array('parents'=>($_REQUEST['location'] ? $_REQUEST['location'] : PROPERTY_FOLDER), 'depth'=>'0', 'filter'=>$filter, 'tpl'=>'quickSearchResultsDittoTpl', 'noResults'=>'<p id="no-finds-msg">No properties found.</p>', 'display'=>'all', 'phx'=>'0', 'id'=>'doclist', 'paginate'=>'1', 'summarize'=>$itemsperpage, 'paginateAlwaysShowLinks'=>'1', 'tplPaginatePrevious'=>'PaginatePreviousDittoTpl', 'tplPaginateNext'=>'PaginateNextDittoTpl', 'tplPaginatePreviousOff'=>'PaginatePreviousOffDittoTpl', 'tplPaginateNextOff'=>'PaginateNextOffDittoTpl', 'tplPaginatePage'=>'PaginatePageDittoTpl', 'tplPaginateCurrentPage'=>'PaginatePageCurrentDittoTpl'));


    With phx enabled the pagination placeholders are ignored.

    I have read this http://modxcms.com/forums/index.php?topic=40243.0, but that only seems to apply to Ditto when called in the usual way from a template.

    One workaround would be to write individual snippets to fill in the separate ditto parameters so the ditto call could be in the template e.g.

    [[Ditto? &parents=`[!location!]` ....]]


    but I am wondering if its possible to avoid this and keep the Ditto call within the snippet?

    Alternatively, can phx be disabled for individual documents/templates without hacking phx?

    -- Tim.
      • 4310
      • 2,310 Posts
      Tim, you can disable Phx on a per template or TV basis see http://modxcms.com/forums/index.php/topic,33316.msg238432.html#msg238432
        • 30023
        • 172 Posts
        Thanks.

        Hopefully phx will include exclusions in later versions so we don’t have to hack code. I don’t normally use it but I’m adding stuff to a website that someone else has half-built.

        -- Tim.
          • 35190
          • 2 Posts
          In this web have a solution but is in spanish http://manuales.todolovisto.com/problema-paginacion-ditto-modx