Autocrumb - Lightweight Breadcrumb Helper (ver.12.05.1) |
[eluser]kurtzawn[/eluser]
[quote author="ardinotow" date="1366606792"][quote author="ardinotow" date="1346141283"]Hi fatangel26, I will not give the detail but rather I will give you the logic. So, here it is: 1. The key concept is using replacer, please refer to bredcrumb config file. 2. Another concept is you can put replacer on controller (again, please read config). This mean you can process the replacer with database, i.e: Code: $this->config->load('breadcrumb'); Please let me know your progress...[/quote] @kurtzawn, I will ask in standard indonesian language, other member can use google translate Maaf saya baru balas. Bagian mana yang belum dimengerti? [/quote] ada YM gk sob? ane mau tanya2 nih... ane mau buat breadcrumbs seperti ini misal, product > main_kategori > sub_kategori : Product > Mobil > Suzuki biar di buat seperti itu gmn sob?
[eluser]Unknown[/eluser]
[quote author="mr_minh89" date="1347642689"]please help me, i have like in breadcrumb http://localhost/ci_final/?admin/submenu/ i want remove ?, please help me![/quote] I have the same problem.. Help please !! I want to remove the '?' SOLVED : Hi again, i found the solution, in my codeigniter configuration file "application/config/config.php" you have to set $config['enable_query_strings'] to false. you will have something like : $config['enable_query_strings'] = false; Hope it helps. And thanks a lot for the helper, works like a charm !
[eluser]Unknown[/eluser]
@arditonow can you explain where i can put in file like the script could be in file -> config/breadcrumb or etc .. :down: :red: i'm not understand how to do it, thank u :lol: btw are u indonesian? tolong dong ka, dimohon
[eluser]Unknown[/eluser]
Hi the AUTOCRUMBS creator, this is a very nice effort, i am using the latest version of it, but i feel something in it, there should be a css style on last breadcrumb like mostly clients wants this, i made a little effort, please check this to style the last breadcrumb, in config i set, [color=blue] /** * --------------------- * Config: Style * --------------------- * Default value: * $config['unlink_last_segment'] = FALSE; * * If set to TRUE then the last segment in breadcrumb will not have a style. */ //$config['style_last_segment'] = TRUE; $config['style_last_segment'] = TRUE; and i made a little edit in your helper as, if ($val != '') { if ($key == $breadcrumb_number-1 && $CI->config->item('unlink_last_segment') && $CI->config->item('style_last_segment')) { $str .= $delimiter.$wrapper_inline[0].ucwords('<span >'.$val.'<span>').$wrapper_inline[1]; } else if($key == $breadcrumb_number-1 && $CI->config->item('style_last_segment')) { $str .= $delimiter.$wrapper_inline[0].anchor($str_link[$key],'<span >'.$val.'<span>').$wrapper_inline[1]; } else if ($key == $breadcrumb_number-1 && $CI->config->item('unlink_last_segment') ){ $str .= $delimiter.$wrapper_inline[0].ucwords($val).$wrapper_inline[1]; } else { $str .= $delimiter.$wrapper_inline[0].anchor($str_link[$key], $val).$wrapper_inline[1]; } } this will not effect other functionality, i am posting first time here, please ignore the indentation mistakes
[eluser]livewirerules[/eluser]
This saves me loads of time. Thanks alot for your effort. im having a small issue using this helper. In my case i have a list of countries which are identified by a unique id Code: school_order/books/england/3 in my breadcrumb the england shows as Code: school order > books >england so the england gives me the url Code: school_order/books/england any idea on how how to combine uri segments to the breadcrumb url?
[eluser]micha8l[/eluser]
I noticed, by default, this helper will not add a trailing slash to URI segments. Can this behaviour be modified without hacking the helper source code? Example autocrumb output: Blog > Posts > Post Blog would be "http://www.blog.com" <- Incorrect, index should have trailing slash Posts would be "http://www.blog.com/posts" <- incorrect, directory should have trailing slash Posts would be "http://www.blog.com/posts/post" <- correct, file has no trailing slash This is basic SEO practice.
[eluser]micha8l[/eluser]
Is it possible to add an attribute to the last segment and also to replace the href with #. E.g., Code: <div class="autocrumb"> 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
[eluser]Unknown[/eluser]
Code: id catename parent id base_url: http://localhost/shop my url: Code: http://localhost/shop/san-pham/1/goi.html i want to display breadcrumb: Code: http://localhost/shop/san-pham/1/goi.html -> Trang chủ // Sản phẩm // Gối Please help me!
[eluser]aherus[/eluser]
[quote author="mr_minh89" date="1347642689"]please help me, i have like in breadcrumb http://localhost/ci_final/?admin/submenu/ i want remove ?, please help me![/quote] 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: Code: $config['enable_query_strings'] = FALSE; but keep it in mind, that u can still use enable_query_strings=TRUE in CI config file. |
Welcome Guest, Not a member yet? Register Sign In |