Ever had a call from a RedDot CMS editor like this:
"Hi there, I have published my page three times now but the changes don’t show up on the website!
…OH… hold on..
… uhm ..
.. I haven’t released the page, whoops.. bye.. <click – hang up>"
That’s what I call a usability issue within RedDot CMS.
Your author clearly should see at any given time what the page status is.
Since version 7.5 there is the RedDot CMS API also known as RenderTags.
It is a .NET based notation to address the property map of your content pages.
A simple RedDot tutorial snippet in PHP to display the page status:
<?php $state = ''; $tmp = trim(strtolower('<%!! Context:CurrentPage.State !!%>')); if ($tmp == 'checkedout') $state = 'Status: checked out'; if ($tmp == 'waitingforrelease') $state = 'Status: waiting for release'; echo $state; ?>
The important line to access the RedDot RenderTags API for the page status is this one:
<%!! Context:CurrentPage.State !!%>
Place it somewhere in your CMS page to display the current status of the page or ablock of content within your CMS page. Make sure you use the IoRangeRedDotModeOnly to ensure this information doesn’t get published.
<!IoRangeRedDotMode> <%!! Context:CurrentPage.State !!%> <!/IoRangeRedDotMode>
go to Michael Phillipp from the Karlsruhe Institute of Technology, Germany
No related posts.