Descriptions

Customisation Title Descriptions in Folder View
Purpose of Customisation This customisation allows the user to toggle on or off the desciptions of each Livelink object in any folder.
Author Greg Griffiths
Date of Customisation 12 December 1999
Covers Livelink Livelink 8.1.3 & 8.1.5
Livelink Modules Webnode
Affected Templates \module\webnode\html\browseview.html
Customisation Format HTML
Download Here Download as a ZIP file

This customisation comes in two parts. The first part checks the Query String to see if the HideDesc parameter is set. Depending on the result of this parameter, a line is added to the top of the page that gives the user the option to toggle the view on or off.

Then the second part adds an extra row that contains the description set for that Livelink object underneath the object itself. This results in a page like this :

Screenshot

     ;Dynamic contents = data.contents
     <!-- Changes to support hiding/showing descriptions - start -->
         ;Boolean hideDescriptions = false
         ;if (IsDefined(request.HideDesc) && request.HideDesc == 'on')
             ; hideDescriptions = true
         ;end
         ;if (Str.LocateI(request.QUERY_STRING,'&HideDesc'))
             request.QUERY_STRING = request.QUERY_STRING[:Str.LocateI(request.QUERY_STRING,'&HideDesc')-1]
         ;end
         ;if hideDescriptions
             <A HREF="`request.SCRIPT_NAME + '?' + request.QUERY_STRING + '&HideDesc=off'`">Show Descriptions</A>
         ;else
             <A HREF="`request.SCRIPT_NAME + '?' + request.QUERY_STRING + '&HideDesc=on'`">Hide Descriptions</A>
        ;end
     <!-- Changes to support hiding/showing descriptions - end -->


 
Document Truncated
 
         </TD>
     </TR>
    <!-- Changes to support hiding/showing descriptions - start -->
         ;if (!hideDescriptions && IsDefined(nodeRec.DComment) && Length(nodeRec.DComment) > 0)
             <TR bgcolor="#CCCCCC">
                 <TD></TD>
                 <TD COLSPAN="5">`nodeRec.DComment`</TD>
             </TR>
         ;end
     <!-- Changes to support hiding/showing descriptions - end -->

       ;end
     ;end
   ;;end

Website Designed by Adservio Consulting Valid HTML 4.01 Strict    Valid CSS!    Level A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0