<![CDATA[ No Accordion in Revolution Sidebar... - My Forums]]> https://forums.modx.com/thread/?thread=28855 <![CDATA[Re: No Accordion in Revolution Sidebar...]]> https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar?page=2#dis-post-155221 Quote from: BobRay at Aug 17, 2009, 09:06 PM
I suspect that would be the case for 90% of all saves.

I agree. The part that annoys me is that the tree gets redrawn, when it doesn’t need to.
In the cases mentioned above, where the tree should be updated, it’s not really a big deal when the tree is redrawn.
Then it’ll make sense.

But like you said: if it’s only a content change, there’s no need to redraw the tree, because nothing in the tree actually changes.]]>
paz Aug 18, 2009, 02:14 AM https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar?page=2#dis-post-155221
<![CDATA[Re: No Accordion in Revolution Sidebar...]]> https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar?page=2#dis-post-155220 Quote from: BobRay at Aug 17, 2009, 09:06 PM

Do you have dirty flags on individual fields? If so, it might be possible to skip the redraw if the only change is to the content field. I suspect that would be the case for 90% of all saves.

Yeah, we do; that might get complex with RTEs. I look into it.]]>
splittingred Aug 17, 2009, 04:16 PM https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar?page=2#dis-post-155220
<![CDATA[Re: No Accordion in Revolution Sidebar...]]> https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar?page=2#dis-post-155219
Do you have dirty flags on individual fields? If so, it might be possible to skip the redraw if the only change is to the content field.

I suspect that would be the case for 90% of all saves.]]>
BobRay Aug 17, 2009, 04:06 PM https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar?page=2#dis-post-155219
<![CDATA[Re: No Accordion in Revolution Sidebar...]]> https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar#dis-post-155218 Quote from: BobRay at Aug 17, 2009, 08:30 PM

Quote from: splittingred at Aug 17, 2009, 01:11 PM

Well, what happens if you save the Doc and change the parent? Or title?

Fair enough, but why redraw the whole tree if the parent hasn’t changed and why redraw it at all if neither the parent nor the title has changed?

Well, here are the cases where it would need to change:
- Parent change
- Description change
- Title change
- Published state change
- Hide Menu state change
- Container change
- Menu index change
- Access Permission change
- Class Key change


That’s a lot of different types of changes to make exceptions for. Plus, it doesn’t redraw the whole tree (or at least, it shouldn’t) - it just redraws its parent. So, one node up.]]>
splittingred Aug 17, 2009, 03:36 PM https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar#dis-post-155218
<![CDATA[Re: No Accordion in Revolution Sidebar...]]> https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar#dis-post-155217 Quote from: splittingred at Aug 17, 2009, 01:11 PM

Quote from: BobRay at Aug 17, 2009, 07:49 AM

I would *love* the current version if it didn’t keep slowly redrawing itself especially when I’m just saving an existing item so the redrawn tree will look exactly like the current one -- I actually shout at it).
Well, what happens if you save the Doc and change the parent? Or title?

Fair enough, but why redraw the whole tree if the parent hasn’t changed and why redraw it at all if neither the parent nor the title has changed?]]>
BobRay Aug 17, 2009, 03:30 PM https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar#dis-post-155217
<![CDATA[Re: No Accordion in Revolution Sidebar...]]> https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar#dis-post-155216 Quote from: BobRay at Aug 17, 2009, 07:49 AM

I would *love* the current version if it didn’t keep slowly redrawing itself especially when I’m just saving an existing item so the redrawn tree will look exactly like the current one -- I actually shout at it).
Well, what happens if you save the Doc and change the parent? Or title?

I think the ultimate option, then, is to provide an icon that locks a section (or the whole tree) open -- maybe a little doorstop. wink
Interesting idea; but I don’t think ExtJS’s accordion panels support this. We’d have to do one or the other, I think.

Second choice, a system setting with the current accordion as the default.
That would be quite a bit of work; I’d much rather just do one or the other.]]>
splittingred Aug 17, 2009, 08:11 AM https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar#dis-post-155216
<![CDATA[Re: No Accordion in Revolution Sidebar...]]> https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar#dis-post-155215
I would *love* the current version if it didn’t keep slowly redrawing itself especially when I’m just saving an existing item so the redrawn tree will look exactly like the current one -- I actually shout at it).

On keeping all parts expanded, I think the key is that people will want to do that when there are few things in the tree or all are categorized but not when the tree gets really full.

I think the ultimate option, then, is to provide an icon that locks a section (or the whole tree) open -- maybe a little doorstop. wink

Second choice, a system setting with the current accordion as the default.]]>
BobRay Aug 17, 2009, 02:49 AM https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar#dis-post-155215
<![CDATA[Re: No Accordion in Revolution Sidebar...]]> https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar#dis-post-155214 If it’s like this:
- A Page (doc)
- Breadcr (snip)
- CenteredPage (tmpl)
- Document2 (doc)
- ExampleCh (chunk)
- FirstTv (tv)
.. than it’ll be hard to find something.

But if it’s done like this:
- A Page (doc)
- Document2 (doc)

- ExampleCh (chunk)

- Breadcr (snip)

- CenteredPage (temp)

- FirstTv (tv)

... it would keep things organized, while it an still show everything that belongs to one Category.


Note: This is how I’d do it, if it would be done like this. Although I don’t think it’s the best thing to do.]]>
paz Aug 17, 2009, 02:32 AM https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar#dis-post-155214
<![CDATA[Re: No Accordion in Revolution Sidebar...]]> https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar#dis-post-155213
This makes me think, too, about being able to click on a category (somewhere on the side) and see all the objects that belong in that category (regardless of object type)... just a thought - anyone else care to comment?]]>
debussy Aug 13, 2009, 05:30 PM https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar#dis-post-155213
<![CDATA[Re: No Accordion in Revolution Sidebar...]]> https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar#dis-post-155212
I have no idea of what the best solution would be, but I agree that remembering the open state of views and using scrollbars would already be an improvement.]]>
LaurentGom Aug 13, 2009, 08:38 AM https://forums.modx.com/thread/28855/no-accordion-in-revolution-sidebar#dis-post-155212