Loading...
 
Skip to main content

History: Profile_Repository_Profile

Source of version: 15 (current)

Copy to clipboard
            ! Profile Repository

You like profiles? Want to create your own? This profile will set-up your Tiki install to act as a profile repository. This profile uses the ((wiki handler)), ((Category handler)) and ((permission management)). (Tested, working on 4.x and 5.0)

{REMARKSBOX(type=tip, title=Tip)} See ((Custom Repository)) for full instructions, including how to manually reproduce the steps below if this installer isn't working for you. {REMARKSBOX}

__Rewrite rules should be activated on your host.__

In order to simplify adding your profile repository to the profile list, you will also need to add a line to your rewrite rules. This profile will include this page: ((Profile_Repository_Rewrite_Configuration))

If you can't have have Rewrite Rules, it can still work but with the long URLs.

{CODE(caption=>YAML)}
instructions: Profile_Repository_Rewrite_Configuration
preferences:
 enable: [ feature_wiki, feature_categories, feature_wiki_export ]
permissions:
 Anonymous:
  allow: [ export_wiki, view_category ]
 Registered:
  allow: [ export_wiki, view_category ]
objects:
 -
  type: wiki_page
  data:
   name: Profile_Repository_Rewrite_Configuration
   content: wikicontent:Profile_Repository_Rewrite_Configuration
 -
  type: category
  ref: profile_category
  data:
   name: My Profiles
{CODE}

Once you have applied the profile, simply put wiki pages in the newly created "My Profiles" category and you'll be able to use them.