|
The plugin provides functionality to organize spaces hierarchically in spaces and sub-spaces. It includes macros to display the space hierarchy on the dashboard or in navigation menus. The relationship between the spaces is rather lose (e.g. no permissions or layouts will be inherited), since the plugins focus is on structuring a wiki and its spaces.
There are two ways to configure the space structure - while administrators can change the structure for all spaces, space administrators are only allowed to create sub-spaces.
The macro {subspaces} allows to display the space structure with all spaces and subspaces. Several parameters allow to configure the way the structure is displayed. The macro browser is supported.
Parameter | Default | Description |
---|---|---|
style (style=menue) (style=list) (style=plain) | menue | Optional parameter, to define how the space structure is displayed:
|
sort (sort=creation) (sort=modification) (sort=title) (sort=mixed) | creation | Optional attribute that allows you to configure how the spaces are sorted.
|
key | none | Optional parameter to restrict the displayed space structure to a space and its sub-spaces (a subtree in the space hierarchy) |
showRoot (showRoot=true) (showRoot=false) | false | If the "key" parameter is defined, this parameter defines if the root node of the specified subtree is displayed. By default only the sub-spaces of the given spaces are displayed, but not the given space itself. |
addlink (addlink=true) (addlink=false) | false | Specifies whether static links should be shown or not. Those links can be configured via "Confluence Administration" > "Subspace Configuration" |
displayEmptyMessage (displayEmptyMessage=true) (displayEmptyMessage=false) | true | Specifies whether to display a short message that the space structure that should be rendered is empty. Especially useful in combination with the parameter "key". |
maxDepth (maxDepth=2) | none | Specifies the depth of the space hierarchy. maxDepth=0 shows no sub-spaces, maxDepth=1 shows the direct sub-spaces of a space. If no parameter is given all sub-spaces will be shown. |
showSpaceIcons (showSpaceIcons=true) (showSpaceIcons=false) | false | Optional parameter to show the space logos at the top level spaces. This parameter works only with the "menue" style. |
showHomeButton (showHomeButton=true) (showHomeButton=false) | false | Optional parameter to display a link to the dashboard. This parameter works only with the "menue" style. |
The following steps describe how to display a navigation bar on every page in the Default Theme. Custom themes have to be modified accordingly.
The macro allows you to display a space hierarchy, similar to the space overview on the dashboard.
For Confluence 4.x
Go to your "Confluence Admin" -> "Plugins" -> "Manage Existing" -> "Subspace Plugin" and activate the Module "Subspaces Dashboard Panel (CF 4)". Now you have the Subspace Panel on your Dashboard.
If you want to remove the Confluence original space view at the Dashboard you have to deactivate the module "global-entities-panel" which is part of the "Dashboard Macros Plugin" (it is a system plugin).
For Confluence < 4
To display the overview on the dashboard edit the "Global Layout" (Via Confluence Admin -> Layouts -> "Edit" the Global Layout)
replace following code
$helper.renderConfluenceMacro( "{spaces}" ) |
with
The plugin allows to display the hierarchical space structure in the Confluence breadcrumbs. To change the breadcrumbs on every page edit the "Main Layout" (Via "Confluence Admin -> Layouts -> "Edit" the Main Layout):
The "subspaces-quicksearch" macro provides a quicksearch field similar to the Confluence default quicksearch field. It provides a quick result dropdown and forwards to an advanced search result page too - but search results are limited to the current space and its subspaces.
Parameter | Default | Description |
---|---|---|
includeSubspaces (includeSubspaces=true) (includeSubspaces=false) | true | This Parameter defines whether the quicksearch dropdown should include the subspaces in its search or not. |
spaceKey | none | Defines the start spacekey to search into. |
The subspaces advanced search site works like the original confluence search result page. But there is an additional checkbox "include subspaces" at the filter column. If you want to search in a specific space you have the choice to include its subspaces in the search by selecting the checkbox. Furthermore, all spaces at the first hierarchy level will be listed above the spaces selection box. Choosing one of these spaces initiates a search in this space and its subspaces.
Edit the "main Layout" (Via Confluence Admin -> Layouts -> "Edit" the Main Layout).
Look for the line:
#quickSearch() |
Replace it with:
Disable checkingPremium suggestions