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]
  • #151 / Jun 17, 2011 6:41am

    jacobson

    56 posts

    Hello, very nice helper 😊 Is there a possibility of setting image instead of home ?

  • #152 / Jun 17, 2011 6:43am

    Ben Swinburne

    15 posts

    @jacobson

    Could you use

    // in config/breadcrumb.php
    $config['set_home'] = '/path/to/your/image.jpg';

    Or

    // in config/breadcrumb.php
    $config['set_home'] = "Home";
    $config['attr_home'] = array('class' => 'home_breadcrumb');
    
    // in your stylesheet
    .home_breadcrumb{url(/path/to/your/image.jpg) no-repeat 0 0 transparent;width:20px;height:0px;padding-top:20px;overflow:hidden;float:left;}

    Ben

  • #153 / Jul 04, 2011 6:59am

    newuser2

    6 posts

    First off, this helper is fantastic!

    I have a question regarding stripping out a url segment completely. Lets say I have this url:

    /views/tutorials/march/title

    How can I remove the /views/ segment from all of the urls in the breadcrumb trail?

    I read in the comments that this is possible by hardcoding something in like this:

    $config['replacer'] = array('tutorials'=>'/tutorials')

    but there will be multiple values in place of ‘tutorials’ in other instances, so hardcoding it in won’t be feasible.
    Thanks

    EDIT:

    I added some functionality to the original to get this to work at line 281:

    $add_this = '';
                                $new = explode("/", $str_link[$key]);
                                foreach ($new as $key => $value) {
                                    if ($value != 'view') {
                                        $add_this.=$value . '/';
                                    }
                                }

    I hard coded mine in for right now for testing, but I will uploaded something more formal later today. Essentially this strips a certain URL segment from the breadcrumbs anchor.

  • #154 / Jul 09, 2011 12:52pm

    vbsaltydog

    278 posts

    I must be missing something here. I just installed this helper and all it does is show the URL as a delimited string with links.

    This is not a breadcrumb. A breadcrumb is a trail of how you got to the current page so you can backtrack.

    I do not see this helper as a “breadcrumb” generator.

  • #155 / Jul 26, 2011 12:24am

    ardinotow

    162 posts

    @vbsaltydog. That this helper utilizing CI’s URL as breadcrumb is not wrong. But IMHO, this helper can be a breadcrumb generator, it just about the way how you choose a breadcrumb format.

  • #156 / Jul 28, 2011 10:19am

    ndrandloop

    5 posts

    Hi ardinotow, thanks for this fantastic helper.
    I’m using the last version 6.11.1 on CI 1.7.3.
    I cannot delete index.php from breadcrumb’s url while i’m using mod rewrite to delete index.php from site url.

    You can view an example ah this url (http://dev.pugliadinotte.net/locali/scheda/divinae-follie/1.htm), watch after institutional menu (home > locali > discoteche).

    I hope you will can help me.
    Thanks!

  • #157 / Jul 29, 2011 12:22pm

    ardinotow

    162 posts

    Hi ardinotow, thanks for this fantastic helper.
    I’m using the last version 6.11.1 on CI 1.7.3.
    I cannot delete index.php from breadcrumb’s url while i’m using mod rewrite to delete index.php from site url.

    You can view an example ah this url (http://dev.pugliadinotte.net/locali/scheda/divinae-follie/1.htm), watch after institutional menu (home > locali > discoteche).

    I hope you will can help me.
    Thanks!

    Open your config.php (application/config/config.php). Look on value

    $config['index_page'] = "index.php";
      should be changed to
    $config['index_page'] = "";

    . Hope that solve your problem.

  • #158 / Aug 01, 2011 3:47pm

    jhanson

    1 posts

    Very nice helper.  Thank you and where the heck can I donate to such a nice helper that saved me a ton of time by not having to write my own!

    KUDOS

  • #159 / Aug 02, 2011 8:08am

    ndrandloop

    5 posts

    Hi ardinotow, thanks for this fantastic helper.
    I’m using the last version 6.11.1 on CI 1.7.3.
    I cannot delete index.php from breadcrumb’s url while i’m using mod rewrite to delete index.php from site url.

    You can view an example ah this url (http://dev.pugliadinotte.net/locali/scheda/divinae-follie/1.htm), watch after institutional menu (home > locali > discoteche).

    I hope you will can help me.
    Thanks!

    Open your config.php (application/config/config.php). Look on value

    $config['index_page'] = "index.php";
      should be changed to
    $config['index_page'] = "";
    . Hope that solve your problem.

    Oh yessssssssss!
    I’m sorry…I’m stupid!

    Thanks Ardinotow!

  • #160 / Aug 21, 2011 12:26am

    xtremer360

    349 posts

    Great helper. I uploaded and works great however as soon as I login and am at my control panel the bread crumb says Home > Cpanel instead I want it to say Dashboard at the start. What do I need to change?

  • #161 / Aug 21, 2011 1:55am

    ardinotow

    162 posts

    @xtremer360, at config/breadcrumb.php you may try using

    $config['replacer'] = array('cpanel' => 'dashboard');
    $config['set_home'] = "";
  • #162 / Aug 21, 2011 3:00am

    xtremer360

    349 posts

    Worked great thanks!!!!

  • #163 / Aug 22, 2011 1:16pm

    shahcloud

    4 posts

    Wow great, this is the easiest breadcrumb ever! 😊

  • #164 / Aug 23, 2011 5:08am

    greebo

    4 posts

    Hello,

    Thanks for the fantastic helper.

    Is it possible to add /index to the breadcrumb URLs?

    For example with my url suffix of .html:

    Currently autocrumb is pointing to /widgets/blue.html
    However is it possible to change this to /widgets/blue/index.html

    Second part of this question, is it possible to selectively do the above?
    /widgets/blue/104121421.html does not change to /widgets/blue/104121421/index.html

  • #165 / Aug 23, 2011 6:37am

    ardinotow

    162 posts

    Very nice helper.  Thank you and where the heck can I donate to such a nice helper that saved me a ton of time by not having to write my own!

    KUDOS

    Thanks for your good appreciation. Paypal donation link is available on first page 😊

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

ExpressionEngine News!

#eecms, #events, #releases