Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Add-ons
  • Creating & Repurposing Content
  • Ditto
  •  
  • If I want to use the ditto toget the child's child page content not the child page content [Solved]#

  • 38310
    10

    welkang Reply #1, 4 months, 1 week ago

    Reply
    • Link to this post#1
    If I want to use the ditto toget the child's child page content ,how should i write the ditto?


  • 19369
    917
    Jertix.org -> Web Design & Development, Motion Graphics | Follow me on Twitter | MODx Tutorials (in Italiano) | MODx Snippets (English)

    microcipcip Reply #2, 4 months, 1 week ago

    Reply
    • Link to this post#2
    If you have a different template for the children resources, you may use Ditto &filter parameter. Here is an example:

    Let's suppose you have the parent "Page1" and the children "Page 5,6,7,8":

    Page 1 (with Template ID 1)
    ---Page 2 (with Template ID 2)
    ------Page 5 (with Template ID 3)
    ------Page 6 (with Template ID 3)
    ------Page 7 (with Template ID 3)
    ------Page 8 (with Template ID 3)
    ---Page 3 (with Template ID 2)
    ---Page 4 (with Template ID 2)


    Now you can use a filter which exclude all template except Template ID 3:
                   [!Ditto? &parents=`[*id*]` &display=`10` &filter=`template,3,1`!]
    


    See here the documentation for Ditto filters, I think this is what you are looking for: http://wiki.modxcms.com/index.php/Ditto_Parameters


  • 22427
    423

    ottogal Reply #3, 4 months, 1 week ago

    Reply
    • Link to this post#3
    Let us have a look at your resources tree and explain a bit where you want to have the Ditto call and which resources it should list...





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
microcipcip, ottogal, welkang

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy