Re: Edit Menu in 2.1
Andreas Hartmann <[email protected]>
| Newsgroups | gmane.comp.cms.lenya.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Rainer, Am 17.10.10 19:04, schrieb Rainer Schöpf: > At the moment, only BXE and OneForm appear in the Edit Menu (by > default). This is configured in, e.g. > > src/modules/xhtml/config/menu.xml > > I'd like to see all installed editors included here. the major difficulty I see here is that each editor is only capable of editing documents of particular resource types. So we end up with a matrix (editor x resource type => true|false). > > A number of possibilities: > > 1. Detect installed editors at runtime and construct menu accordingly. > > Plus: easiest way for users > Minus: might not be easy to implement > > 2. Detect installed editors at build time and construct menu accordingly. > > Plus: relatively easy to implement I'm afraid it is not trivial to implement this (see above). It is probably more likely that the user adds custom resource types than custom editors, so I think it makes the most sense to put the edit menu items in the resource type menus to provide a maximum of flexibility. WDYT? -- Andreas > Minus: difficult to change editors later > > 3. Put all possible editors in menu, but disable the menu entry for editors > that are not installed. > > Plus: relatively easy to implement (?) > Minus: might confuse users > > > What do you think? > > Rainer -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: +41 (0) 43 818 57 01