Quantcast
Channel: Unofficial RedDot CMS blog
Viewing all articles
Browse latest Browse all 12

How to show CMS authors the page status

$
0
0

How often do you get called by an OpenText CMS author who’s complaining:

They: My pages won’t publish! The system is broken
You: Did you release your page?
They: Oh, wait, let me check. Uhm.. Nevermind, bye..

Just use the snippet below to include the status of pages inside the CMS pages and/or content blocks. It shows the CMS user straight away if the page has been released or is waiting for release and saves hours of phone calls.
Also: This post is re-using the code from a previous post, which you can find here.

<div class="reddot">
  <p class="right"><strong>Block/Page status: </strong>
    <reddot:cms>
      <if>
        <query valuea="Context:CurrentPage.State.ToString().ToLower().Trim()" operator="==" valueb="String:released">
	  <htmltext><span class="status Released">Released</span></htmltext>
	</query>
      </if>
      <if>
        <query valuea="Context:CurrentPage.State.ToString().ToLower().Trim()" operator="==" valueb="String:checkedout">
          <htmltext><span class="status CheckedOut">Checked Out</span></htmltext>
        </query>
      </if>
      <if>
        <query valuea="Context:CurrentPage.State.ToString().ToLower().Trim()" operator="==" valueb="String:waitingforrelease">
        <htmltext><span class="status WaitingForRelease">Waiting for Release</span></htmltext>
      </query>
    </if>
  </reddot:cms>
</p>
</div>

If you look closely you will see in the code above that I’ve added a class to each SPAN tag. If you use this method you can style the element and add colors or icons to show the status to your users.
Here’s a screenshot of a project where a co-worker (Hi, Angel) and I have used this

Showing the content block status to OpenText CMS authors

Showing the content block status to OpenText CMS authors, BOOM!

More? Check our the RedDot CMS tricks section for more.

Share and Enjoy: Print email Twitter Digg Reddit StumbleUpon Google Bookmarks del.icio.us MisterWong Facebook LinkedIn



Viewing all articles
Browse latest Browse all 12

Trending Articles