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]
  • #106 / Dec 11, 2010 12:02am

    ardinotow

    162 posts

    Hi,

    I’m currently testing your breadcrumb solution and I wouldlike to know if you have a easy solution in order to load the breadcrumb parameters from a database ?

    best regards

    Here what I can suggest:
    1. Create a new table named autocrumb_config.
    2. Create fields with name same as config name. E.g: table fields: multilang, set_home, attr_home, etc.
    3. Create autocrumb_model that return all field value as array.
    4. Load autocrumb_model in breadcrumb_helper and create a variable that store all config value as array from the model.
    5. Change all this line $CI->config->item(‘autocrumb_config_item’) to something like $autocrumbs_config[‘autocrumb_config_item’].

    That’s all 😊

  • #107 / Dec 16, 2010 1:20pm

    Bainzy

    149 posts

    Using this for my project, really like it ... simple, flexible & best of all it works 😊 Thank you for the time and effort you have put into this.

  • #108 / Jan 01, 2011 7:48pm

    ajh_8

    2 posts

    This is great, thanks for this.

    I know it may sound daft, but is there a way to get rid of the Home link?

    Thanks in advance 😊

  • #109 / Jan 06, 2011 10:25pm

    Glazz

    170 posts

    I don’t understand how the multi language works for this =\

  • #110 / Jan 07, 2011 12:36am

    Glazz

    170 posts

    I got it working…

    But i think you need to rewrite the description, because it is a mess lool


    And btw, why don’t you make it so, if the $config[‘multilang’] is true, the function looks automatically on the language file, instead os us writing all the pages we want to be translated in the rewrite ?

    Edit:


    I found a little bug.

    When you have

    $config['unlink_last_segment'] = true;
    $config['hide_number'] = true;
    
    $config['hide_number_on_last_segment'] = true;


    And in your url you have a number, your last segment get’s the hiperlink..

    Ex:
    http://localhost/my/testing/url/1
    ->
    My > Testing > Url

    The Url get’s and anchor tag, and it shouldn’t..

  • #111 / Jan 11, 2011 11:34am

    ardinotow

    162 posts

    This is great, thanks for this.

    I know it may sound daft, but is there a way to get rid of the Home link?

    Thanks in advance 😊

    Just change set_home configuration to $config[‘set_home’] = “”;

  • #112 / Jan 11, 2011 12:46pm

    ardinotow

    162 posts

    I got it working…

    But i think you need to rewrite the description, because it is a mess lool

    Yeah, sorry for my english and lack of proper documentation. I think that an example on config file should be clear enough.

    And btw, why don’t you make it so, if the $config[‘multilang’] is true, the function looks automatically on the language file, instead os us writing all the pages we want to be translated in the rewrite ?

    Edit:


    I found a little bug.

    When you have

    $config['unlink_last_segment'] = true;
    $config['hide_number'] = true;
    
    $config['hide_number_on_last_segment'] = true;


    And in your url you have a number, your last segment get’s the hiperlink..

    Ex:
    http://localhost/my/testing/url/1
    ->
    My > Testing > Url

    The Url get’s and anchor tag, and it shouldn’t..

    I’ll work on this please be patient 😊

  • #113 / Feb 09, 2011 5:18am

    cahva

    662 posts

    Edit:


    I found a little bug.

    When you have

    $config['unlink_last_segment'] = true;
    $config['hide_number'] = true;
    
    $config['hide_number_on_last_segment'] = true;


    And in your url you have a number, your last segment get’s the hiperlink..

    Ex:
    http://localhost/my/testing/url/1
    ->
    My > Testing > Url

    The Url get’s and anchor tag, and it shouldn’t..

    I’ll work on this please be patient 😊

    Heres a quick fix:

    Find line:

    $uri_array_original = explode("/", $uri);

    Add this after that:

    $uri_array_cnt = count($uri_array_original);
    
    if (config_item('hide_number_on_last_segment') && isset($uri_array_original[$uri_array_cnt-1]) && is_numeric($uri_array_original[$uri_array_cnt-1]))
    {
        array_pop($uri_array_original);
    }
  • #114 / Feb 15, 2011 5:52pm

    oniadvanced

    5 posts

    Excellent script, really helpfull. Thanks a lot!

  • #115 / Feb 28, 2011 6:14am

    IAFYM

    4 posts

    Really nice helper, I like it.

    I do have one issue though that I can’t seem to find where to fix?—its not showing the first segment of the URL in the breadcrumb.

    For instance: “localhost/segment1/segment2” is only showing “Home > Segment2” anyway I can fix this?

    it is also not putting the correct links either, its linking the segment2 like this:
    localhost/segment2, I’m having to put in the replacer to correct it to add the correct link.

  • #116 / Mar 01, 2011 5:16pm

    Go-Trex

    21 posts

    Really nice helper, I like it.

    I do have one issue though that I can’t seem to find where to fix?—its not showing the first segment of the URL in the breadcrumb.

    For instance: “localhost/segment1/segment2” is only showing “Home > Segment2” anyway I can fix this?

    it is also not putting the correct links either, its linking the segment2 like this:
    localhost/segment2, I’m having to put in the replacer to correct it to add the correct link.

    I’ve got the same issue with the latest build of the helper in combination with CI2.0. In CI1.7 the latest helper has no problems with the first segment.

  • #117 / Mar 02, 2011 2:48pm

    Progressed

    6 posts

    Really nice helper, I like it.

    I do have one issue though that I can’t seem to find where to fix?—its not showing the first segment of the URL in the breadcrumb.

    For instance: “localhost/segment1/segment2” is only showing “Home > Segment2” anyway I can fix this?

    it is also not putting the correct links either, its linking the segment2 like this:
    localhost/segment2, I’m having to put in the replacer to correct it to add the correct link.

    I’ve got the same issue with the latest build of the helper in combination with CI2.0. In CI1.7 the latest helper has no problems with the first segment.

    niccceee…

    Got the same problem… i have really NO idea how to solve it.

    its
    http://localhost/phones/
    that gets routed to
    http://localhost/telefoons/

    but when i open a subpage like:
    http://localhost/telefoons/buitenland/
    it shows HOME > Buitenland

    is it because of the route?

    // EDIT

    no its not because of the route. every 1st segment is deleted from the breadcrumb.

  • #118 / Mar 05, 2011 10:48am

    ardinotow

    162 posts

    Hay guys, it’s weird that there is no notifications email about new post in this thread. I hope this is not too late for updating this helper 😊
    So, I just updated autocrumb to version 3.11.1 that solved CI 2 compatibility problem.

    What’s new ?
    1. Included cahva’s quick fix (http://ellislab.com/forums/viewreply/855097/).
    2. CI 2 and CI 1.x compatible. You need to configure $config[‘codeigniter_version’].
    3. Partial replacer.

    Here is the link: https://bitbucket.org/ardinotow/autocrumb/downloads

    Please give feedback guys. Thanks

  • #119 / Mar 05, 2011 11:26am

    IAFYM

    4 posts

    Hay guys, it’s weird that there is no notifications email about new post in this thread. I hope this is not too late for updating this helper 😊
    So, I just updated autocrumb to version 3.11.1 that solved CI 2 compatibility problem.

    What’s new ?
    1. Included cahva’s quick fix (http://ellislab.com/forums/viewreply/855097/).
    2. CI 2 and CI 1.x compatible. You need to configure $config[‘codeigniter_version’].
    3. Partial replacer.

    Here is the link: https://bitbucket.org/ardinotow/autocrumb/downloads

    Please give feedback guys. Thanks

    Hi, Thanks for the fix, this seems to be working great now.

  • #120 / Mar 09, 2011 6:25pm

    Go-Trex

    21 posts

    Hi Ardinotow,

    Thanks for your reply and fix it works like a charm now, keep up the good work!

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

ExpressionEngine News!

#eecms, #events, #releases