Development

Changeset 19756

You must first sign up to be able to contribute.

Changeset 19756

Show
Ignore:
Timestamp:
06/30/09 22:59:24 (4 years ago)
Author:
bshaffer
Message:

bug fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/csNavigationPlugin/trunk/README

    r19619 r19756  
    99----------- 
    1010 
    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  
    1214 * 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) 
    1718 
    1819License 
     
    144145        branch:      item2              # the branch attribute locks everything outside the branch indicated      
    145146      expanding: 
    146         default:            on 
     147        default:            on           
    147148        level:              2 
    148149 
     
    150151convert your YAML navigation file to your database.  This allows you to build-all-reload 
    151152and 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 
     153the core navigation cannot be changed by the user, or certain branches cant be changed (in development). 
    153154 
    154 Setting and expanding level will determine how your navigation is displayed by default. 
     155Setting and expanding level (in development) will determine how your navigation is displayed by default. 
    155156You can chose to have no items expanded until they are active, or expand out to a certain level. 
    156157 
     
    160161  2. Add administration module for the backend 
    161162  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 
    162165 
    163166=== 2009-03-29 | 0.9.1 beta === 
  • plugins/csNavigationPlugin/trunk/lib/csNavigationHelper.class.php

    r19614 r19756  
    3030        { 
    3131          //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        } 
    3639      } 
    3740      else 
     
    9497  static function initDatabaseFromYaml($navigation) 
    9598  { 
    96     self::getNavigationTreeFromYaml($navigation, true); 
     99    return self::getNavigationTreeFromYaml($navigation, true); 
    97100  } 
    98101   
     
    147150    foreach ($arr as $key => $value)  
    148151    { 
     152      $root->refresh(); 
     153       
    149154      if(is_array($value)) 
    150155      {