Other Tiki sites in addition to this one can be made into profile repositories. Such custom repositories can then be listed in the profiles admin panel (
Admin Home > Profiles > Repositories) of the same or another site where the profile is to be applied. This page explains the steps necessary to do the following:
- Make a Tiki site a profile repository
- Add individual profiles to the repository
- Access the repository's profiles from another site.
Note
Custom repositories may be helpful for testing or in cases where there are firewall issues. But please remember to contribute useful profiles to this site as well so that they are available to the Tiki Community.
Creating the repository
Making a Tiki site into a profile repository is just a matter of:
- Creating a category to apply to profile pages
- Allowing the Anonymous group certain permissions (view, export, viewing categories)
- (optional) Adding a rewrite rule to the .htaccess file to keep the repository url short
Once the repository is ready, all you need to do is assign any profile pages to the new category as you create them.
More detail follows:
Use a Profile to Create a Repository
- Go to the Profiles admin panel and apply one of the following profiles depending on your Tiki version:
- If the profile has been successfully applied, you should be taken to a page called Profile_Repository_Rewrite_Configuration on your site. Follow the instructions on this page for adding a rewrite rule or otherwise describing the url to use to access the repository.
Manually Create a Repository
If the above profiles don't work, then the same thing can be achieved manually by doing the following:
- Create a category called "My Profiles"
- Assign the following permissions to the Anonymous group:
- tiki_p_view
- tiki_p_export_wiki
- for 3.x:
tiki_p_view_categories
tiki_p_view_categorized
- for 4.x:
tiki_p_view_category
- Add the following line to the .htaccess file below the "RewriteEngine on" line (towards the beginning):
RewriteRule ^profiles$ tiki-browse_categories.php?parentId=XX&deep=on&type=&plain&maxRecords=1000000 [L]
(where XX is the ID number of the My Profiles category that you created)
Note: This step is optional. It makes a difference below when accessing the repository.
Alternative Permissioning
The above steps give the Anonymous group global permissions to wiki pages. Alternatively, you could restrict the permissioning to only profile pages by doing the following regarding permissions instead:
- Edit permissions for the My Profiles category as follows:
- Version 3.x:
- Assign tiki_p_view_categories to the Anonymous group
- Assign tiki_p_view_categorized to the Anonymous group
- Version 4.x
- Assign tiki_p_view_category to the Anonymous group
- For each profile wiki page created:
- Assign the page to the My Profiles category
- Apply the following permissions to the page:
- Assign tiki_p_view to the Anonymous group
- Assign tiki_p_export_wiki to the Anonymous group
Accessing the repository
Go to the site where you want to apply a profile from the custom repository you've created and do the following:
- Go to Admin Home > Profiles and find the repository URLs listed (under the Advances tab in 4.x)
- Add the URL for the custom repository site followed by "/profiles" to the list of repository URLs
- Example:
http://yourdomain.com/profiles
Note: always add "/profiles" to the end of the main url for the site
- Use
localhost/profiles
if the repository site is also the site where the profiles will be applied
- Click save
- The repository and its profiles should be available for listing and applying - see Administration Interface for more information and screenshots