lenya-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: Limit usecases to specific resource types
Date Tue, 21 Jul 2009 11:46:17 GMT
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-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Mime
View raw message