Autocrumb - Lightweight Breadcrumb Helper (ver.12.05.1) |
[eluser]CtheB[/eluser]
Hi, I will give you some feedback. It's real simple, and really easy. It only needs some more options to set. For instance i have url's like this: http://mysite.com/en/search/results http://mysite.com/fr/search/results http://mysite.com/de/search/results http://mysite.com/es/search/results http://mysite.com/it/search/results My breadcrumb will be like this: Home > En > Search > Results Home > Fr > Search > Results Home > De > Search > Results Home > Es > Search > Results Home > It > Search > Results So i do have 2 recommendations: 1. Make it possible to give an array with segment and string to exclude from breadcrumb. so for instance: Code: $exclude = array('1' => 'en', '1' => 'fr', '1' => 'de', '1' => 'es', '1' => 'it') 2. Make it possible to set the delimiter in a parameter like this: Code: $delimiter = ' | '; 3. Change the name of the helper to something more meaningfull, like all the other codeigniter helpers like this: Code: set_breadcrumb($exclude, $delimeter); 4. Start the file with another line like all codeigniter helpers like this: Code: if ( ! function_exists('set_breadcrumb')) 5. Make it possible to return the breadcrumb in a list (<ul><li></li></ul>) or something else, whatever is required. Good luck, if you need some more help please ask |
Welcome Guest, Not a member yet? Register Sign In |