Thanks ardinotow, i will try to do.
Update…Thanks ardinotow, i did success.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
December 09, 2009 5:58pm
Subscribe [78]#211 / Aug 28, 2012 12:42pm
Thanks ardinotow, i will try to do.
Update…Thanks ardinotow, i did success.
#212 / Sep 14, 2012 1:11pm
please help me, i have like in breadcrumb http://localhost/ci_final/?admin/submenu/
i want remove ?, please help me!
#213 / Dec 10, 2012 1:32am
this helper really help me thanks. I also add urldecode to this code
/*—- End Patch—- */
$uri = urldecode(rtrim($CI->uri->uri_string(),’/’));
$uri_array_original = explode(”/”, $uri);
// cahva’s fix (http://codeigniter.com/forums/viewreply/855097/)
this will help if you forget to decode your url like having space on your url
http://www.example.com/search[percent twenty]data
your breadcrumb
home > search data
#214 / Dec 10, 2012 1:53am
please help me, i have like in breadcrumb http://localhost/ci_final/?admin/submenu/
i want remove ?, please help me!
maybe you can change
$config[‘partial_replace’] = array(’?’=>’‘);
on application/config/breadcrumb.php
#215 / Feb 26, 2013 12:59am
This is amazing.
Thank you so much!
#216 / Mar 06, 2013 9:21am
very useful. many thanks!
#217 / Apr 04, 2013 10:53pm
sama sob ane juga mau yg seperti di bawah ini,gmn yah cara nya
url : “localhost/categories/display_product/1” -> breadcrumb : Home->Phone
url : “localhost/categories/display_product/2 -> breadcrumb : Home->Laptop
url : “localhost/categories/display_product/3 -> breadcrumb : Home->Phone->Samsung
url : “localhost/categories/display_product/5 -> breadcrumb : Home->Laptop->Dell
yg di jelasin sebelum ny, ane masih belum ngerti
#218 / Apr 22, 2013 12:59am
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:$this->config->load('breadcrumb'); $prod_id = $this->uri->segment(3); $prod_name = $this->model_xxx->get_name($prod_id); $parent_name = $this->model_xxx->get_parent($prod_id); if ($parent_name) { // if has parent then add new breadcrumb trail // add & change breadcrumb (see breadcrumb config) $this->config->set_item('replacer_embed', array('categories'=>'', 'display_product'=>'', $prod_id=>array('/categories/display/product/'.$prod_id|$parent_name, '/categories/display/product/'.$prod_id|$prod_name)); } else { // don't have parent so just put the product name $this->config->set_item('replacer_embed', array('categories'=>'', 'display_product'=>'', $prod_id=>array('/categories/display/product/'.$prod_id|$prod_name)); }Hope that could make you catch the ideas.
Please let me know your progress…
@kurtzawn, I will ask in standard indonesian language, other member can use google translate 😊
Maaf saya baru balas. Bagian mana yang belum dimengerti?
#219 / Apr 22, 2013 1:15am
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:$this->config->load('breadcrumb'); $prod_id = $this->uri->segment(3); $prod_name = $this->model_xxx->get_name($prod_id); $parent_name = $this->model_xxx->get_parent($prod_id); if ($parent_name) { // if has parent then add new breadcrumb trail // add & change breadcrumb (see breadcrumb config) $this->config->set_item('replacer_embed', array('categories'=>'', 'display_product'=>'', $prod_id=>array('/categories/display/product/'.$prod_id|$parent_name, '/categories/display/product/'.$prod_id|$prod_name)); } else { // don't have parent so just put the product name $this->config->set_item('replacer_embed', array('categories'=>'', 'display_product'=>'', $prod_id=>array('/categories/display/product/'.$prod_id|$prod_name)); }Hope that could make you catch the ideas.
Please let me know your progress…@kurtzawn, I will ask in standard indonesian language, other member can use google translate 😊
Maaf saya baru balas. Bagian mana yang belum dimengerti?
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?
#220 / Apr 22, 2013 1:18am
@kurtzawn,
check PM
#221 / Apr 29, 2013 7:05pm
please help me, i have like in breadcrumb http://localhost/ci_final/?admin/submenu/
i want remove ?, please help me!
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 !
#222 / Jun 18, 2013 9:34pm
@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
#223 / Jun 26, 2013 5:33am
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
#224 / Jul 15, 2013 10:55am
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
school_order/books/england/3in my breadcrumb the england shows as
school order > books >englandso the england gives me the url
school_order/books/england/ but i want the last element to be linked with the id
any idea on how how to combine uri segments to the breadcrumb url?
#225 / Jul 16, 2013 12:01pm
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.