Workspaces | |
Note: A new feature called Workspace UI makes the creation of Workspaces easier since Tiki10 One of the frequently requested information about workspaces is where the workspace checkbox can be found. You can use them without an easy User Interface, or take profit of the easy-to-use Workspaces User Iinterface ("Workspaces UI") that you can enable here: All the components are in place and are ready to be used, with or without UI. However, some consideration must be placed on how to assemble them for your particular use case if you don't use the Workspaces UI. For maximum control and for experienced powerusers/developers, you can create workpaces by hand (without an easy-to-use UI) following the indications below in this page |
Hand-made workspaces | |
The cycle to complete workspaces is in multiple steps:
The workspaces are composed of very simple components in Tiki. Primarily Categories, Groups and optionally Perspectives. By creating a category and several groups, one can create a workspace with specialized roles. Simply by placing the wiki pages or other objects in the category, the workspace's content will be made accessible based on the rules set for the workspace, provided that you ensure that there are no object permissions there which might overrule those workspace (category) permissions if you don't want to. Perspectives will modify certain aspects of the Tiki instance to make the workspace more visual. Below is a summary of the steps involved. For a more detailed tutorials, see: Tutorial: Manually creating a Workspace.
Already, you have a basic workspace in place. Play with it
Switch to the perspective using the module. Because of the category jail, if you go to list pages, you won't see any pages. They are automatically filtered out so you can focus on your project.
When you attempt to create a new wiki page, the category will automatically be selected. (This may require some permissions to assign categories to objects and add objects to a category) Switching out of the perspective will make everything visible again. Progressive improvements can be made to the workspace. By changing more preferences on the perspective, the experience can be adapted. Consider changing the site's title or the theme option to make it clear when you are in a perspective. Create a dashboard
The category jail affects how you view the content inside Tiki. The listing inside modules will be altered. Go a step further and change the home page of the perspective to a dashboard so members can quickly see what is going on when they begin working on the project.
You can also add the PluginMemberList to allow user management from the dashboard for the administrator of the workspace (permissions required) or simply to let members view who else is working with them. As you create multiple workspaces manually, patterns will emerge. All those steps are tedious and some steps require higher privileges that most site administrators would like to grant to too many people. This is where automation comes into play. |
Automation through Data Channels | |
If you need to create workspaces often for various projects, going through the manual steps every time may take a long time. Setting the permissions correctly on all objects for all groups will quickly become tedious. There are multiple error opportunities that could cost many hours. Data channels allow to automate the process and convert workspace creation to a single step. However, some time must be invested to create the workspace template that will be used to initialize workspaces and serve as a starting point. The workspace can then be customized as needed using typical Tiki features. Data channels use the same syntax as profiles for their definition. Extensive reference documentation can be found on the profiles' site. They are stored in wiki pages, so complete history is provided to allow more collaboration. However, when executed, data channels have extensive rights, so limiting access to trusted users is a must. When starting out, it's better to test on a separate installation to avoid excessive amounts of test data from being generated. Organizing the workspace template
Profile definitions can be cryptic. However, only the code blocks are evaluated and there can be multiple blocks in the page.
Use the space in-between to describe what they do and what the objectives are.
Code Block #1: Data channel interface Copy to clipboard
You can add additional fields by adding more rows in the plugin. The format is very simple: value name inside the data channel followed by the label to display on screen. Code Block #2: Perspective and category Copy to clipboard
The above may seem a little confusing at first, but the format is regular enough when you are used to it. First, one must notice that two objects are created. One of type category and the other of type perspective. The ref argument below the type indicates a name that will be used to reference to the object elsewhere in the template. The type indicates how the data block will be processed. The values that can be provided are specified as part of the developer documentation page. under Category Handler and Perspective Handler. Both names contain a strange structure: $profilerequest:workspace_name$Unknown$. This will be replaced by the name provided in the data channel form. If Test is entered as the workspace name, both the category and the perspective will be named Workspace Test. The perspective also contains the preferences that will be used. In this case, only the category_jail preference is set. The preference names are those used internally by Tiki. Some research may be required to find those. The value is set to $workspace_root, which is the name given to the category. It will be replaced by the ID of the freshly created category. Test it out
Without the groups of the following section, you can run the data channel and generate perspectives and category. As an exercise, try the following:
Code Block #3: Creating groups Copy to clipboard
The initial section defines mappings. Using a syntax explained earlier, the profile will create groups named Workspace Lead and Workspace Member. Lead and Member are used as shorthands for the remaining of the definition. The groups section provides more information along with the privileges they grant. The autojoin flag indicates that the user triggering the data channel will automatically become a member of the group. Here, privileges are not granted globally. Instead, they are defined for the category and perspective.
Test it out
With those groups, you create a minimal workspace with enough permissions to make it usable. Try to go further.
A more complete template example can be found as part of the Project Management Profile. |
Distributing knowledge | |
About Profiles
Profiles are Tiki's configuration distribution system. The configuration scripts are stored in a wiki, also running Tiki, referred to as the repository. The primary repository is profiles.tikiwiki.org, but any installation can be used by applying the Profile Repository Profile.
Profiles can be applied from the admin panels. Not all contexts will require the same kind of workspaces. However, many of them are bound to have similarities. Once the workspace set-up has been running for a while, it is recommended to share the set-up with others. Ideally, communities will form around a given use-case. Like most configurations, the workspace set-up can be distributed using profiles. A workspace profile is essentially a normal profile, but will require to copy the template verbatim and create the data channel. The repository will need to contain at least two pages: one for the profile definition and one containing the template. The template page can be an exact copy of the page currently used as a template. If the template uses external dependencies, those must also be provided by the profile. Data channel registration - MyWorkspaces Copy to clipboard
In the above, a wiki page is first created. The page name will be workspace_template and the content will be taken from the page MyWorkspaces_template on the repository. Unlike wikicontent:, wikidirect: will not resolve references, which is required to load a profile template. The datachannel is then registered and granted to the Admins group. Additionally, you can add the perspective switching module automatically. Module switcher - MyWorkspaces Copy to clipboard
|
Historic notes | |
Starting in Tiki4 and continued in Tiki5, massive improvements to existing features like Categories, Permissions, Groups, etc and the addition of some new concepts, like Perspectives and Organic Groups permit to generate workspaces. All these features are in the core. This permits to make smaller spaces within a Tiki instance, where Preferences can be overridden and permissions can be different. Workspaces will help with Social Networking, Project Management and Customer Relationship Management, which are use cases & profiles in addition to features. For more details, please see: Workspace This is different than a previous effort AulaWiki, which is available as a mods (additional code). |
Simple explanation | |
See here: Simple_explanation_of_perspectives_categories_category_jail_etc. and the following conversation |
FAQ-alike IRC conversation (helpful to understand) | |
Following an excerpt of an IRC conversation between mikebeary and nkoth, that the both guys allowed to use for the documentation: mikebeary nkoth mikebeary nkoth mikebeary nkoth mikebeary nkoth mikebeary nkoth mikebeary nkoth mikebeary nkoth mikebeary nkoth mikebeary nkoth mikebeary nkoth mikebeary mikebeary nkoth mikebeary nkoth nkoth mikebeary Related Alias names for this page |