cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Data Type instead of Size in 'Content items&

alexeyg
Champ in-the-making
Champ in-the-making
This is a followup to an issue posted earlier, where a user attempted to add a field to display (http://forums.alfresco.com/viewtopic.php?t=2665&highlight=)

I am attempting to display the <title> of content type in the regular Alfresco view instead of Description.

I am editing browse.jsp,
<%– Details - Content –%> -> <%– Content list –%> section.

The Description element is defined around line 403:

<a:column id="col13" style="text-align:left">
<f:facet name="header">
<a:sortLink id="col13-sort" label="#{msg.description}" value="description" styleClass="header"/>
</f:facet>
<hSmiley SurprisedutputText id="col13-txt" value="#{r.description}" />
</a:column>

I tried modifying value="#{r.description}" of the:
<hSmiley SurprisedutputText id="col13-txt" value="#{r.description}" /> tag.

It successfully prints things like name, title, size, etc. for r.name, r.title, r.size - but "r.type" does not produce the type name.  Is there a way to display it there (like it does in the Create Content -> Type dropdown?

thank you.
2 REPLIES 2

alexeyg
Champ in-the-making
Champ in-the-making
I was able to add a property resolver for BrowseBean according to http://forums.alfresco.com/viewtopic.php?t=1347

However, I am having problems getting Content Type Title from Node.  I can get the name of type as specified in

<type name="my:newname">

by calling node.getType().getLocalName()… still looking for the way to display what's specified in <title></title> tags for the type.

gavinc
Champ in-the-making
Champ in-the-making
You need to use the DictionaryService to get the title and description assigned to the type in the model.