ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Autocrumb - Lightweight Breadcrumb Helper (ver.12.05.1)

December 09, 2009 5:58pm

Subscribe [78]
  • #181 / Jan 03, 2012 3:38pm

    nlissau

    1 posts

    Excellent! Thank you very much. Easy installation and easy understandable code.

  • #182 / Jan 05, 2012 7:19am

    ardinotow

    162 posts

    @Guardian,
    Sorry for this late. I don’t understand why my gmail not received forum notification and this is not the first 😖. Okay back to the topic. I try to make that happen on new release, ASAP.

    @hottiger,
    Sorry, it can’t but you can change ‘bar’ url to any url using $config[‘replacer’] and from that url you can redirect it to /bar/8. That’s what I can suggest for now 😊

    @nlissau,
    Thanks

  • #183 / Jan 05, 2012 5:25pm

    ardinotow

    162 posts

    Version 12.01.1 is now available on bitbucket

    What’s new:
    1. Now, we don’t have to declare our link name first to use multilanguage, example:
      URL = http://localhost/arstock/warehouse/stocks/search_direct
      $config[‘replacer’] = array();
      breadcrumb_lang.php :
        lang[‘warehouse’] = ‘Gudang’;
        lang[‘stocks’] = ‘Stok’;
      So, your breadcrumb now will be : Home > Gudang > Stok > Search Direct

    2. Partial replacer support multilanguage too. Example:
      For link name read_tr, you can use this config
      $config[‘partial_replace’] = array(‘_tr’ => ‘transaction’, ‘read_’=>‘read’);
      Your breadcrumb_lang.php should have these variables:
      $lang[‘transaction’] = ‘Transaksi’;
      $lang[‘read’] = ‘Baca’;
      Your breadcrumb will show: Transaksi Baca

  • #184 / Jan 06, 2012 4:05am

    Guardian

    5 posts

    Thanks. Works like a charm 😊

  • #185 / Jan 15, 2012 3:15am

    Shams Karamat

    3 posts

    Great script 😊. Can we assign same replacer differently for different pages?

    For example. If I have to replace ‘text’ with ‘Beautiful Text’ on all pages… Simply I will replace in the config file.

    But If I have to replace ‘text’ with ‘Bad Text’ on one page and ‘text’ with ‘Beautiful Text’ on other page what should I do?

    Thanks in Advance.

  • #186 / Jan 15, 2012 4:26am

    ardinotow

    162 posts

    Great script 😊. Can we assign same replacer differently for different pages?

    For example. If I have to replace ‘text’ with ‘Beautiful Text’ on all pages… Simply I will replace in the config file.

    But If I have to replace ‘text’ with ‘Bad Text’ on one page and ‘text’ with ‘Beautiful Text’ on other page what should I do?

    Thanks in Advance.

    On the page that you need a special replacer name you can write this on that page Controller:

    $this->config->load('breadcrumb');
    $this->config->set_item('replacer', array('mytext'=>'Bad Text'));

    So, if you have specified mytext on $config[‘replacer’] i.e:

    $config['replacer'] = array ('mytext'=>'Beautiful Text')

    then that value will be change to ‘Bad Text’.
    For more explaining you can refer to CI user guide

  • #187 / Jan 15, 2012 4:33am

    Shams Karamat

    3 posts

    Perfect 😊 Thanks for your quick reply.

  • #188 / Jan 28, 2012 10:08pm

    seongbae

    1 posts

    Hi ardinotow,

    First of all, thank you for a great helper library.

    I have one question.  I am using your autocrumb for a clothing website.  The website has many categories and subcategories.  Because the website can change the levels of categories, I made one method called category() in a controller that handles all categories.  For example, I have following category structure:

    Category 1
    - Subcategory 1
    —Sub-subcategory 1
    —Sub-subcategory 2
    - Subcategory 2
    Category 2

    Because displaying any level of categories is done through category() method, when I get to sub-subcategory 1, the breadcrumb displays “Home > Category” and not “Home > Category 1 > Subcategory 1 > Sub-subcategory 1” if you know what I mean.

    Is there something I can do in category() method to add or remove to the breadcrumb?

    Thank you.

    Seong Bae

  • #189 / Jan 31, 2012 1:19am

    ardinotow

    162 posts

    Hi ardinotow,

    First of all, thank you for a great helper library.

    I have one question.  I am using your autocrumb for a clothing website.  The website has many categories and subcategories.  Because the website can change the levels of categories, I made one method called category() in a controller that handles all categories.  For example, I have following category structure:

    Category 1
    - Subcategory 1
    —Sub-subcategory 1
    —Sub-subcategory 2
    - Subcategory 2
    Category 2

    Because displaying any level of categories is done through category() method, when I get to sub-subcategory 1, the breadcrumb displays “Home > Category” and not “Home > Category 1 > Subcategory 1 > Sub-subcategory 1” if you know what I mean.

    Is there something I can do in category() method to add or remove to the breadcrumb?

    Thank you.

    Seong Bae

    Seong Bae, you can review my answer on Shams Karamat’s question above and also refer to add new crumbs on config/breadcrumb.php.

  • #190 / Mar 20, 2012 9:25am

    ludo31

    66 posts

    Hello ; First of all , I would ike to thank you for this work !!

    I would like to ask you how I must do in this case :

    mu home page is (at this stage I don’t show breadcrumb

    http://localhost/MonSite/index.php/site

    so when I click on a link Men for example (always at this page ) :

    <a href="http://&lt?php" title="Homme">Men</a>

    the url is

    http://localhost/MonSite/index.php/client/gestionHomme

    and breadcrumb is exact :

    Home> Men

    and when I would like to know more details about shoes men via by this link in view :

    <a href="http://localhost/MonSite/index.php/client/gestionChaussure/<?php echo $tableau[$j][0];  ?>">

    the url is

    <a href="http://localhost/MonSite/index.php/client/gestionChaussure/89">http://localhost/MonSite/index.php/client/gestionChaussure/89</a>

    and breadcrumb

    Home> Shoes

    I think it is normal because in site.php (controller file ) I have
    2 functions

    public function gestionHomme(){...}
    public function gestionChaussure(){...}

    and When we run at gestionHomme function the bread crumb become

    Home> Men

    and When we run at gestionChaussure function the bread crumb become

    Home> Shoes

    but I would like something like that when it’s about shoes details (gestionChaussure)

    Home > Men > Shoes


    thanks

  • #191 / Mar 25, 2012 1:05pm

    ludo31

    66 posts

    please , I need your help ;
    I know how to change : the name of Url

    so in my url I have something like that :

    <a href="http://localhost/MonSite/index.php/client/getChaussureGenreStyle/1/2/">http://localhost/MonSite/index.php/client/getChaussureGenreStyle/1/2/</a>

    so I hide client and getChaussureGenreStyle

    $config['exclude'] = array('client','getChaussureGenreStyle');

    and I have

    Home > 1 > 2

    now the problem is I can’t change the name of those number I try to make like this
    for example for 1 I would replace by Men and 2 by Baskets
    so at the final I have something like that with link

    Home > Men >Basket

    I try like this for number 1

    $config['replacer'] = array('1' => array('index.php/client/getChaussureGenreStyle/1| Men'));

    but it can’t change

    and for another configuration :

    $config['hide_number'] = FALSE;
    
    $config['hide_number_on_last_segment'] = TRUE;

    I hide the last segment because the pagination number at last !!


    Did you have an idea please ??

    thanks

  • #192 / Mar 29, 2012 5:37pm

    ardinotow

    162 posts

    @ludo31, you can’t replace number with anything at a moment. But, I’ll try to change this behaviour as soon as possible.

  • #193 / Mar 30, 2012 3:04am

    ludo31

    66 posts

    thanks , I solve the problem !! in order to change it and passing it in url
    thnaks

  • #194 / Apr 01, 2012 2:20am

    ardinotow

    162 posts

    New Version 12.02.1
    What’s new ?
    1. Number can be replaced
    2. Replacer can be overwrites with replacer_embed on every controller

    Note: Please see config/breadcrumb.php for more description and examples.

    Cheers
    Ardinoto Wahono
    ardinoto.blogspot.com

  • #195 / Apr 01, 2012 3:35pm

    ludo31

    66 posts

    Hello ;
    another question :
    I try to change the Home by the Icon

    in breadcrumb.php
    
    $config['set_home'] = '../../image/supplement/home.png';

    here is a discussion about that
    http://ellislab.com/forums/viewthread/137949/P150

    And I try the second method but the problem is word Home still appear and image disapear after when we return to the page

    $config['set_home'] = "Home";
    
    /**
     * ------------------------
     * Config: attribute home
     * ------------------------
     * Default value:
     * $config['attr_home'] = array();
     * 
     * Apply attribute to initial or home link, e.g: 
     * $config['attr_home'] = array('style' => 'text-decoration:none', 'class' = 'home_breadcrumb');
     * Only work if unlink_home is set to FALSE
     */
    $config['attr_home'] = array('class' => 'home_breadcrumb');
    
    in css 
    .home_breadcrumb{
        background-image: url(../image/supplement/home.png);
        background-repeat: no-repeat;
       
    }

    thanks

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases