ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Accessory for Hiding Children in Structure CP Page

July 24, 2010 4:09am

Subscribe [7]
  • #1 / Jul 24, 2010 4:09am

    blendimc

    150 posts

    I whipped up something quick to help de-clutter the main CP page for the Structure Add-On. It’s a simple accessory that will hide the children on the Structure page and provide a + button on hover to reveal children pages and a - button to hide them again. Helpful for sites with many pages in Structure.

    Travis said that he wouldn’t be able to build this functionality into the Structure Plugin for a while because they are focusing on getting EE 2 compatibility completely solid first. Hopefully this can help in the mean time. Please note, currently you must refresh a page after dragging around elements to update them.


    You can download it here: https://bitbucket.org/marcato15/ee-addons/downloads/toggle_children.zip.
    For Tech Support, post here: https://bitbucket.org/marcato15/ee-addons/issues.

    This is my first attempt at an Add-on of any kind (if you can call a simple accessory an Add-on). Let me know if this idea has already been done or if its actually somewhat decent. Thanks.

  • #2 / Jul 26, 2010 3:01pm

    rockthenroll

    485 posts

    This is rad! We definitely intend to add this natively, but this is great in the meantime. Thanks for sharing!

  • #3 / Jul 29, 2010 12:03pm

    will this work in ee 1.x or is it just for ee 2?

  • #4 / Jul 29, 2010 12:05pm

    blendimc

    150 posts

    Since its an accessory, it will only work on ee 2. I don’t have experience with 1.x so I’m not sure what would be necessary. Its just some simple jquery if someone wanted to port it.

  • #5 / Jul 29, 2010 12:11pm

    ah, should have noticed it was an accessory and not an extension. thanks.

  • #6 / Aug 03, 2010 7:21pm

    Chris G.

    6 posts

    Love the accessory…this helps with those long page structures. However, it would be nice if the expand/collapse +/- button displayed at all times. This would help to quickly identify which pages have children.

  • #7 / Jun 16, 2011 1:56pm

    ByteMyPixel

    41 posts

    LOVE LOVE LOVE this!!!  Ahhhhhhwsome!  Thank you blendimc 😊

  • #8 / Jul 25, 2011 7:31am

    Arlene2011

    2 posts

    thank you very much http://www.mbtshoesonlinemall.com

  • #9 / Sep 21, 2011 2:21pm

    Stephen Callender

    148 posts

    Love the accessory…this helps with those long page structures. However, it would be nice if the expand/collapse +/- button displayed at all times. This would help to quickly identify which pages have children.

    I agreed with this, so I modified the accessory to do it.

    In EE/third_party/toggle_children directory, open the only file “acc.toggle_children.php” and replace

    span.extras:first
    in line 65 with
    span.page-title:first

    This moves the +/- buttons to the far left of the row and shows all the time.

    You also need to add the following styling code after \“child-show\” in lines 65, 73 and 78 to make the +/- buttons bigger.

    style=\"font-size:20px;\"
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases