Loading...
 
Skip to main content

History: Profile dependencies

Source of version: 9 (current)

Copy to clipboard
            Profile dependencies can be used to build a large profile out of smaller "mini" or "sub" profiles. For example, if you want to have a more modular version of the ((Company Intranet)) profile you can use dependencies to include the blog configuration, and then use that same blog configuration in another profile.

!!Dependencies Syntax

{CODE(caption="MyConfigurationRepositoryProfile" wrap="1" colors="yaml")}
{CODE(caption=>YAML)}
dependencies: # Could also be called dummy
 - $profiles.tiki.org:BugTrackerProfile:bug_tracker
 - $profiles.tiki.org:ClientManagementProfile:client_tracker
 - $profiles.tiki.org:SampleDataProfile:sample_page
{CODE}
{CODE}

By installing the ''MyConfigurationRepositoryProfile'' profile, the following profiles would be installed:

# MyConfigurationRepositoryProfile (everything on the original page.)
# BugTrackerProfile
# ClientManagementProfile
# CategoryTreeProfile (if this profile is referenced in ClientManagementProfile for example)
# SampleDataProfile

!!Current Limitations
*Dependencies need to be __all in one YAML block__
*The referenced profiles __need to be named without spaces or the words must be joined together using underscore__ (no spaces or dashes, ex: User_Tracker)
*If you develop a profile with dependencies, please note that newly added dependencies where the referenced profiles contain __profile requests__ (for user input) may not appear until you freshen and re-install your database
*When there is __anything changed__ in the dependent profile, it __is not re-applied__ after doing the "Forget and Re-Apply" action (only newly added dependencies are applied)

!!Branching
See also ((Branching)), which is a way to insert contents of other YAML files (which need not to be complete profiles) within a profile.

        

History

Information Version
Tue 20 of Jun, 2017 11:45 GMT-0000 luciash d' being 🧙 typo 9
Tue 27 of Oct, 2015 15:48 GMT-0000 Nelson Ko Add link to Branching page 8
Tue 18 of Sep, 2012 21:10 GMT-0000 Marc Laporte Code Plugin modified by editor. 7
Mon 02 of Apr, 2012 01:22 GMT-0000 Greg Wheat Moved to documentation 6
Tue 14 of Sep, 2010 03:12 GMT-0000 Marc Laporte cleaner 5
Sat 28 of Aug, 2010 16:31 GMT-0000 luciash d' being 🧙 correction of the fact 4
Thu 26 of Aug, 2010 21:00 GMT-0000 luciash d' being 🧙 3
Thu 26 of Aug, 2010 18:33 GMT-0000 luciash d' being 🧙 2
Tue 06 of Apr, 2010 13:45 GMT-0000 idealpragmatist 1