cancel
Showing results for 
Search instead for 
Did you mean: 

[share]How to change site top page

junminya
Champ on-the-rise
Champ on-the-rise
We're using Alfresco Community edition 4.2.

Clicking site link, it shows site dashboard page.

We wanna change that site top page into document library.

Can we do it?
5 REPLIES 5

lementree
Champ on-the-rise
Champ on-the-rise
<strong>To Change in Global Header</strong>
change tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\modules\header\sites.get.html.ftl file

<a href="${url.context}/page/site/${site.shortName}/dashboard">${site.title?html}</a>
change line as
<a href="${url.context}/page/site/${site.shortName}/documentlibrary">${site.title?html}</a>

<strong>To Change in My Sites Dashlet</strong>

change in tomcat\webapps\share\components\dashlets\my-sites.js in method: <strong>renderCellDetail</strong>


desc += '<h3 class="site-title"><a href="' + Alfresco.constants.URL_PAGECONTEXT + 'site/' + site.shortName + '/dashboard" class="theme-color-1">' + $html(site.title) + '</a></h3>';
change as
desc += '<h3 class="site-title"><a href="' + Alfresco.constants.URL_PAGECONTEXT + 'site/' + site.shortName + '/documentlibrary" class="theme-color-1">' + $html(site.title) + '</a></h3>';

You are grate. we can change site top page, thank you!!

mitpatoliya
Star Collaborator
Star Collaborator
I think you can do need to change site-preset.xml for that.

Hi, mitpatoliya!

Do you means we can change site top page with out modify .js file and .ftl file?

What's site-preset.xml? I know preset.xml, but site-preset.xml i dont know.
and we dont know change site top page by changing preset.xml.

Could you tell us how to change site top page by site-preset.xml?

mitpatoliya
Star Collaborator
Star Collaborator
Yeah I mean that file only

try changing this config


<page id="site/${siteid}/dashboard">


under "site-dashboard" preset.