cancel
Showing results for 
Search instead for 
Did you mean: 

create site for administrator only on alfresco 5.0.d community

alahwany
Champ in-the-making
Champ in-the-making
Hello,

please help me to make the create site available for administrators only and when others users logged in the create site will be hide how to do that?

i saw many topics but not working and i saw this script
https://github.com/jpotts/share-site-creators

but the AMP files not found or not created and i don't know how to create the AMP files becasue iam using windows server and iam new with alfresco.

so i need some help please.

5 REPLIES 5

alahwany
Champ in-the-making
Champ in-the-making
Hello,

please anyone helping me

hardik1512
Star Contributor
Star Contributor
Hello,

Here are the steps you can follow(create folders if they don't exist and remove txt file extension and underscores).
1) Copy attached my-extension.xml file at tomcat\webapps\share\WEB-INF\classes\alfresco\web-extension\site-data\extensions folder under your Alfresco.
2) Copy attached share-header.get.js file at tomcat\webapps\share\WEB-INF\classes\alfresco\web-extension\site-webscripts\custom\header folder under your Alfresco.
3) Restart Alfresco.

This should disable create site for non-admin users.

alahwany
Champ in-the-making
Champ in-the-making
Dear Eng. Hardik Kacholia

i have created folders and copied your files as you said to Paths
and i have check on http://localhost:8080/share/page/modules/deploy and applied it too

also restart many times but its not working

i have removed all users and created users again but still not working !!

i don't know why ? my version of community is 5.0.d

do you have any idea ?

thanks

Have you removed the txt extension from files? That was just because forum was not allowing other files to upload.

The files name should be my-extension.xml and share-header.get.js No underscores.

alahwany
Champ in-the-making
Champ in-the-making
you are right my friend,

thanks you very much for this script and your respond quickly.