Part of the EllisLab Network
   
19 of 20
19
Autocrumb - Lightweight Breadcrumb Helper (ver.12.05.1)
Posted: 05 January 2012 07:19 AM   [ Ignore ]   [ # 181 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  162
Joined  03-19-2008

@Guardian,
Sorry for this late. I don’t understand why my gmail not received forum notification and this is not the first confused. Okay back to the topic. I try to make that happen on new release, ASAP.

@hottiger,
Sorry, it can’t but you can change ‘bar’ url to any url using $config[‘replacer’] and from that url you can redirect it to /bar/8. That’s what I can suggest for now grin

@nlissau,
Thanks

 Signature 

AutoACL - Access Control Library++ with Very Private Page (VPP) Control
AutoCRUMB - The simplest breadcrumb helper ever
Autocrumb on bitbucket
Integrate CI 2 with Eclipse
———————————————————————————————-
Website: ardinoto.blogspot.com

Profile
 
 
Posted: 05 January 2012 05:25 PM   [ Ignore ]   [ # 182 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  162
Joined  03-19-2008

Version 12.01.1 is now available on bitbucket

What’s new:
1. Now, we don’t have to declare our link name first to use multilanguage, example:
  URL = http://localhost/arstock/warehouse/stocks/search_direct
  $config[‘replacer’] = array();
  breadcrumb_lang.php :
    lang[‘warehouse’] = ‘Gudang’;
    lang[‘stocks’] = ‘Stok’;
  So, your breadcrumb now will be : Home > Gudang > Stok > Search Direct

2. Partial replacer support multilanguage too. Example:
  For link name read_tr, you can use this config
  $config[‘partial_replace’] = array(‘_tr’ => ‘transaction’, ‘read_’=>‘read’);
  Your breadcrumb_lang.php should have these variables:
  $lang[‘transaction’] = ‘Transaksi’;
  $lang[‘read’] = ‘Baca’;
  Your breadcrumb will show: Transaksi Baca

 Signature 

AutoACL - Access Control Library++ with Very Private Page (VPP) Control
AutoCRUMB - The simplest breadcrumb helper ever
Autocrumb on bitbucket
Integrate CI 2 with Eclipse
———————————————————————————————-
Website: ardinoto.blogspot.com

Profile
 
 
Posted: 06 January 2012 04:05 AM   [ Ignore ]   [ # 183 ]  
Summer Student
Total Posts:  5
Joined  01-13-2008

Thanks. Works like a charm grin

Profile
 
 
Posted: 15 January 2012 03:15 AM   [ Ignore ]   [ # 184 ]  
Summer Student
Total Posts:  4
Joined  04-19-2011

Great script smile. Can we assign same replacer differently for different pages?

For example. If I have to replace ‘text’ with ‘Beautiful Text’ on all pages… Simply I will replace in the config file.

But If I have to replace ‘text’ with ‘Bad Text’ on one page and ‘text’ with ‘Beautiful Text’ on other page what should I do?

Thanks in Advance.

Profile
 
 
Posted: 15 January 2012 04:26 AM   [ Ignore ]   [ # 185 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  162
Joined  03-19-2008
Shams Karamat - 15 January 2012 03:15 AM

Great script smile. Can we assign same replacer differently for different pages?

For example. If I have to replace ‘text’ with ‘Beautiful Text’ on all pages… Simply I will replace in the config file.

But If I have to replace ‘text’ with ‘Bad Text’ on one page and ‘text’ with ‘Beautiful Text’ on other page what should I do?

Thanks in Advance.

On the page that you need a special replacer name you can write this on that page Controller:

$this->config->load('breadcrumb');
$this->config->set_item('replacer', array('mytext'=>'Bad Text')); 

So, if you have specified mytext on $config[‘replacer’] i.e:

$config['replacer'= array ('mytext'=>'Beautiful Text'

then that value will be change to ‘Bad Text’.
For more explaining you can refer to CI user guide

 Signature 

AutoACL - Access Control Library++ with Very Private Page (VPP) Control
AutoCRUMB - The simplest breadcrumb helper ever
Autocrumb on bitbucket
Integrate CI 2 with Eclipse
———————————————————————————————-
Website: ardinoto.blogspot.com

Profile
 
 
Posted: 15 January 2012 04:33 AM   [ Ignore ]   [ # 186 ]  
Summer Student
Total Posts:  4
Joined  04-19-2011

Perfect smile Thanks for your quick reply.

Profile
 
 
Posted: 28 January 2012 10:08 PM   [ Ignore ]   [ # 187 ]  
Summer Student
Total Posts:  1
Joined  09-22-2011

Hi ardinotow,

First of all, thank you for a great helper library.

I have one question.  I am using your autocrumb for a clothing website.  The website has many categories and subcategories.  Because the website can change the levels of categories, I made one method called category() in a controller that handles all categories.  For example, I have following category structure:

Category 1
- Subcategory 1
—Sub-subcategory 1
—Sub-subcategory 2
- Subcategory 2
Category 2

Because displaying any level of categories is done through category() method, when I get to sub-subcategory 1, the breadcrumb displays “Home > Category” and not “Home > Category 1 > Subcategory 1 > Sub-subcategory 1” if you know what I mean.

Is there something I can do in category() method to add or remove to the breadcrumb?

Thank you.

Seong Bae

Profile
 
 
Posted: 31 January 2012 01:19 AM   [ Ignore ]   [ # 188 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  162
Joined  03-19-2008
seongbae - 28 January 2012 10:08 PM

Hi ardinotow,

First of all, thank you for a great helper library.

I have one question.  I am using your autocrumb for a clothing website.  The website has many categories and subcategories.  Because the website can change the levels of categories, I made one method called category() in a controller that handles all categories.  For example, I have following category structure:

Category 1
- Subcategory 1
—Sub-subcategory 1
—Sub-subcategory 2
- Subcategory 2
Category 2

Because displaying any level of categories is done through category() method, when I get to sub-subcategory 1, the breadcrumb displays “Home > Category” and not “Home > Category 1 > Subcategory 1 > Sub-subcategory 1” if you know what I mean.

Is there something I can do in category() method to add or remove to the breadcrumb?

Thank you.

Seong Bae

Seong Bae, you can review my answer on Shams Karamat’s question above and also refer to add new crumbs on config/breadcrumb.php.

 Signature 

AutoACL - Access Control Library++ with Very Private Page (VPP) Control
AutoCRUMB - The simplest breadcrumb helper ever
Autocrumb on bitbucket
Integrate CI 2 with Eclipse
———————————————————————————————-
Website: ardinoto.blogspot.com

Profile
 
 
Posted: 20 March 2012 08:25 AM   [ Ignore ]   [ # 189 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  104
Joined  02-10-2012

Hello ; First of all , I would ike to thank you for this work !!

I would like to ask you how I must do in this case :

mu home page is (at this stage I don’t show breadcrumb

http://localhost/MonSite/index.php/site

so when I click on a link Men for example (always at this page ) :

<a href="<?php echo site_url('client/gestionHomme/'); ?>" title="Homme">Men</a

the url is

http://localhost/MonSite/index.php/client/gestionHomme

and breadcrumb is exact :

Home> Men

and when I would like to know more details about shoes men via by this link in view :

<a href="http://localhost/MonSite/index.php/client/gestionChaussure/<?php echo $tableau[$j][0];  ?>"

the url is

http://localhost/MonSite/index.php/client/gestionChaussure/89 

and breadcrumb

Home> Shoes

I think it is normal because in site.php (controller file ) I have
2 functions

public function gestionHomme(){...}
public function gestionChaussure(){...

and When we run at gestionHomme function the bread crumb become

Home> Men

and When we run at gestionChaussure function the bread crumb become

Home> Shoes

but I would like something like that when it’s about shoes details (gestionChaussure)

Home Men Shoes 


thanks

Profile
 
 
Posted: 25 March 2012 12:05 PM   [ Ignore ]   [ # 190 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  104
Joined  02-10-2012

please , I need your help ;
I know how to change : the name of Url

so in my url I have something like that :

http://localhost/MonSite/index.php/client/getChaussureGenreStyle/1/2/ 

so I hide client and getChaussureGenreStyle

$config['exclude'= array('client','getChaussureGenreStyle'); 

and I have

Home 

now the problem is I can’t change the name of those number I try to make like this
for example for 1 I would replace by Men and 2 by Baskets
so at the final I have something like that with link

Home > Men >Basket

I try like this for number 1

$config['replacer'= array('1' => array('index.php/client/getChaussureGenreStyle/1| Men')); 

but it can’t change

and for another configuration :

$config['hide_number'FALSE;

$config['hide_number_on_last_segment'TRUE

I hide the last segment because the pagination number at last !!


Did you have an idea please ??

thanks

Profile
 
 
   
19 of 20
19