Announcement

Symphony's issue tracker has been moved to Github.

Issues are displayed here for reference only and cannot be created or edited.

Browse

Closed#630: Remember "Collapse all" when saving a Section

It would be nice if the fields would be still collapsed after saving a Section.

This could be implemented alongside the auto-collapse fields behaviour.

We could think about making use of localStorage to remember the interface state.

Yep, localStorage (or cookie fallback) would make sense to do this — it's a nice idea.

I really like the idea of using localStorage!

Who fancies this :-P

Too busy for now, sorry :/

I can do it this or next weekend.

Should only the "Collapse all" and "Expand all" state be remembered or the state of each field? If it's the former, there is the question how many fields need to be expanded/collapsed to trigger the corresponding status. Half of them?

The most intuitive solution in my eyes would be to remember the status per field.

I agree

Me too :-)

Any news?

Will start working on it tomorrow.

How'd you go with this mate?

I have a first rough version working, but it needs a bit more love. I probably won't find the time until this weekend.

It'll work not only in the section editor but in every collapsable duplicator.

It still needs a bit more testing, but you can have a look here https://github.com/klaftertief/symphony-2/tree/duplicator-states. It only uses localStorage, no Cookie fallback.

I noticed this as soon I started using it, so I now use the BackendJavascriptr extension and add

(function($){ $(function(){ $('#fields-duplicator .controls > .collapser:first').trigger('click.duplicator'); }); })(jQuery);

to the file. It isn't a direct solution as it doesn't remember as such, it just always collapses. Works a treat for me so thought I'd throw it out there...

Pull request sent <https://github.com/symphonycms/symphony-2/pull/178 >.

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details