Author: tkoomzaaskz
Date: 2010-09-06 15:01:21 +0200 (Mon, 06 Sep 2010)
New Revision: 30838

Modified:
   plugins/tdCorePlugin/trunk/README
   plugins/tdCorePlugin/trunk/package.xml
Log:
[td][core] improved breadcrumbs readme

Modified: plugins/tdCorePlugin/trunk/README
===================================================================
--- plugins/tdCorePlugin/trunk/README   2010-09-06 12:44:11 UTC (rev 30837)
+++ plugins/tdCorePlugin/trunk/README   2010-09-06 13:01:21 UTC (rev 30838)
@@ -77,10 +77,54 @@
 Breadcrumbs
 ===========
 
-Enable the tdBreadcrumb module:
+This part is based on _isicsBreadcrumbsPlugin_. It includes a singleton 
managing
+breadcrumb items. Displaying breadcrumbs is done using a component. At first,
+enable the tdBreadcrumb module:
 
     enabled_modules: [ ..., tdBreadcrumb ]
 
+Define the path in your templates:
+
+    [plain]
+    <?php $breadcrumbs->addItem('My action', 'myModule/myAction') ?>
+
+    => Home > My action
+
+If the action is deeper:
+
+    [plain]
+    <?php $breadcrumbs->addItem('My previous action', 
'myModule/myPreviousAction') ?>
+    <?php $breadcrumbs->addItem('My action', 'myModule/myAction') ?>
+
+    => Home > My previous action > My action
+
+Define the path in your actions:
+
+    [plain]
+    public function executeMyAction()
+    {
+      tdBreadcrumb::getInstance()->addItem('My action', 'myModule/myAction');
+
+    => Home > My action
+
+Include the breadcrumbs component (in the layout for instance):
+
+    [plain]
+    <p id="breadcrumbs">
+      You are here :
+      <?php include_component('tdBreadcrumb', 'show') ?>
+    </p>
+
+You can set your own root:
+
+    [plain]
+    <p id="breadcrumbs">
+      You are here :
+      <?php include_component('tdBreadcrumb', 'show', array(
+        'root' => array('text' => 'Home', 'uri' => '@myHomepage')
+      )) ?>
+    </p>
+
 Random Data Generator
 =====================
 

Modified: plugins/tdCorePlugin/trunk/package.xml
===================================================================
--- plugins/tdCorePlugin/trunk/package.xml      2010-09-06 12:44:11 UTC (rev 
30837)
+++ plugins/tdCorePlugin/trunk/package.xml      2010-09-06 13:01:21 UTC (rev 
30838)
@@ -10,11 +10,11 @@
     <email>[email protected]</email>
     <active>yes</active>
   </lead>
-  <date>2010-09-06</date>
+  <date>2010-09-07</date>
   <time>11:00:00</time>
   <version>
-    <release>0.2.0</release>
-    <api>0.2.0</api>
+    <release>0.2.1</release>
+    <api>0.2.1</api>
   </version>
   <stability>
     <release>beta</release>
@@ -170,8 +170,8 @@
 
     <release>
       <version>
-        <release>0.2.0</release>
-        <api>0.2.0</api>
+        <release>0.2.1</release>
+        <api>0.2.1</api>
       </version>
       <stability>
         <release>beta</release>
@@ -181,7 +181,8 @@
       <date>2010-09-06</date>
       <license>MIT</license>
       <notes>
-        * added breadcrumb managing module
+        * added static pages model and module
+        * improved readme for breadcrumbs
       </notes>
     </release>
 

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to