cancel
Showing results for 
Search instead for 
Did you mean: 

Customize Share UI

yozayoza
Champ in-the-making
Champ in-the-making
greetings all,,


i wanna ask about creating custom UI in alfresco


can we put a custom page in a site..but using same function/parameter like the default one?

for the example i want to change the default "Data List" to something named "External list"
and that "External List" would have same function/method/parameter like Data List…such as…adding a template Data list, an adding item also.

thank you
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
If you just want to change the name of the "Data Lists" page, you can do that in the user interface without doing any coding.

If you need the original data list page and a second page that works like the data list page but is called something different, you can do that. At a high-level, you will add a new page definition ("page" is a Surf model object that is expressed in XML) and a new template-instance. The template-instance and components for that page can reuse the template and components currently used for the existing data list page.

Here are some hints that will help you do this…

Go find the page XML that is used for the existing Data List page. It lives in $TOMCAT_HOME/webapps/share/WEB-INF/classes/alfresco/site-data/pages/data-lists.xml and copy that into your own web-extension directory using the same folder structure ($TOMCAT_HOME/webapps/share/WEB-INF/classes/alfresco/web-extension/site-data/pages/external-lists.xml). Edit the file to replace "data-lists" with "external-lists".

You'll need a new template-instance file. Copy $TOMCAT_HOME/webapps/share/WEB-INF/classes/alfresco/site-data/template-instances/data-lists.xml into $TOMCAT_HOME/webapps/share/WEB-INF/classes/alfresco/web-extension/site-data/template-instances/external-lists.xml". The template instance will point to the existing data list components, but if you want to maintain the data lists created by the OOTB Data List page separately from the data lists created by this new page, you'll have to configure a different container. So, open your new template-instance XML and change the container element value to "externalLists".

Sorry I don't have time to give you more detail. I haven't tested these steps so I'm sure there are some things missing, but hopefully that gets you pointed in the right direction.

Jeff