Nice work Morgsy, I've already dropped it in my project :)

Cheers,

G.

On 14 September 2011 10:00, Morgan Ritchings <[email protected]>wrote:

> Hi all.
>
> here's a javascript equivalent using the v10 workflow icons of the php
> version of the page status code that Markus put up on the following
> page
> http://www.reddotcmsblog.com/an-undocumented-rendertag-to-enhance-your-reddot-cms-usability/
> … i’d suggest wrapping this up in a function and placing it directly
> to the right (or even left) of your open reddot tag for any author
> facing templates. Of course keep in mind that the the "state" render
> tag code is undocumented so this could stop functioning after the next
> patch/hotfix.
>
> <script type="text/javascript" language="javascript">
> switch("<%!! Context:CurrentPage.State !!%>")
> {
> case "CheckedOut":
> document.write('<img src="/CMS/WebClient/App_Themes/Standard/Images/
> Icons/icon_tasks_pages_temp_saved.gif" width="16" height="16"
> alt="Content in draft" title="Content in draft" />');
> break;
> case "WaitingForRelease":
> document.write('<img src="/CMS/WebClient/App_Themes/Standard/Images/
> Icons/icon_tasks_pages_in_workflow.gif" width="16" height="16"
> alt="Content in workflow" title="Content in workflow" />');
> break;
> case "Released":
> document.write('<img src="/CMS/WebClient/App_Themes/Standard/Images/
> Icons/icon_tasks_pages_to_release.gif" width="16" height="16"
> alt="Content released" title="Content released" />');
> break;
> }
> </script>
>
>
>  - Morgan
>
> --
> You received this message because you are subscribed to the Google Groups
> "RedDot CMS Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/reddot-cms-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to