Changeset 19756
- Timestamp:
- 06/30/09 22:59:24 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/csNavigationPlugin/trunk/README
r19619 r19756 9 9 ----------- 10 10 11 * A navigation object to manage multiple trees. All navigation is located under a single root to represent the sitemap 11 * A navigation object to manage multiple trees. 12 * Automated active state / expanding of children / route detection 13 * Drive your navigation using a navigation.yml file or pull from your database, or both 12 14 * Navigation trees can be segmented by level and iteration (starting root, number of levels drilled down) 13 * Automated active handling / expanding of children / route detection 14 * Drive your navigation using a navigation.yml file or pull from your database, or both 15 * A singleton who manages breadcrumbs. By default, a root item is present (text: Home, uri: @homepage) 16 * A component who display the breadcrumbs 15 * A singleton who manages breadcrumbs. Generated by the navigation, or over-ridable 16 * Auto caching for improved efficiency 17 * Ability to easily add dynamic branches onto your navigation (i.e. categories or other objects) 17 18 18 19 License … … 144 145 branch: item2 # the branch attribute locks everything outside the branch indicated 145 146 expanding: 146 default: on 147 default: on 147 148 level: 2 148 149 … … 150 151 convert your YAML navigation file to your database. This allows you to build-all-reload 151 152 and reconstruct your navigation on the fly. You can also set the import settings so 152 the core navigation cannot be changed by the user, or certain branches cant be changed 153 the core navigation cannot be changed by the user, or certain branches cant be changed (in development). 153 154 154 Setting and expanding level will determine how your navigation is displayed by default.155 Setting and expanding level (in development) will determine how your navigation is displayed by default. 155 156 You can chose to have no items expanded until they are active, or expand out to a certain level. 156 157 … … 160 161 2. Add administration module for the backend 161 162 3. Add "attributes" field for configurable HTML attributes 163 4. Add "locked" functionality to prevent branches from being moveable 164 5. Add simple content-coupling 162 165 163 166 === 2009-03-29 | 0.9.1 beta === plugins/csNavigationPlugin/trunk/lib/csNavigationHelper.class.php
r19614 r19756 30 30 { 31 31 //Build Database from Existing navigation.yml file 32 self::initDatabaseFromYaml($navigation); 33 } 34 //Pull from database, create navigation structure 35 $tree = self::getNavigationTreeFromDatabase(); 32 $tree = self::initDatabaseFromYaml($navigation); 33 } 34 else 35 { 36 //Pull from database, create navigation structure 37 $tree = self::getNavigationTreeFromDatabase(); 38 } 36 39 } 37 40 else … … 94 97 static function initDatabaseFromYaml($navigation) 95 98 { 96 self::getNavigationTreeFromYaml($navigation, true);99 return self::getNavigationTreeFromYaml($navigation, true); 97 100 } 98 101 … … 147 150 foreach ($arr as $key => $value) 148 151 { 152 $root->refresh(); 153 149 154 if(is_array($value)) 150 155 {