Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-16419

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

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.x
    • Fix Version/s: 2.7.0
    • Component/s: Worksite Setup
    • Labels:
      None

      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.

        Gliffy Diagrams

          Attachments

          1. chef_site-copy.vm
            1 kB
          2. copy_screen.jpg
            copy_screen.jpg
            26 kB
          3. new_site_type.jpg
            new_site_type.jpg
            33 kB
          4. SAK-16419.patch
            6 kB
          5. site_templage.jpg
            site_templage.jpg
            87 kB

            Issue Links

              Activity

              Hide
              zqian Zhen Qian added a comment -

              Thanks, Adrian. All UI accolades goes to Gonzalo

              Show
              zqian Zhen Qian added a comment - Thanks, Adrian. All UI accolades goes to Gonzalo
              Hide
              a.fish@lancaster.ac.uk 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
              a.fish@lancaster.ac.uk 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
              gsilver 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
              gsilver 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
              a.fish@lancaster.ac.uk Adrian Fish added a comment -

              What are the odds of this getting merged into trunk? Any idea?

              Show
              a.fish@lancaster.ac.uk Adrian Fish added a comment - What are the odds of this getting merged into trunk? Any idea?
              Hide
              zqian Zhen Qian added a comment -

              verified fix on QA3 server, sakai-2.7.0-b01

              Show
              zqian Zhen Qian added a comment - verified fix on QA3 server, sakai-2.7.0-b01

                People

                • Assignee:
                  zqian Zhen Qian
                  Reporter:
                  a.fish@lancaster.ac.uk Adrian Fish
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code