cancel
Showing results for 
Search instead for 
Did you mean: 

how to display link property : description

Former Member
0 Kudos

hi all

Im trying to display a link's description property in an iview.

How do i go about doing this?

Message was edited by: rinx

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rinx,

You can create a Layout set and in your collection renderer add the cm:description field in Displayed Properties.

After that in your iview use this layout.

Patricio.

Former Member
0 Kudos

Hi Patricio

Can you explain this by uing code/an example..

Where do I put in LayoutSet in the following code?

From what Ive seen in documentation/weblog, I currently have the following code to retrieve a description property of a link:

IPropertyName propertyname = new PropertyName(IWcmConst.SAP_WCM_NAMESPACE,IWcmConst.PROP_DESCRIPTION);
IProperty property = resource.getProperty(propertyname);
if(property != null){
//description exists
description = property.getValueAsString();
}else{
description = "";
}

Namespace should point to the link, right?

How would I do this?

Say that I have links in folder path : /documents/quicklinks/financelinks

In financelinks contains links to different locations in portal eg. link to "finance standard document"

Link "finance standard document" has a description : "xx"

I want to get this description.

I very much need some urgent help.

Former Member
0 Kudos

Hi Rinx,

I can not understand why you want to do it using code.

Patricio.

Former Member
0 Kudos

Hi Patricio

Thank you for your response, I have managed to solve it