Skip to main content link. Accesskey S
  • Translate Page ▼
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • Lotus Quickr wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 2010 Quickr 8.5 Customer Day
  • 8.0
  • 8.1
  • 8.1.1
  • 8.2
  • 8.5
  • administering
  • administrators
  • API
  • atom
  • authentication
  • backup_schedule_service
  • best practices
  • best_practices
  • blogs
  • calendar integration
  • chat
  • clustering
  • CMIS
  • configuring
  • Connections
  • Connectors
  • Content Integrator
  • customization
  • customizing
  • customizing_quickr
  • demo
  • deploying
  • deployment
  • Development
  • Document
  • document_libraries
  • Domino
  • draft
  • ECM
  • education
  • email
  • enablement
  • events
  • Feed
  • FileNet
  • getting started
  • Help
  • installation
  • installing
  • integrating
  • introducing
  • key file
  • ldap
  • Library
  • lotusphere
  • LTPA
  • Masterclass
  • Media Gallery
  • media_Domino
  • media_Portal
  • migrating
  • migration
  • mml
  • nodes
  • notes
  • P8
  • performance
  • Places
  • Portal
  • profiles
  • proxy
  • qpconfig.xml
  • QRD85 Enablement
  • QuickPlace
  • Quickr
  • Quickr 8.5
  • Quickr Domino 8.2 Masterclass
  • Quickr Domino 8.5
  • Quickr Domino 8.5.1
  • Quickr Domino8.5
  • Quickr J2EE 8.1.1 Masterclass
  • Quickr_customization
  • Quickr_Domino_8.5
  • quickrD
  • QuickrJ
  • REST
  • Sametime
  • security
  • SiteMinder
  • SPNEGO
  • SSL
  • SSO
  • TAM
  • templates
  • test_infrastructure
  • theme
  • themes
  • tips
  • troubleshooting
  • upgrading
  • video
  • web_seminar
  • webservices
  • xml_node
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Content management > Customizing the WCM Authoring Templates for Quickr
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Customizing the WCM Authoring Templates for Quickr 

expanded Abstract
collapsed Abstract
In Lotus Web Content Management (WCM) one of the key requirements is to offer a simple and easy to use authoring interface which can provide better user experience which also helps to save time and effort. This article talks about a few ways to customize the Authoring Template (AT) to provide better comfort and guidance to content authors.
Authors:
Vinodh R Mahendrakumar - vinmahen@in.ibm.com
Josephine Joyce - jojustin@in.ibm.com


Customizing the WCM Authoring Templates for Quickr

Introduction:

In Lotus Web Content Management (WCM) one of the key requirements is to offer a simple and easy to use authoring interface which can provide better user experience which also helps to save time and effort.

This article talks about a few ways to customize the Authoring Template (AT) to provide better comfort and guidance to content authors.

Hiding Sections:

WCM provides a feature to customize the look and feel of a particular field. This will be exploited to hide the fields. The steps for hiding certain sections in a WCM Authoring Template are discussed.

As depicted in Figure 1, WCM provides out-of-the-box functionality to hide entire sections.


Figure 1: Hiding Sections

Certain elements within a section can also be hidden as shown in Figure 2.



Figure 2: Hiding Fields

The section below describes the steps to hide the following fields within the Workflow Section. As seen in Figure 1, there is no out-of-the-box feature available to hide the following fields:
  •  Document Status
  •  Select Workflow Button
  •  Next Workflow Stage
  •  Joint Approval
  •  ACTIONS

Using the Manage Elements button, add an element of type Text or Short Text to the Authoring Template, name it as Text.


Figure 3: Manage Elements

Now go to the Default content settings in the Authoring Template, expand Content section, and click on Text Properties Image to open up the form as shown below.

The path to the custom JSP which hides the fields mentioned above is specified here.


Figure 4: Default Content Settings

The sample JSP can be found in the attachments section.

Place the JSP inside:
    quickr_server_root/installedApps/WCM_Authoring_UI_PA_xxxxxxx.ear/PA_xxxxxxx.war
where xxxxxxx is unique to your installation

Example :
    C:\IBM\Quickr\PortalServer\installedApps\WCM_Authoring_UI_12lmfk40.ear\12lmfk40.war\jsp\html

The JSP page may also need to be stored in the client war directory of the teamspace portlet, example:
    C:\IBM\Quickr\PortalServer\installedApps\WCM_Teamspace_Portlet_12lmls68.ear\12lmls68.war

Before including the JSP, when a new content is created using this AT, it would look like the following, assuming that none of the fields inside workflow section were hidden:


Figure 5: Preview of the content before including the JSPs

Once the JSP is included in the content items, it looks as shown below:



Figure 6: Preview of the content after including the JSPs



Auto-populating Information in Content Entry Form

This section talks about populating user information using PUMA ( Management Architecture) SPI.

A better end user experience could be provided if certain fields in the content entry form, such as, Name or email, can be pre-populated based on the current authenticated user.
PUMA SPI allows getting details about the current logged-in user which can be populated into appropriate fields as per the requirement. The steps describe how to populate Name and Email fields automatically based on the current user.

Using the Manage Elements button add elements of type Text or Short Text to the Authoring Template. These will hold the name and email of the content author.


Figure 7: Manage Elements

Now go to Default content settings in the Authoring Template, expand Content section and click on Name Properties Image to open up the form as shown below.

The path to the custom JSP which populates this field is specified here.


Figure 8: Default Content Settings

Place the JSP inside
    quickr_server_root/installedApps/WCM_Authoring_UI_PA_xxxxxxx.ear/PA_xxxxxxx.war
    where xxxxxxx is unique to your installation.
Example :
    C:\IBM\Quickr\PortalServer\installedApps\WCM_Authoring_UI_12lmfk40.ear\12lmfk40.war\jsp\html
    The JSP page may also need to be stored in the client war directory of the teamspace portlet, example:
      C:\IBM\Quickr\PortalServer\installedApps\WCM_Teamspace_Portlet_12lmls68.ear\12lmls68.war

    Repeat the above procedure for the Email field.

    The code snippet below (Listing 2) shows how the field is displayed to the end user. It also helps registering a javascript function to be executed during submit action. Listing 3 displays the JavaScript function - populateName - which copies the value onto a hidden field storing the user name.

    Listing 1

    Name
    ">
    Listing 2
    CustomItemBean customItem =
    (CustomItemBean) request.getAttribute("CustomItemBean");
    customItem.setSubmitFunctionName("populateName");

    In Listing 3, the name of the current logged in user is obtained from PUMA SPI.

    Listing 3
    Map map=null;
    if(home!=null){

    PumaProfile pp = home.getProfile(request);

    if(pp!=null){
    List attribNames = new ArrayList();
    attribNames.add("cn");
    map = pp.getAttributes(pp.getCurrentUser(),attribNames);




    Figure 9: Preview of the content before including the JSPs


    Content which previously appeared like the one shown above, looks like the following once the custom JSP is used.


    Figure 10: Preview of the content after including the JSPs.




    Attachments: WCM_AT_Customization_Quickr.zip
    This attachment can be downloaded from Lotus Greenhouse. If you do not have a Lotus Greenhouse ID, you may receive one immediately via the registration page.

    expanded Article information
    collapsed Article information
    Category:
    Content management
    Tags:
    WCM UI authoring customization

    This Version: Version 1 April 26, 2010 1:26:40 PM by John Munnell  IBMer
       
    expanded Attachments (0)
    collapsed Attachments (0)

     


    expanded Versions (1)
    collapsed Versions (1)
    expanded Version Comparison
    collapsed Version Comparison
         
    Version Date Changed by               Summary of changes
    This version (1) Apr 26, 2010 1:26:40 PM John Munnell  
    expanded Comments (0)
    collapsed Comments (0)
    Copy and paste this wiki markup to link to this article from another article in this wiki.
    Tip: When linking to articles use the original title, not the edited title. The alias for the link can be the edited title.
    Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
    • All Lotus and WebSphere Portal wikis
    • IBM developerWorks
    • IBM Software support
    • Lotus Technical Information and Education Team Blog
    • Lotus Tech Info on Twitter
    • Lotus Tech Info on Facebook
    • Lotus product forums
    • IBM Collaboration Solutions UX Blog
    • IBM Collaboration Solutions
    • Recently added feedRecently added
    • Recently edited feedRecently edited
    • Recently added comments feedRecently Added Comments
    • Wiki Help
    • Forgot user name/password
    • Wiki design feedback
    • Content feedback
    • About the wiki
    • About IBM
    • Privacy
    • Contact IBM
    • IBM Terms of use
    • Wiki terms of use
    Return to English
    Arabic
    Chinese Simplified
    Chinese Traditional
    French
    German
    Italian
    Japanese
    Korean
    Portuguese
    Russian
    Spanish