zikula-modules / Content

Wizz bang content management for the Zikula Application Framework
https://ziku.la
25 stars 8 forks source link

Add content item for a collapsable HTML part #110

Open espaan opened 11 years ago

espaan commented 11 years ago

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.

Guite commented 6 years ago

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.

rallek commented 6 years ago

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.

Guite commented 6 years ago

a headline should be possible to add

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

rallek commented 6 years ago

That is true! I did not think about translation.

rallek commented 6 years ago

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.