Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rocoeh 65 posts 86 karma points
    Apr 23, 2012 @ 15:08
    Rocoeh
    0

    collapsible or grouping content fields

     

    my content editing area is starting to look a bit untidy is there a way to automatically collapse the fields like Rich text or to group items into a collapsibile fieldset.

    Thanks

  • Mike Chambers 635 posts 1252 karma points c-trib
    Apr 23, 2012 @ 15:26
    Mike Chambers
    0

    you could separate out into separate umbraco tabs, as a quick tidy up...

    Other than that I think you may need to inject jquery into the "umbraco\editContent.aspx", if you don't want to fork the umbracoCMS source.

  • cchehn 28 posts 69 karma points
    Mar 19, 2013 @ 19:43
    cchehn
    0

    I was having the same problem so I decided that I would like to be able to do 2 things:

    1) Collapse/Expand all rich text editor fields

    2) Collapse/Expand a single rich text editor field

    This is rough and not 100% tested for side effects but it seems to be working without causing any problems on 4.11. You will need to make it look pretty on your own.

    So... on the umbraco\editContent.aspx page as, Mike mentioned, you can use the following in jQuery(document).ready( function(){

    var expAll = jQuery('<a></a>');
    expAll.text('Expand/Collapse Rich Text Editors')
          .on('click',function(){
              jQuery(this).parent()
                          .find('.propertyItemContent textarea')
                          .each( function(index, elm){ jQuery(elm).parent().toggle();} );
              })
          .prependTo('.tabpagescrollinglayer');
    jQuery('.propertypane .propertyItemContent textarea').parent().siblings().css('cursor','pointer')
    .on('click',function(){
    jQuery(this).siblings('.propertyItemContent').toggle()
    });

    Hope that helps.

Please Sign in or register to post replies

Write your reply to:

Draft