cancel
Showing results for 
Search instead for 
Did you mean: 

Disable 'Create site' link

criskolkman
Confirmed Champ
Confirmed Champ

Hello all,

Been searching for ages for this function and I know it has been asked a lot, but no real solution to this yet.

Why would you have to implement/edit/install all kind off different mods and pages etc while a function like this (let the 'Create site' link see to people only member of (a) specific group(s)) should be a default on Alfresco.

Doesn't seem like there is any easy way to make this happen.

17 REPLIES 17

ddraper
World-Class Innovator
World-Class Innovator

Since you've said that you've already searched a lot I'm going to assume that you've already encountered the "showCreateSite" boolean option on the AlfSitesMenu widget that you can reconfigure following the customisation pattern described in this blog post?

But to answer your more general question, the basic reason why we've not exposed every conceivable customisation option as some kind of configuration parameter is because we don't know all the customisation use cases (or how popular each individual use case might be) and to trying to implement everything as a configuration option would be complex and expensive with no guarantee of return on that investment.

By providing a more generic customisation solution we can allow 3rd parties to essentially change Share as much or as little as they want to according to whatever criteria they need (i.e. role, page, user, etc.). Whilst this means that there is an overhead on very simple customisations, the approach required is applicable across all use cases.

Hello Dave,

This is an option which has been asked quite a lot for, but only can be implemented after a lot of code changing or third party scripts which require you to know how to install them ( GitHub - jpotts/share-site-creators: An Alfresco add-on that limits site creation to those in a spec...  )

The AlfSitesMenu requires a file header/AlfSitesMenu.js which I cannot find on the system:

[root@shared header]# find / -name AlfSitesMenu.js
[root@shared header]# find / -name *AlfSitesMenu*
[root@shared header]#

And I don't really want to hide the menu button, but to make members able to create a new site when they are member of a specific group.

Thanks for your answer!

ddraper
World-Class Innovator
World-Class Innovator

Hi Cris...

I guess it really depends on who has been asked (I wouldn't say that I've heard this request significantly more times than any other customization request). Ultimately it will be down to the current product manager for Share to make a call on what gets implemented. Any request for simpler solutions to specific customization requirements will then need to be traded off against other requirements that need to be delivered by the team. Given that there is already a well documented solution to this problem I doubt that it is likely to be a priority (although it's not my call).

When you create an extension module that re-configures the a widget you can apply evaluators to the module to determine when it gets applied. There are custom evaluators provided out-of-the-box or you can write your own so applying the module if the current use is a member of a specific group or groups is easily achievable.

With regards to not being able to find the widget source code, they will be in the Aikau JAR file in the share/WEB-INF/lib folder. 

Regards,

Dave

jego
Star Contributor
Star Contributor

You could use the addon GitHub - jpotts/share-site-creators: An Alfresco add-on that limits site creation to those in a spec... 

This limits the site creation to a certain group in Alfresco.

Please mark my answer as helpful if this helps you.

ddraper
World-Class Innovator
World-Class Innovator

That's really useful, ‌ I didn't know that ‌ had implemented that. I just took a look through the code and (on the Share side at least) it is doing exactly what I've suggested in terms of re-configuring the AlfSitesMenu.

Jens thanks for your answer.

I was already looking into that one but it's not really clear on how to install/implement the addon.

jego
Star Contributor
Star Contributor

Hi Chris,

please look into the README of this addon. It describes the manual installation as well as integrating it into another amp projects you may have.

Very easy and used several times.

Thanks

Jens

Jens,

Thanks I checked that, but I have no experience at all installing with AMPs etc, that's why it's hard to implement such a thing Smiley Happy

ddraper
World-Class Innovator
World-Class Innovator

OK, so I think that there is a broader issue here in terms of helping people new to Alfresco get up to speed and something that I know that (our new Developer Evangelist) Francesco Corti‌ is going to be looking into so I'm sure that any information that you can provide him on your experiences in getting started with Alfresco in order to improve things will be invaluable.

Information on installing AMPs can be found here: Install the AMP file | Alfresco Documentation