Loading...
 
Skip to main content

History: Jailroot_Demonstration

Source of version: 22

Copy to clipboard
            This profile sets-up a few categories, objects and perspectives to allow to test perspective switching and the jailroot feature.

!Global
{CODE(caption=>YAML)}
preferences:
 feature_categories: y
 feature_perspective: y
 feature_jquery_ui: y  #Need to manage perspectives on tiki-edit_perspective.php
 feature_blogs: y
 feature_forums: y
 feature_file_galleries: y
 feature_trackers: y
 feature_search: y
 feature_top_bar: y
permissions:
 Anonymous:
  allow: [ perspective_view ]
objects:
 -
  type: module
  ref: persp_switcher
  data:
   name: perspective
   position: right
   order: 1
   groups: [ Admins, Registered, Anonymous ]
 -
  type: module
  ref: category_listing
  data:
   name: categories
   position: right
   order: 2
   groups: [ Admins, Registered, Anonymous ]
 -
  type: category
  ref: tree_a
  data:
   name: A
   items:
    - [ wiki page, $aonly ]
    - [ forum, $foruma ]
    - [ forum, $foruma_and_b ]
    - [ file gallery, $fgaonly ]
    - [ blog, $aonlyblog ]
    - [ blog, $aandbblog ]
    - [ tracker, $trackera ]
 -
  type: category
  ref: tree_b
  data:
   name: B
   items:
    - [ wiki page, $bonly ]
    - [ forum, $forumb ]
    - [ forum, $foruma_and_b ]
    - [ file gallery, $fgbonly ]
    - [ blog, $bonlyblog ]
    - [ blog, $aandbblog ]
 -
  type: category
  ref: a1
  data:
   name: a1
   parent: $tree_a
   items:
    - [ wiki page, $o1 ]
    - [ wiki page, $oax ]
    - [ file gallery, $fg1 ]
    - [ file gallery, $fgax ]
 -
  type: category
  ref: a2
  data:
   name: a2
   parent: $tree_a
   items:
    - [ wiki page, $o2 ]
    - [ wiki page, $oax ]
    - [ file gallery, $fg2 ]
    - [ file gallery, $fgax ]
 -
  type: category
  ref: a3
  data:
   name: a3
   parent: $tree_a
   items:
    - [ wiki page, $o3 ]
    - [ wiki page, $oax ]
    - [ file gallery, $fg3 ]
    - [ file gallery, $fgax ]
 -
  type: category
  ref: b1
  data:
   name: b1
   parent: $tree_b
   items:
    - [ wiki page, $o1 ]
    - [ wiki page, $obx ]
    - [ file gallery, $fg1 ]
    - [ file gallery, $fgbx ]
 -
  type: category
  ref: b2
  data:
   name: b2
   parent: $tree_b
   items:
    - [ wiki page, $o2 ]
    - [ wiki page, $obx ]
    - [ file gallery, $fg2 ]
    - [ file gallery, $fgbx ]
 -
  type: category
  ref: b3
  data:
   name: b3
   parent: $tree_b
   items:
    - [ wiki page, $o3 ]
    - [ wiki page, $obx ]
    - [ file gallery, $fg3 ]
    - [ file gallery, $fgbx ]
{CODE}

!Data
{CODE(caption=>YAML)}
objects:
 -
  type: wiki_page
  ref: o1
  data:
   name: A1 and B1
   content: ContentA1 ContentB1
 -
  type: wiki_page
  ref: o2
  data:
   name: A2 and B2
   content: ContentA2 ContentB2
 -
  type: wiki_page
  ref: o3
  data:
   name: A3 and B3
   content: ContentA3 ContentB3
 -
  type: wiki_page
  ref: oax
  data:
   name: A1 A2 A3
   content: ContentA1 ContentA2 ContentA3
 -
  type: wiki_page
  ref: obx
  data:
   name: B1 B2 B3
   content: ContentB1 ContentB2 ContentB3
 -
  type: wiki_page
  ref: aonly
  data:
   name: A
   content: ContentA
 -
  type: wiki_page
  ref: bonly
  data:
   name: B
   content: ContentB
{CODE}

{CODE(caption=>YAML)}
objects:
 -
  type: blog
  ref: aonlyblog
  data:
   title: A
 -
  type: blog
  ref: bonlyblog
  data:
   title: B
 -
  type: blog
  ref: aandbblog
  data:
   title: A and B
{CODE}

{CODE(caption=>YAML)}
objects:
 -
  type: forum
  ref: foruma
  data:
   name: A
 -
  type: forum
  ref: forumb
  data:
   name: B
 -
  type: forum
  ref: foruma_and_b
  data:
   name: A and B
{CODE}

{CODE(caption=>YAML)}
objects:
 -
  type: file_gallery
  ref: fg1
  data:
   name: A1 and B1
   flags: [ public, visible ]
 -
  type: file_gallery
  ref: fg2
  data:
   name: A2 and B2
   flags: [ public, visible ]
 -
  type: file_gallery
  ref: fg3
  data:
   name: A3 and B3
   flags: [ public, visible ]
 -
  type: file_gallery
  ref: fgax
  data:
   name: A1 A2 A3
   flags: [ public, visible ]
 -
  type: file_gallery
  ref: fgbx
  data:
   name: B1 B2 B3
   flags: [ public, visible ]
 -
  type: file_gallery
  ref: fgaonly
  data:
   name: A
   flags: [ public, visible ]
 -
  type: file_gallery
  ref: fgbonly
  data:
   name: B
   flags: [ public, visible ]
{CODE}

{CODE(caption=>YAML)}
objects:
 -
  type: tracker
  ref: trackera
  data:
   name: Bugs
   description: Standard bug tracker
   default_status: open
   show: [ status, creation_date, modification_date, list_modification_date ]
   allow: [ comments, attachments ]
 -
  type: tracker_field
  ref: bug_tracker_summary
  data:
   name: Summary
   tracker: $trackera
   type: text_field
   flags: [ searchable, public, list, mandatory, link ]
   order: 10
 -
  type: tracker_field
  ref: bug_tracker_priority
  data:
   name: Priority
   tracker: $trackera
   type: dropdown
   options: 5 (high),4,3,2,1 (low)
   flags: [ searchable, public, list ]
   order: 20
{CODE}
!Perspectives

Here we have a few examples of overriding various preferences like Site title, theme, etc.

Category jail is important as well.

{CODE(caption=>YAML)}
objects:
 -
  type: perspective
  data:
   name: A
   preferences:
    category_jail: $tree_a
    sitetitle: This is perspective A
 -
  type: perspective
  data:
   name: B
   preferences:
    category_jail: $tree_b
    sitetitle: This is perspective B
    theme: thenews.css
 -
  type: perspective
  data:
   name: A1
   preferences:
    category_jail: $a1
    theme: feb12.css
 -
  type: perspective
  data:
   name: A2
   preferences:
    category_jail: $a2
    theme: darkroom.css
 -
  type: perspective
  data:
   name: A3
   preferences:
    category_jail: $a3
 -
  type: perspective
  data:
   name: B1
   preferences:
    category_jail: $b1
 -
  type: perspective
  data:
   name: B2
   preferences:
    category_jail: $b2
 -
  type: perspective
  data:
   name: B3
   preferences:
    category_jail: $b3
 -
  type: perspective
  data:
   name: 1
   preferences:
    category_jail: $profileobject:a1$,$profileobject:b1$
 -
  type: perspective
  data:
   name: 2
   preferences:
    category_jail: $profileobject:a2$,$profileobject:b2$
 -
  type: perspective
  data:
   name: 3
   preferences:
    category_jail: $profileobject:a3$,$profileobject:b3$
 -
  type: perspective
  data:
   name: ALL
   preferences:
    category_jail: $profileobject:tree_a$,$profileobject:tree_b$
{CODE}


!Known bugs/limitations
http://dev.tikiwiki.org/wish2962

!Related links
*((dev:Deployment of Category Jail))
        

History

Information Version
Thu 16 of Sep, 2010 13:22 GMT-0000 Marc Laporte fixed 30
Tue 14 of Sep, 2010 02:13 GMT-0000 Marc Laporte cleaner 29
Thu 09 of Sep, 2010 18:04 GMT-0000 Marc Laporte speadsheets would be nice too 28
Mon 18 of Jan, 2010 05:43 GMT-0000 Nelson Ko try again pass category_jail as array 27
Fri 15 of Jan, 2010 16:38 GMT-0000 Marc Laporte [rollback version 24] 26
Mon 18 of Jan, 2010 04:48 GMT-0000 Nelson Ko Change jail pre to array formatf 25
Fri 15 of Jan, 2010 16:38 GMT-0000 Marc Laporte 24
Fri 15 of Jan, 2010 16:32 GMT-0000 Marc Laporte 23
Fri 15 of Jan, 2010 16:28 GMT-0000 Marc Laporte 22
Fri 15 of Jan, 2010 16:10 GMT-0000 Marc Laporte adding some themes to test 21
Sat 09 of Jan, 2010 20:23 GMT-0000 Marc Laporte typo 20
Sat 09 of Jan, 2010 20:01 GMT-0000 Marc Laporte let's put something people will see 19
Sat 09 of Jan, 2010 19:13 GMT-0000 Marc Laporte 18
Sat 09 of Jan, 2010 14:36 GMT-0000 Marc Laporte 17
Sat 09 of Jan, 2010 14:12 GMT-0000 Marc Laporte for easy access to search in top bar 16
Sat 09 of Jan, 2010 14:00 GMT-0000 Marc Laporte adding some searchable text to test http://doc.tikiwiki.org/WYSIWTSN 15
Thu 06 of Aug, 2009 20:50 GMT-0000 Marc Laporte 14
Thu 06 of Aug, 2009 20:44 GMT-0000 Marc Laporte Adding trackerA 13
Tue 04 of Aug, 2009 13:16 GMT-0000 axold 12
Tue 04 of Aug, 2009 12:22 GMT-0000 axold 11
Tue 04 of Aug, 2009 11:56 GMT-0000 System Administrator 10
Tue 04 of Aug, 2009 11:54 GMT-0000 System Administrator 9
Tue 04 of Aug, 2009 10:57 GMT-0000 System Administrator 8
Tue 04 of Aug, 2009 11:08 GMT-0000 Jonny Bradley 7
Tue 04 of Aug, 2009 10:57 GMT-0000 System Administrator 6
  • «
  • 1 (current)
  • 2