" ... practice makes perfect "      - stellentpmp aka Andrew
stellentpmp.blogspot.comContent Server

Friday, May 13, 2011

Collapse empty/blank FCKEditor elements

By default, a contribution region has all its elements expanded when it loads. Depending on the number of elements you have, this can take up valuable screen real estate or even cause excessive scrolling. It can be particularly frustrating if an element is rarely used and takes up half the screen, such as a dynamiclist element that returns zero results.

If you use FCKEditor, however, you're in luck. Simply download and enable my CollapseFCKElements component (found on my Docs & Files page), and all empty/blank and optional elements are automatically collapsed upon load!

Ideally, I would like to have component configuration variables that allow you to control when an element becomes collapsed (ie. CollapseTextElement=true). However, I'm not sure how to pass them to or read them from the javascript files. Any suggestions (or requests), please leave a comment or email me.

No comments:

Post a Comment