Acosix / alfresco-site-hierarchy

Addon that allows creating hierarchies of sites as secondary structures and provides some common automatisms for site hierarchies
Apache License 2.0
3 stars 5 forks source link

Site Presets (Site Type) and Plugin Compatibility #8

Closed vkaustubh closed 5 years ago

vkaustubh commented 5 years ago

As discussed in another thread, I am using this plugin by enabling legacy mode (Community Edition 5.2) so that the custom dialog box needed to define parent-child relationships shows up as required.

I have also been requested for setting up a skeleton structure for the document library for all sites created by the users. I found the plugin by Jeff Potts (https://github.com/jpotts/share-site-space-templates) to really help in this regard. I could get it up and running and indeed by creating 'site-dashboard' inside 'Data Dictionary / Space Templates', I was able to have a default folder structure automatically created. However, the action of installing this AMP caused Alfresco to revert to using Aikau dialogs.

Well, I once again enabled the legacy mode and all was fine again. Creating a new site by default chooses "Collaboration Site" even though the option to choose the type does not appear in the customized 'Create/Edit Site' dialog box on the hierarchy plugin. The document library folder structure appears as expected.

But does that mean I have lost the benefit of having multiple types of sites? Would it be possible to do something to have the "Site Type" or sitePreset drop down appear alongside all the parent-child related options? I tried looking into the Freemarker Templates but was unable to figure out how to enable this myself or for that matter, what is hiding it to begin with (I could get it to appear by directly playing with the Developer Console in the browser).

vkaustubh commented 5 years ago

Hi!

I guess I was a bit hasty in posting the issue. I was going through a whole lot of literature related to the topic of Site Presets. I came across this post - https://ecmarchitect.com/archives/2016/03/18/4130 by Jeff Potts where he comments on new features in Alfresco 5.1. Here, in one of the sections he expresses his confusion about the disappearance of the Site Type choice dropdown and speculates on possible reasons only to suddenly add an edit which says, "The Share Site type dropdown is not gone. It shows up when there is more than one type of site defined. This is a nice new feature in 5.1 because previously the dropdown would show up even if there was only a single choice.".

So, I decided to create my own site presets which itself was confusing because I thought I'd do it on a fresh installation and then migrate changes to the installation where the Site Hierarchy plugin is installed. But I suddenly realize that the method of adding new preset I found in most places is Surf specific and default Alfresco from 5.2 onwards comes with Aikau dialogs. So my new presets did not show up in the menu. The moment I reverted to legacy mode, the menu appeared just like Potts' article points out.

I'll close this issue for now. But if there are some comments anyone would like to make about this issue, I'd be glad to hear.