Content icon indicating copy to clipboard operation
Content copied to clipboard

Add content item for a collapsable HTML part

Open espaan opened this issue 13 years ago • 5 comments

Sometimes it is very convenient to have a part of a page by default collapsed or at least with the option of collapsing/expading that part.

This could be done via Zikula.UI with the Panels,but might be overkill, easier would be via JQuery (or Prototype).

The default HTML content item could also be extended to be collapsible yes/no and if yes by default open/closed.

espaan avatar Nov 28 '12 12:11 espaan

Maybe something like this would be appropriate: https://getbootstrap.com/docs/3.3/javascript/#collapse-example-accordion

Implementation could be done similar to the TabNavigation content type.

Guite avatar Aug 07 '18 17:08 Guite

Or may be to make section collapsable and show the angle-down or angle-right and a headline to manage the opening or closing action.

In this case we should have another button left of styling classes might be collapsing. In this configuration the collapsing can be activated and a headline should be possible to add.

rallek avatar Sep 05 '18 11:09 rallek

a headline should be possible to add

No, I don't like that, because this would introduce another layer for translations.

Guite avatar Sep 05 '18 11:09 Guite

That is true! I did not think about translation.

rallek avatar Sep 05 '18 12:09 rallek

Maybe something like this would be appropriate: https://getbootstrap.com/docs/3.3/javascript/#collapse-example-accordion

Implementation could be done similar to the TabNavigation content type.

I do not like accordeon because only one item can be opend in a time.

rallek avatar Sep 05 '18 12:09 rallek