Topic
  • 1 reply
  • Latest Post - ‏2011-09-29T15:36:10Z by step.laertz
step.laertz
step.laertz
2 Posts

Pinned topic Resolve markup issues in out of the box web content templates in Beta 2

‏2011-09-29T15:19:45Z |
Some of you might have noticed issues with the markup of the out of the box web content templates provided with the beta 2 image.
To resolve these issues please follow these steps:
1. Make the "Web Content Templates" library visible in the Web Content Authoring Portlet
  • Navigate to the Authoring Portlet (Applications > Content > Web Content Management > Library Explorer)
  • Open the section "Preferences" on the right side
  • Select "Edit Shared Settings"
  • Add the library "Web Content Templates" to the list of available libraries
  • Store the preferences with "OK"

2. Change "Article" presentation template
  • Navigate to the presentation template "Articles" inside the "Web Content Templates" library
  • Edit the presentation template and replace the markup with the following and save the template.

<div class=
"lotusui"> <h2 style=
"display:block;"> <div> <div class=
"lotusLeft"> [Property context=
"current" type=
"content" field=
"title"] </div> <div class=
"lotusRight ibmPortalPortletIcons"> [Component name=
"web+content+templates/edit delete"] </div> </div> </h2> <div class=
"lotusClear"></div> <div class=
"lotusMeta">[Property context=
"current" type=
"content" awareness=
"true" field=
"creator"] - [Property context=
"current" type=
"content" format=
"relative" field=
"lastmodifieddate"]   <div> <div class=
"lotusLeft"> [Plugin:tags] </div> <div class=
"ibmPortalPortletIcons lotusRight"> [Plugin:ratings] </div> </div> </div> <div class=
"lotusClear" style=
"white-space: normal;"> [Element context=
"current" type=
"content" key=
"body"] </div> </div> [Plugin:AnalyticsData property=
"title"] [Plugin:AnalyticsData property=
"path"] [Plugin:AnalyticsData property=
"lastmodified"] [Plugin:AnalyticsData property=
"authors"]


3. Change "List of Items" presentation template
  • Navigate to the presentation template "List of Items" inside the "Web Content Templates" library
  • Edit the presentation template and replace the markup with the following and save the template.

<div class=
"lotusui"> <h2 style=
"display:block;">[Property context=
"current" type=
"content" field=
"title"] <span class=
"ibmPortalPortletIcons lotusRight"> [Component id=
"2a2ad6c9-5244-4880-a1a6-1ef11424d200:NC93ZWIgY29udGVudCB0ZW1wbGF0ZXMvZWRpdA==" name=
"web content templates/edit"] </span> </h2> [Property context=
"current" type=
"content" field=
"description"] <p> [Element context=
"current" type=
"content" key=
"menu"] <p> <span>[Component id=
"6f6aa28b-d3ad-4440-af40-1a0210f301d8:NC93ZWIgY29udGVudCB0ZW1wbGF0ZXMvY3JlYXRlIGFydGljbGU=" name=
"web content templates/create article"]</span> </div>


4. Change "Delete (Edit Delete)" authoring tools component
  • Navigate to the component "Delete (Edit Delete)" inside the "Web Content Templates" library
  • Edit the component and add the following to the footer design. Save the component afterwards.

</div>
Updated on 2011-09-29T15:36:10Z at 2011-09-29T15:36:10Z by step.laertz
  • step.laertz
    step.laertz
    2 Posts

    Re: Resolve markup issues in out of the box web content templates in Beta 2

    ‏2011-09-29T15:36:10Z  
    Just noticed that the markup for step 3 contains the IDs. So correct should be:

    3. Change "List of Items" presentation template
    • Navigate to the presentation template "List of Items" inside the "Web Content Templates" library
    • Edit the presentation template and replace the markup with the following and save the template.

    
    <div class=
    "lotusui"> <h2 style=
    "display:block;">[Property context=
    "current" type=
    "content" field=
    "title"] <span class=
    "ibmPortalPortletIcons lotusRight"> [Component name=
    "web content templates/edit"] </span> </h2> [Property context=
    "current" type=
    "content" field=
    "description"] <p> [Element context=
    "current" type=
    "content" key=
    "menu"] <p> <span>[Component name=
    "web content templates/create article"]</span> </div>