cancel
Showing results for 
Search instead for 
Did you mean: 

Add custom property in detail view

efestione
Champ in-the-making
Champ in-the-making
Hello everyone,
I have just added few custom fields and now I want add a column in detail view "Assigned to".
How do I modify browse.jsp?
Could anyone please help me?

thanks and regards
Ale
8 REPLIES 8

dmihelj
Champ in-the-making
Champ in-the-making
Programming browser.jsp requires some investigation and knowledge to get things right. And when you change alfresco version you must check the files and apply changes all over again. Maybe you should use custom view templates - you can apply them to specific spaces, where you store your files with additional metadata.

Check some links:
http://www.armedia.com/blog/2009/04/custom-views-in-alfresco/
http://forums.alfresco.com/en/viewtopic.php?f=14&t=5551
http://cedric.bosdonnat.free.fr/wordpress/?p=85&lang_view=en

Hope it suits your needs.

efestione
Champ in-the-making
Champ in-the-making
Hi dmihelj,
thank you very much. I have just obtained something interesting modifying "recent_docs.ftl".
So I have to study freemarker!
Thank you again
Ale

thomasberment
Champ in-the-making
Champ in-the-making
Hi, I have the same problem.

I want create my own view in Alfresco, like this :
[img]http://nsa14.casimages.com/img/2010/04/01/100401113352401660.jpg[/img]

I want delete the view "content items" or replace by my "custom view". For the moment, I have the both of them.

If you have a solution, please help me !

Thx !

thomasberment
Champ in-the-making
Champ in-the-making
Is it possible to put the results on multiple pages, a bit like the detail view that one can see in Alresco?

I have not seen anything like this in the tutorials on the web …

HELP !

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
This would be /jsp/browse.jsp just put rendered false for content list

<a:richList id="contentRichList"… redered="false"


or <aSmiley Tongueanel id="content-panel"…redered false.

this way you would remove content list.

but ultimate solution is to make browser like Windows broser, first spaces then contennt.

RecentDocs is nice way, but it shows recently changed docs in this space, not very good if you remove content.

thomasberment
Champ in-the-making
Champ in-the-making
Hi, you're a genius, that's exactly what I wanted to do!

I modify the jsp page and I am facing a problem. How to appear custom metatada?

browse.jsp
<a:column id="col15" style="text-align:left">
  <f:facet name="header">
    <h:outputText id="col15-txtA" value="Version"/>
  </f:facet>
  <h:outputText id="col15-txtB" value="#{r.versionLabel}" />
</a:column>

<a:column id="col20" style="text-align:left">
  <f:facet name="header">
    <h:outputText id="col20-txtA" value="Statut"/>
  </f:facet>
  <h:outputText id="col20-txtB" value="#{r.statutdocument}" />
</a:column>

My second metadata doesn't appear. I tried "custom.statutdocument" or "r.["custom:statutdocument"]" but it doesn't work …
Have you an idea ?

thomasberment
Champ in-the-making
Champ in-the-making
It's work !

<a:column id="col15" style="text-align:left">
  <f:facet name="header">
    <h:outputText id="col15-txtA" value="Version du doc"/>
  </f:facet>
  <h:outputText id="col15-txtB" value="#{r.versionLabel}" />
</a:column>

<a:column id="col20" style="text-align:left">
  <f:facet name="header">
    <h:outputText id="col20-txtA" value="Statut du doc"/>
  </f:facet>
  <h:outputText id="col20-txtB" value="#{r['custom:statutdocument']}" />
</a:column>

But beware of action is presented differently between these two sites !

http://wiki.alfresco.com/wiki/Customising_An_Alfresco_JSP#Displaying_Custom_Metadata
AND
http://forums.alfresco.com/en/viewtopic.php?f=5&t=21227&p=69633&hilit=jsp+custom+metadata#p69633

The first doesn't work, the second works ! Should correct this in the wiki or is it badly explained !

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
I am not a genius I just work for a company that works with alfresco for a long time, and we have changed so many things that blows anyones mind…(you can see address in the footer, go register and see).
If you want to see additional columns you have to edit BrowseBean and add property resolover for this ( about 10 lines of code + logic for statutdocument)

<a:column id="col20" style="text-align:left">
  <f:facet name="header">
    <hSmiley SurprisedutputText id="col20-txtA" value="Statut du doc"/>
  </f:facet>
  <hSmiley SurprisedutputText id="col20-txtB" value="#{r.statutdocument}" />
</a:column>

I gues this code is good, but it lacks a bit of java coding. if you need help with java let me know, or any other Smiley Happy
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.