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]
  • #226 / Nov 01, 2013 11:13pm

    micha8l's avatar

    micha8l

    19 posts

    Is it possible to add an attribute to the last segment and also to replace the href with #.

    E.g.,

    <div class="autocrumb">
        <a href="/">Home</a>
        <a href="/category">Category</a>
        <a href="#class=highlighted">Item</a>
    </div>

    The highlighted class can apply make it clear where the user is. There’s no need to link to page you’re already on, some say it’s also good for SEO too.

    Great helper btw

  • #227 / Dec 04, 2013 3:24am

    id    catename                   parent id
    1      Gối                            0
    2      Hello kitty                  0    
    3      Gối xinh                    1
    4      Hello kitty xinh          2

    base_url: http://localhost/shop

    my url:

    <a href="http://localhost/shop/san-pham/1/goi.html">http://localhost/shop/san-pham/1/goi.html</a>
    <a href="http://localhost/shop/san-pham/2/hello-kitty.html">http://localhost/shop/san-pham/2/hello-kitty.html</a>
    <a href="http://localhost/shop/san-pham/3/goi-xinh.html">http://localhost/shop/san-pham/3/goi-xinh.html</a>
    <a href="http://localhost/shop/san-pham/4/hello-kitty-xinh.html">http://localhost/shop/san-pham/4/hello-kitty-xinh.html</a>

    i want to display breadcrumb:

    <a href="http://localhost/shop/san-pham/1/goi.html">http://localhost/shop/san-pham/1/goi.html</a>          -> Trang chủ // Sản phẩm // Gối
    <a href="http://localhost/shop/san-pham/2/hello-kitty.html">http://localhost/shop/san-pham/2/hello-kitty.html</a>          -> Trang chủ // Sản phẩm // Hello kitty
    <a href="http://localhost/shop/san-pham/3/goi-xinh.html">http://localhost/shop/san-pham/3/goi-xinh.html</a>            -> Trang chủ // Sản phẩm // Gối // Gối xinih
    <a href="http://localhost/shop/san-pham/4/hello-kitty-xinh.html">http://localhost/shop/san-pham/4/hello-kitty-xinh.html</a>  -> Trang chủ // Sản phẩm // Hello kitty // Hello kitty xinh

    Please help me!

  • #228 / Jan 13, 2014 10:40pm

    aherus

    2 posts

    please help me, i have like in breadcrumb http://localhost/ci_final/?admin/submenu/
    i want remove ?, please help me!

    I know that is a old post, but if someone looking for a solution to remove this ‘?’ and use enable_query_strings = TRUE in app, just add to breadcrump config file:

    $config['enable_query_strings'] = FALSE;

    but keep it in mind, that u can still use enable_query_strings=TRUE in CI config file.

  • #229 / Feb 18, 2014 1:10pm

    ardinotow's avatar

    ardinotow

    162 posts

    id    catename                   parent id
    1      Gối                            0
    2      Hello kitty                  0    
    3      Gối xinh                    1
    4      Hello kitty xinh          2

    base_url: http://localhost/shop

    my url:

    <a href="http://localhost/shop/san-pham/1/goi.html">http://localhost/shop/san-pham/1/goi.html</a>
    <a href="http://localhost/shop/san-pham/2/hello-kitty.html">http://localhost/shop/san-pham/2/hello-kitty.html</a>
    <a href="http://localhost/shop/san-pham/3/goi-xinh.html">http://localhost/shop/san-pham/3/goi-xinh.html</a>
    <a href="http://localhost/shop/san-pham/4/hello-kitty-xinh.html">http://localhost/shop/san-pham/4/hello-kitty-xinh.html</a>

    i want to display breadcrumb:

    <a href="http://localhost/shop/san-pham/1/goi.html">http://localhost/shop/san-pham/1/goi.html</a>          -> Trang chủ // Sản phẩm // Gối
    <a href="http://localhost/shop/san-pham/2/hello-kitty.html">http://localhost/shop/san-pham/2/hello-kitty.html</a>          -> Trang chủ // Sản phẩm // Hello kitty
    <a href="http://localhost/shop/san-pham/3/goi-xinh.html">http://localhost/shop/san-pham/3/goi-xinh.html</a>            -> Trang chủ // Sản phẩm // Gối // Gối xinih
    <a href="http://localhost/shop/san-pham/4/hello-kitty-xinh.html">http://localhost/shop/san-pham/4/hello-kitty-xinh.html</a>  -> Trang chủ // Sản phẩm // Hello kitty // Hello kitty xinh

    Please help me!

    Hi,
    You can use this line on your controller:

    $param = $this->uri->segment(2);
    if ($param == 1 || $param == 2) {
       $replace_value = ' ';
    } elseif ($param == 3) {
       $replace_value = ' Gối';
    } elseif ($param == 4) {
       $replace_value = 'Hello kitty';
    }
    $this->config->load('breadcrumb');
    $this->config->set_item('replacer_embed', array($param=>$replace_value));

    Yeah, sure those code only show you a simple logic but I hope you catch the idea

  • #230 / Sep 07, 2014 4:30pm

    antonradev

    1 posts

    Hello!

    I have this kind of URL:

    /posts/view/post-slug

    and the Breadcrumb shows

    Home -> Post Slug

    but my post title is something different like “This is the post”

    and instead of

    Home -> Post Slug

    .. i need

    Home -> This is the post

    Is this possible?

    Thank you!

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

ExpressionEngine News!

#eecms, #events, #releases