[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lenya-user
Subject:    Re: List of articles waiting for submission and publish
From:       Michael Wechner <michael.wechner () wyona ! com>
Date:       2007-02-15 14:18:08
Message-ID: 45D46BA0.2010705 () wyona ! com
[Download RAW message or body]

Milan Jezdik wrote:

> 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).

you might want to provide a patch ;-)

Cheers

Michael

>
> 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 &amp;&amp; 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: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org
+41 44 272 91 61


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic