cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a page the default landing page

giasqui
Confirmed Champ
Confirmed Champ

Hi,

following this topics:

https://docs.alfresco.com/content-services/latest/tutorial/share/pages/#adding-a-new-surf-page-to-sh... 

and 

https://docs.alfresco.com/content-services/latest/tutorial/share/pages/#making-the-new-page-the-defa... 

I would like to change de default landing page after login. 

Well, if i tightly follow the topics and start the solution with docker (run.bat build_start), than it works as expected! 

While if I create the amps and deploy it to my test environment than, the redirect does not works and, after the login I always see the user dashboard.

May you please help? 

Please notice that I can see the package deployed on "Module Deployment" console at ../share/service/modules/deploy.

Thanks a lot.

Kind regards.

17 REPLIES 17

Thanks @roberto_gamiz but it does not works for me... and I don't know why.

Did you test it on a clean installation? Have you got deployed more customizations on your installation?

Regards!!

 




 Roberto Gámiz Sánchez

Alfresco Content Services Engineer



Let me do a recap: the project above is a customization of the following https://github.com/Alfresco/alfresco-sdk-samples/tree/alfresco-51/all-in-one/add-surf-dashlet-and-pa... that is official and mentioned here https://docs.alfresco.com/content-services/latest/develop/share-ext-points/surf-pages/#sample-code.

Now, also if I use these official project it works on docker and doesn't works on my installation. Moreover I've installed an older version of alfresco on my pc in order to have a fresh new installation and the simple deploy of the add-surf-dashlet-and-page-share-1.0-SNAPSHOT.jar works.

So the scenarios are these:

Alfresco 5.2.f on my pc - it works

these are the modules deployed

alfresco5.2.f-mypc-modules.JPG

Alfresco v23.3 on a server - it does not works

these are the modules deployed (here you can't see add-surf-dashlet-and-page-share module because I've undeployed it)

alfresco23.2-server-modules.JPG

Alfresco 25.2 on docker with sdk - it works

these are the modules deployed

alfresco25.1-docker-modules.JPG

This is the only custom related to share so I hope that there isn't an interference form other modules.

 

The same things happens on prod environment where i have:

Alfresco v23.3 on PROD server 

these are the modules deployed (here you can see add-surf-dashlet-and-page-share)

alfresco23.2-server-prod-modules.JPG

I'm going crazy... 🙂

Hello,

What is content-tutorial-edodtosgd-share?  Could it be interfering? Could you undeploy it and try again?

Regards




 Roberto Gámiz Sánchez

Alfresco Content Services Engineer



content-tutorial-edodtosgd-share is a customization of this: https://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html

I have tested the landing page also without it and the issue is always the same so about me it does not interfere.

How can I debug it?

I did another test on another environment with alfresco 23.4 on windows and it does not works.

So in order to recap the scenario is this:

Alfresco 5.2.f on my pc with windows - it works

Alfresco v23.3 on TEST env01 server - it does not works

Alfresco v23.3 on PROD env01 server - it does not works

Alfresco 25.2 on docker with sdk - it works

Alfresco v23.4 on TEST env02 server - it does not works

It could be something related to v23.x?

Any idea?

Does anyone have the same problem?

There is a way to debug?

AlfrescoZZZ
Star Collaborator
Star Collaborator

My way to do this is to create a new sitepreset and set a full dashboard xml preset fot that new site preset for example "sitepippo" under the file in the path "web-extension/site-data/presets/sitepippo-presets.xml"

<?xml version='1.0' encoding='UTF-8'?>
<presets>

	<preset id="sitepippo">
		<components>

			<component>
				<scope>page</scope>
				<region-id>title</region-id>
				<source-id>site/${siteid}/dashboard</source-id>
				<url>/components/title/collaboration-title</url>
			</component>
		
			<component>
				<scope>page</scope>
				<region-id>navigation</region-id>
				<source-id>site/${siteid}/dashboard</source-id>
				<url>/components/navigation/collaboration-navigation</url>
			</component>
		
			<component>
				<scope>page</scope>
				<region-id>component-2-1</region-id>
				<source-id>site/${siteid}/dashboard</source-id>
				<url>/components/dashlets/site-search</url>
				<properties>
					<height>58</height>
				</properties>
			</component>
			
			<component>
				<scope>page</scope>
				<region-id>component-1-1</region-id>
				<source-id>site/${siteid}/dashboard</source-id>
				<url>/components/dashlets/xxx/xxx</url>
			</component>
			
			<component>
				<scope>page</scope>
				<region-id>component-1-2</region-id>
				<source-id>site/${siteid}/dashboard</source-id>
				<url>/yyy/components/dashlet/yyy</url>
			</component>
			
			<component>
				<scope>page</scope>
				<region-id>component-1-3</region-id>
				<source-id>site/${siteid}/dashboard</source-id>
				<url>/components/dashlets/colleagues</url>
				<properties>
					<height>126</height>
				</properties>
			</component>
			
			<component>
				<scope>page</scope>
				<region-id>component-2-2</region-id>
				<source-id>site/${siteid}/dashboard</source-id>
				<url>/components/dashlets/zzz/documents-scadenze</url>
				<properties>
					<height>78</height>
				</properties>
			</component>
			
			<component>
				<scope>page</scope>
				<region-id>component-2-3</region-id>
				<source-id>site/${siteid}/dashboard</source-id>
				<url>/components/dashlets/activityfeed</url>
				<properties>
					<height>147</height>
				</properties>
			</component>
			
			<component>
				<scope>page</scope>
				<region-id>component-2-4</region-id>
				<source-id>site/${siteid}/dashboard</source-id>
				<url>/components/dashlets/docsummary</url>
				<properties>
					<height>82</height>
				</properties>
			</component>
			
			<component>
				<scope>page</scope>
				<region-id>component-3-1</region-id>
				<source-id>site/${siteid}/dashboard</source-id>
				<url>/components/dashlets/xxx/xxx</url>
				<properties>
					<height>90</height>
				</properties>
			</component>
			
			<component>
				<scope>page</scope>
				<region-id>component-3-3</region-id>
				<source-id>site/${siteid}/dashboard</source-id>
				<url>/components/dashlets/xxx/xxx</url>
				<properties>
					<height>63</height>
				</properties>
			</component>
			
			<component>
				<scope>page</scope>
				<region-id>component-3-4</region-id>
				<source-id>site/${siteid}/dashboard</source-id>
				<url>/components/dashlets/calendar</url>
				<properties>
					<height>232</height>
				</properties>
			</component>

		</components>
		<pages>
			<page id="site/${siteid}/dashboard">
				<page-type-id>generic</page-type-id>
				<title>Pippo Site Dashboard</title>
				<title-id>page.siteDashboard.title</title-id>
				<description>Pippo site's dashboard page</description>
				<description-id>page.siteDashboard.description</description-id>				
				<template-instance>dashboard-3-columns</template-instance>
				<authentication>user</authentication>
				<properties>
					<sitePages>[{"pageId":"dashboard"}, {"pageId":"documentlibrary"}]</sitePages>
					<dashboardSitePage>true</dashboardSitePage>
					<!-- <siteLogo>workspace://SpacesStore/1181d7c0-9086-4c5a-ab2f-9c693ed3c59e</siteLogo> -->
				</properties>
			</page>
		
		</pages>
	</preset>
	
</presets>