Hi Thorsten,
Thorsten Scherler schrieb:
I am trying to limit certain usecases to specific resource types to
enhance the user experience and reduce the complexity of my pub.
Back in the days we did that with menu.xsp, however the only module that
contains thus a page is the tinymc module. Further it is not working
there.
For example in my current pub I only want the option "create new xhtml
doc" ONLY when I am on a page with resource type "news". This way I can
control which documents the user can create and how they will be
displayed in the pub.
What is the preferred way to implement such condition in menu?
you can use the "resourceTypes" attribute of the <block> element:
<block areas="authoring" resourceTypes="news">
<item uc:usecase="…">Create XHTML Document</item>
</block>
I guess we need some docs on the menubar for 2.0 …
HTH,
-- Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lenya.apache.org
For additional commands, e-mail: dev-h...@lenya.apache.org