Skip to main content
Recipes documentation

HumHub template space for each chapter or project

A federation with forty local groups, or a team that starts a project every month, wants every new space to look the same on day one. HumHub has no space templates of its own; the Cloner module copies a model space, its settings, its modules and its content, into a new one.

Last updated: .

In shortBuild one hidden model space with the modules, the wiki pages, the first posts and the events every chapter needs. Enable space cloning in Cloner, then create each new chapter from Administration → Spaces → Clone Space. What changes later in the model does not reach the copies, unless you set up content syncing.

What you get

  • A new chapter or project space in one form: name it, and it opens with the same modules, settings, wiki pages, posts and events as the model.
  • Optionally, the model's members (the national team, the coordinators) in every copy.
  • Optionally, the content of a central space copied into every chapter every hour, such as the national office's guidelines.
  • A single post, page or event copied to another space from its menu.

The modules

ModuleRoleWhere it comes from
ClonerClones a space, syncs content between spaces, clones one itemCUZY
Classified SpacesPuts the chapters in categories (regions, themes)CUZY
Groups Associated with Space CategoriesAdds a region's group to every space of that regionCUZY
RESTful APINeeded only to sync content from another HumHub communityFree, HumHub

What is copied

CopiedNot copied
The spaceIts settings and its enabled modules; the members if you tick Preserve members
ContentPosts, wiki pages, calendar events, polls, surveys and custom pages, with their text and attached filesComments, likes, reactions
Content attributesVisibility, archived, pinned, comments locked
Later changesA change in the model after the copy

The clone's content belongs to the person who made the clone.

The steps, in order

1. Build the model space {#model}

Create a space named "Template: chapter" with the visibility Private (Invisible), so that members never stumble on it. Enable the modules every chapter uses, set its permissions and its homepage, and write the content a new chapter needs: a wiki home page with the chapter's first steps, a pinned welcome post, the recurring coordinators' meeting in the calendar, a contact survey. Write it for the chapter, not for the model: "Welcome to your chapter's space", not "Template".

Leave out anything personal: the model's content is copied under the name of whoever clones it.

2. Enable space cloning {#enable}

Enable Cloner, then open its configuration (Administration → Modules, Cloner, Configure) and tick Enable Space cloning. The configuration also chooses the content types that can be cloned and whether a single content may be cloned to another space (Allow cloning a single Content to another Space).

3. Clone for each new chapter {#clone}

Administrators who may manage spaces now find Clone Space in Administration → Spaces. Choose the Source Space (the model), type the Name of the new Space, tick Preserve members if the model's members must follow, and start. The cloning runs in the background queue; the new space appears within minutes. Then make the chapter's coordinator an administrator of it and invite its members.

If the chapters are sorted by region with Classified Spaces, put the new space in its category; with Groups Associated with Space Categories, the region's group then joins it by itself (modules that extend groups).

4. Keep shared content in step, if you need to {#sync}

For content that must stay the same in every chapter, such as the federation's guidelines, Cloner syncs content between spaces. It is configured in the destination space, in Cloner's space settings: choose the source space, the dates (Clone only content created on or after, on or before), whether to Clone attached files, and Clone content automatically every hour. The source can be another HumHub community, through its RESTful API and a Cloner Key copied from its Cloner configuration.

Syncing copies new content; it does not update what was already copied.

5. Copy one item {#single}

For a one-off (this year's assembly event, a new procedure), open the menu of the post, page or event, choose the clone entry and the target space. Clone as draft creates it visible only to you until you publish it, and Preserve creation date keeps the original date.

Pitfalls

  • Copies do not follow the model. Fix the model, and the forty existing chapters keep the old version. Keep text that changes often in one central space and link to it, or sync it (step 4).
  • The model shows up in lists. A visible model space appears in the spaces directory, and in the search. Keep it Private (Invisible) and leave it out of the default spaces.
  • Preserve members adds people silently. Everyone in the model becomes a member of every copy. Keep the model's members to the few people who need every chapter.
  • The target needs the module. A wiki page cannot be cloned into a space without the Wiki: when you clone a single item, enable the module in the target space first.
  • Custom pages of a space are copied when cloning a space of the same community only.

On a CUZY hosted community

Cloner, Classified Spaces and Groups Associated with Space Categories are CUZY modules: included on the Business plan and during the trial, and bought at 50% off on the Team plan (CUZY modules). The RESTful API installs from the marketplace on every plan (marketplace modules). Before cloning forty chapters, a Business plan community can rehearse on its testing instance. Compare the plans or try it free.

Read next

Try HumHub with your own content

A hosted community in two minutes, all paid CUZY modules included, no card asked. Keep everything when you subscribe.

Loading...