Wednesday, July 30, 2014

Keeping It Current… Showing Only the Latest Revision on the Document Information Page

One request that comes up from time to time is a need to remove all of the non-latest
revisions from the list at the bottom of the document information page in Content
Server. This is useful to restrict the access to older versions of the item without
actually deleting the older items.

Typically, most implementers say that a customization is necessary. However, a
relatively simple profile rule can be created to accomplish the same thing.

This article assumes that the reader has a basic working knowledge of how to create
content profiles in Content Server. For this article, a global rule is being created, but it
could easily be adapted to only fire for specific profiles.


  • Create a global rule with activation conditions of “OnRequest” and “Info” as shown.


  • Clicking on the “Edit” button, and then on the “Side Effects” tab, enter the following code in the custom code box as shown:

<$loopwhile REVISION_HISTORY.#numRows >1$>

<$exec rsSetRow("REVISION_HISTORY",REVISION_HISTORY.#numRows-1)$>
<$exec rsDeleteRow("REVISION_HISTORY")$>
<$endloop$>




  • To adjust the number of revisions shown on the page (for example, showing 5 revisions as opposed to only 1), change the value of 1 in the statement 
    "<$loopwhile REVISION_HISTORY.#numRows >1$>"
    to the appropriate number.
Big thanks to William Phelps for today's post!

-ryan

12 comments:

  1. While we have been burdened with expectations of a successful successor to the LG G6, we have been saying for some time that this new phone will be the one phone which will rule them all.
    LG has already been on a roll and we expect that the G7 will also be up to the mark. Want to know more about it? Check out this website LG G7

    ReplyDelete

  2. If you are in Jaipur and need beautiful Escort Service in Jaipur or white skin Escort Service in Jaipur then you can simply book call girls in Jaipur from one of the best escort agency named Escort Service in Jaipur. It is No.1 premier escort agency and provide both incall or outcall facility to clients.Please click on the following link to check the official websites Escort Service in Jaipur

    ReplyDelete
  3. Chandigarh escorts service offering high-class model Call Girls in Chandigarh available 24/7 hours to make your sexual demand complete.


    Chandigarh Escorts
    Mohali Escorts
    Zirakpur Escorts
    Panchkula Escorts
    Call Girls in Chandigarh

    ReplyDelete
  4. Good resource...

    Zirakpur escorts Point of fact, even you can either pick any pleasing or you can call our female friend to your home and everything relies upon your inclination.
    Follow us:_

    Zirakpur escorts
    Escorts in zirakpur
    Call girls in Zirakpur
    Zirakpur call girls

    ReplyDelete
  5. This is Really Amazing Article to read. So I am Sharing my topics We know very well how to treat our clients when meeting them first time and we take care of them very gently. You will really impress by seeing how they are helping you to get the right file and choose your beautiful, sexy and hot girl. They will approach like a professional escort model and will show you what we have got.


    For More Information Visit:
    Chandigarh Escorts

    Call Girls In Chandigarh

    VIP Chandigarh Escorts

    Chandigarh Escorts Services

    ReplyDelete
  6. This is Really Amazing Article to read Bathinda escorts from Bathinda, and from April 2015 I am an independent call girl, because Bathinda is well known. I am helping you to warm up to think of being warm with a female escort Bathinda with all the extra elements of love making the king and fun sessions.

    For More Information Visit:
    Call Girls In Bathinda
    Bathinda Escorts
    VIP Bathinda Escorts
    Bathinda Escorts Services

    ReplyDelete