cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify Edit Properties page

vpoorboy
Champ in-the-making
Champ in-the-making
Hi,
When I upload content to alfresco, in the details attributes modification page, I want to edit some languages. I find in container.jsp file, some codes

<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
<f:subview id="dialog-body">
<jsp:include page="<%=Application.getDialogManager().getPage() %>" />
</f:subview>
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>

But I cannot find what the file include here.
Pls help.
5 REPLIES 5

gavinc
Champ in-the-making
Champ in-the-making
The page loaded depends on the dialog being loaded.

In the scenario you mention, edit properties, the "editContentProperties" dialog is being loaded, web-client-config-dialogs.xml shows that "/jsp/content/edit-content-properties.jsp" is being loaded.

Have a look at the wiki page below for details on the dialog framework.

http://wiki.alfresco.com/wiki/Dialog_Framework

vpoorboy
Champ in-the-making
Champ in-the-making
Thanks !
But in /jsp/content/edit-content-properties.jsp , I cannot find anything to be able to change.
<hSmiley TongueanelGrid columns="1" cellpadding="2" style="padding-top: 4px; padding-bottom: 4px;"
width="100%" rowClasses="wizardSectionHeading">
<hSmiley SurprisedutputText value=" #{msg.properties}" escape="false" />
</hSmiley TongueanelGrid>

<rSmiley TongueropertySheetGrid id="content-props" value="#{DialogManager.bean.editableNode}"
var="editContentProps" columns="1" externalConfig="true" />

gavinc
Champ in-the-making
Champ in-the-making
Right, the property sheet is driven from configuration. Have a look at web-client-config-properties.xml, this configures what properties are shown for each type and aspect in the system.

If you want to add or remove properties you need to change the config, do this using the extension mechanism though i.e. in your web-client-config-custom.xml

Have a look at http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata for more details.

danikun
Champ in-the-making
Champ in-the-making
I think that's not exactly what I want, but many thanks for your help.

tfpadilla
Champ in-the-making
Champ in-the-making
Thanks for this information gavinc,

I have made some changes in the file you specify and it is what I needed.
Just one thing,

Could you tell me how can I specify to the system that i want that a specific property is strictly required?

And last thing,
in order to change also the properties that appear in the "small information popup square" when you click on information, which file should i change?

Thanks in advance and I'M SORRY ABOUT MY POOR ENGLISH. Hope you understand my "Spanglish"