Hi Lee,
Thank you so much for your reply and explanation!!! It's what I asked
for. How to use it (as I am still quite newbie in it).
Wish you nice day,
Milan
lee carroll wrote:
I found this: http://article.gmane.org/gmane.comp.cms.lenya.user/7467
That post was from me, although to be fair I can't remember doing the
xsp page for it!
What is going wrong with your implementation?
I think you need to do the following
copy the file workflowStatus.xsp to the directory
config/workflow
copy the file workflowStatus.xsl to the directory
config/workflow
add in the following code to the usecase.xmap file
<!-- workflow status of a publication -->
<map:match pattern="workflowStatus" type="usecase">
<map:generate type="serverpages" src="config/workflow/workflowStatus.xsp"/>
<map:transform src="config/workflow/workflowStatus.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="listState" value="all"/>
<map:parameter name="listLock" value="all"/>
</map:transform>
<map:call resource="style-cms-page"/>
</map:match>
<map:match pattern="listModified" type="usecase">
<map:generate type="serverpages" src="config/workflow/workflowStatus.xsp"/>
<map:transform src="config/workflow/workflowStatus.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="listState" value="authoring"/>
<map:parameter name="listLock" value="all"/>
</map:transform>
<map:call resource="style-cms-page"/>
</map:match>
<map:match pattern="listAwaitingApproval" type="usecase">
<map:generate type="serverpages" src="config/workflow/workflowStatus.xsp"/>
<map:transform src="config/workflow/workflowStatus.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="listState" value="review"/>
<map:parameter name="listLock" value="all"/>
</map:transform>
<map:call resource="style-cms-page"/>
</map:match>
<map:match pattern="listLocks" type="usecase">
<map:generate type="serverpages" src="config/workflow/workflowStatus.xsp"/>
<map:transform src="config/workflow/workflowStatus.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="listState" value="all"/>
<map:parameter name="listLock" value="Locked"/>
</map:transform>
<map:call resource="style-cms-page"/>
</map:match>
amend the workflow menu option in the menu.config file to look like
<menu i18n:attr="name" name="Workflow" label="Help">
<xsp:logic>
{
if (isDocument && Publication.AUTHORING_AREA.equals(area)) {
<block>
<item uc:usecase="workflowStatus" href="?">
<i18n:text>List all Publication Files Workflow Status</i18n:text>
</item>
<item uc:usecase="listModified" href="?">
<i18n:text>List Modified Files</i18n:text>
</item>
<item uc:usecase="listAwaitingApproval" href="?">
<i18n:text>List Files Awaiting Approval</i18n:text>
</item>
<item uc:usecase="listLocks" href="?">
<i18n:text>List Locks</i18n:text>
</item>
and that should be you. I think this would have been written for
1.2.2. should be okay for 1.2.x I guess.
Note the comment about performace in the original post is still valid.
For a large number of files (1000's) this would be slow.
cheers lee c
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]