Ozgur Ugras BARAN wrote:
It is strictly dialog related problem, therefore I should have put
some function in controller. The place for a flag like demotionEnabled
maybe in TocBackend, but this doesn't remove the necessity of a
controller function. IMHO, the code is cleaner as it is now.

My question was different, actually. What I am doing now is to prevent
demotion from the dialog. Another option would be not to filter TOC
entries in TOC dialog, therefore, demotion will never be a problem.
The downside of this method is over-crowded TOC dialog.
Will that "crowding" be a problem?
Only seeing the numbered entries looks like a somewhat arbitrary
limitation.  Of course, users then have configurability - they can see
everything by temporarily making everything numbered.

Another idea: Put in a slider so the user can decide how many levels
to see. Default to all, or perhaps to the numbered levels.  The
user can then change to whatever he likes.

Helge Hafting

Reply via email to