Define the default search space for index spaces.
Index spaces are meant to collect common configuration for spaces using the projectdoc Toolbox for Confluence . This includes space properties and homepages for doctypes.
A type doctype is a doctype that is used to categorize document instances of one other doctype. The doctype using the categorization defines a document property named Type
(this is just a naming convention).
On a type document typically all document instances of the given type are listed. So a type document is simply a view on your documents of a given doctype and type.
Since index spaces are used by multiple spaces, documents from all this spaces should be listed. Per default only the document instances of the index space itself are listed (which are typically none).
One option to fix this is to specify the spaces to search in explicitly. The Display Table Macro provides a parameter named Space Keys for this.
Entering the same set of spaces for each type document instance is quite cumbersome. This tip shows how to fix this more easily.
Configuration
The search-space
property is used by the Display Table Macro if no space to select documents has been explicitly specified.
Root Index Space
A root index space is the index space for all spaces.
Set the search-space
space property to @all
. Then all searches without specifying a space as query constraint will automatically refer to all spaces on a Confluence server.
Use space-local to not export the search space of the index space.
Space Group
A space may only be defined as an index space for a subset of spaces on a Confluence server. This group of spaces is created by sharing the same space label (e.g my-label
).
The Display Table Macro allows to select the search space by refering to that space label (e.g #my-label
) .
To use a space group as the default search space, set the seach-space
space property to reference the space label of the group (e.g #my-label
).
Resources
More tips on related topics.