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
  •  
  • Display only documents in multiple folders#

  • 37909
    12

    neoziox Reply #1, 5 months ago

    Reply
    • Link to this post#1
    I illustrate to explain. It's more easy.
    This is my modx docs:
    - Master Folder (6)
        | Docs number 1 (9)
        + Folder number 1 (8)
              | Many docs here
        + Folder number 2 (15)
              | Many docs here
        + Folder number 3 (43)
              | Many docs here
        + Folder number 4 (46)
              | Many docs here

    Now I displays my docs like this:
    [!Ditto? &orderBy=`NomLatin ASC` &tpl=`plantes_ditto_toutes` &parents=`8,15,43,46`!]

    But if I create a new folder in the Master Folder I must change the Ditto declaration like this:
    [!Ditto? &orderBy=`NomLatin ASC` &tpl=`plantes_ditto_toutes` &parents=`8,15,43,46,idOfNewFolder`!]

    If I use this declaration:
    [!Ditto? &orderBy=`NomLatin ASC` &tpl=`plantes_ditto_toutes` &parents=`6` &depth=`2` !]

    I display 8,15,43 and 46 too. But I don't to see this.
    What should I do?


  • 16278
    774

    kp52 Reply #2, 5 months ago

    Reply
    • Link to this post#2
    To hide the folders that have children of their own, set &hideFolders=`1` in the Ditto call.
    KP


  • 37909
    12

    neoziox Reply #3, 5 months ago

    Reply
    • Link to this post#3
    Thanks. I forgot 1 thing : I don't want to display the doc 9 too.


  • 16278
    774

    kp52 Reply #4, 5 months ago

    Reply
    • Link to this post#4
    You could use a filter for that: &filter=`id,9,2` KP


  • 37909
    12

    neoziox Reply #5, 5 months ago

    Reply
    • Link to this post#5
    thank you. you are my savior





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:
kp52, neoziox

 
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