Tuesday, June 10, 2014

Hey! Check It Out… or Not? Removing the Checkout Link on the Document Information Page with Profiles

Hey all, 

Below is a fun code trick from William Phelps. Better bookmark this, because it's a good one!

One request that comes up from time to time is a need to remove the checkout link (or 
other functional links) from the document information page.

In the first image in the following screen print, there is a “check out” link. However, the 
desire is to remove the link as shown in the second image.

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

If the result set name that holds the link generation data is known, it’s easy to loop 
over the result set and pick off the entry. Adding “IsPageDebug=1” to the URL of the 
document information page, and looking at the data in the final page binder section is 
an easy way to get this information. 

This article assumes that the reader has a basic working knowledge of how to create 
content profiles in Content Server, and a decent understanding of Idoc Script. 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 

• Clicking on the “Edit” button on the “General” tab next to the rule activation 
section, and then on the “Side Effects” tab, enter the following code in the 
custom code box as shown. 

(In the code below, the Idoc function “setResourceInclude” is leveraged to 
dynamically rewrite existing server code that normally would require a 
component customization.)

 <$loop PageMenusData$>  
  <$if PageMenusData.nodeId like \"checkout\"$>  
  <$exec rsDeleteRow(\"PageMenusData\")$>  

• This same technique could be used on other pages as long as the profile engine 
is invoked as part of the service execution. A good example would be 
selectively removing links on a search results page.

Thanks everyone for taking the time to review this. We hope it saves you the need for a custom component.. or two!


  1. Gone are the days when we used to use Bluetooth and Infrared technology to transfer files. SHAREit is a app that allows users to transfer files at blazing fast speed between two smartphones really easily. ANd it is absolutely free

    as well and really easy to install.
    You can check out more info here SHAREit for iOS

  2. How about you also read this blog post. You will find some good advice about essay writing there. Good luck


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