You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2005/08/26 10:34:11 UTC
svn commit: r240191 -
/lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml
Author: andreas
Date: Fri Aug 26 01:34:05 2005
New Revision: 240191
URL: http://svn.apache.org/viewcvs?rev=240191&view=rev
Log:
Added note about displaying usecases in tabs
Modified:
lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml
Modified: lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml
URL: http://svn.apache.org/viewcvs/lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml?rev=240191&r1=240190&r2=240191&view=diff
==============================================================================
--- lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml (original)
+++ lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml Fri Aug 26 01:34:05 2005
@@ -309,6 +309,37 @@
<p>
Take care of adding the hidden <code>lenya.usecase</code> and <code>lenya.continuation</code> fields as shown above.
</p>
+
+ <section>
+ <title>Displaying Usecases in Tabs</title>
+ <p>
+ It is possible to use a tab-based layout to assemble a set of usecases.
+ The admin and site areas are displayed using this style.
+ To add a tab-based usecase to a tab set, two steps are required:
+ </p>
+
+ <ol>
+ <li>
+ Add the tab to the GUI manager configuration:
+<source xml:space="preserve"><![CDATA[<xconf xpath="/cocoon/gui-manager/tab-group[@name = 'admin']"
+ unless="/cocoon/gui-manager/tab-group[@name = 'admin']/tab[@name = 'search']">
+
+ <tab name="search" label="Search" usecase="admin.search"/>
+
+</xconf>]]></source>
+ </li>
+ <li>
+ Add the tab configuration to the usecase view declaration:
+<source xml:space="preserve"><![CDATA[<component-instance name="admin.search" logger="lenya.admin" class="org.apache.lenya.cms.usecase.DummyUsecase">
+ <view template="usecases/admin/search.jx" menu="true">
+ <tab group="admin" name="search"/>
+ </view>
+ <exit usecase="admin.search"/>
+</component-instance>]]></source>
+ </li>
+ </ol>
+ </section>
+
</section>
</section>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org