Friday, September 14, 2012

WCM7 Inline Editing - WCM7 Authoring Tool examples

Create a WCM Authoring Tool Component. In the "Edit" box enter one of the following:

[Placeholder tag="titlelink"] 
Note: This creates an inline editing link with the display title of the content as text.

<a href="[Placeholder tag="href"]" >Edit content</a>
Note: This creates an inline editing link with the text: "Edit content".

<a href="[Placeholder tag="href"]">[Property context="current" type="content" format="DATE_TIME_LONG" field="lastmodifieddate"]</a>
Note: This creates an inline editing link with the last modified date as the text.

Saturday, August 18, 2012

PageBuilder2 theme and Dojo folders - WP7

Dojo folders:

PageBuilder2 Folder:

WebDav folder for FS-TYPE1:

Wednesday, June 10, 2009

How to get WCM/WP User Info in WCM

Create a JSP component with the following code:

<%@page import="java.util.*,*,*,*,
java.text.*, javax.servlet.http.*"%>

Principal userPrincipal = (Principal) request.getSession().getAttribute("wcm_session_user"); pumauser = ( userPrincipal;
String givenName = (String) pumauser.getGivenName();
String familyName = (String) pumauser.getFamilyName();
if (givenName == null) givenName = "";
if (familyName == null) familyName = "";
out.print(givenName + " " + familyName);


Tuesday, July 15, 2008

How to enable and disable versioning on WCM 6

Search for "versioningStrategy". You can set the properties to always (enable) or never (disable)

# enable version control for the following types.
# options are always | never
versioningStrategy.AuthoringTemplate = always
versioningStrategy.Component = always
versioningStrategy.Content = always
versioningStrategy.PresentationTemplate = always
versioningStrategy.Site = always
versioningStrategy.Taxonomy = always
versioningStrategy.Workflow = always

Thanks Max Bareither for the tip!