Sakai
  1. Sakai
  2. SAK-16419

Add the ability to create a site from a template within the Worksite Setup tool

    Details

      Description

      Add the ability to create a site from a template within the Worksite Setup tool. By marking any site that you want to use as a template, via the 'Sites' admin tool, with a property called template set to true, we could make these sites available to be copied as new sites. Then, in the Worksite Setup tool we could add another option to the site type screen named 'from template' and if this were selected present a new screen from where to pick a template etc.

      I've attached a patch for SiteAction and a velocity template that achieves this. I've also attached some screenshots of it in action.
      1. chef_site-copy.vm
        1 kB
        Adrian Fish
      2. SAK-16419.patch
        6 kB
        Adrian Fish
      1. copy_screen.jpg
        26 kB
      2. new_site_type.jpg
        33 kB
      3. site_templage.jpg
        87 kB

        Issue Links

          Activity

          Hide
          Zhen Qian added a comment -
          Thanks, Adrian. All UI accolades goes to Gonzalo :)
          Show
          Zhen Qian added a comment - Thanks, Adrian. All UI accolades goes to Gonzalo :)
          Hide
          Adrian Fish added a comment -
          NIce one Gonzalo as well :)

          I've made a change to my 2.5 version where I've swapped the title field for a text area so you can copy and paste a list of site titles in. I needed to create multiple sites at once from one template. What do you reckon to getting that into your trunk code? It's a nice admin tweak.

          Adrian.
          Show
          Adrian Fish added a comment - NIce one Gonzalo as well :) I've made a change to my 2.5 version where I've swapped the title field for a text area so you can copy and paste a list of site titles in. I needed to create multiple sites at once from one template. What do you reckon to getting that into your trunk code? It's a nice admin tweak. Adrian.
          Hide
          Gonzalo Silverio added a comment -
          Thanks Adrian.

          We have discussed your suggestion. If we could restrict that functionality to a role equivalent to dept or school administrator or something of that nature - like the person in charge of creating all the sites for one unit, then your addition would be incredibly useful across the board. Otherwise it would just be useful to environments where course creation is carried out by admins, no?

          I would hesitate to put this functionality in front of normal users, in any case.

          So in a few words, we either need to enable that role or be able to disable that functionality. A third option would be to surface the template functionality in the Admin Workspace/Sites tool where it would be nicely quarantined.
          Show
          Gonzalo Silverio added a comment - Thanks Adrian. We have discussed your suggestion. If we could restrict that functionality to a role equivalent to dept or school administrator or something of that nature - like the person in charge of creating all the sites for one unit, then your addition would be incredibly useful across the board. Otherwise it would just be useful to environments where course creation is carried out by admins, no? I would hesitate to put this functionality in front of normal users, in any case. So in a few words, we either need to enable that role or be able to disable that functionality. A third option would be to surface the template functionality in the Admin Workspace/Sites tool where it would be nicely quarantined.
          Hide
          Adrian Fish added a comment -
          What are the odds of this getting merged into trunk? Any idea?
          Show
          Adrian Fish added a comment - What are the odds of this getting merged into trunk? Any idea?
          Hide
          Zhen Qian added a comment -
          verified fix on QA3 server, sakai-2.7.0-b01
          Show
          Zhen Qian added a comment - verified fix on QA3 server, sakai-2.7.0-b01

            People

            • Assignee:
              Zhen Qian
              Reporter:
              Adrian Fish
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: