Yii Framework Forum: Better CBreadcrumbs - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Better CBreadcrumbs with duplicates support Rate Topic: -----

#1 User is offline   saegeek 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 244
  • Joined: 09-December 09
  • Location:Montpellier - France

Posted 29 April 2012 - 04:46 PM

Hi to @ll,

Today i realized that Yii can't display a simple breadcrumb with duplicates. (Elements with the same label) like :
Posted Image
Because the elements (the links) are stored in a simple key-value array:
$this->breadcrumbs=array(
	'label'=>array('controller/action'),
	'label2'=>array('controller/action2'),
	// etc.
);

Of course we can't have 2 times or more the same label (more than one "new folder" label)
This is why i suggest a new mapping like this:
$this->breadcrumbs=array(
	0=>array('label'=>array('controller/action')),
	1=>array('label'=>array('controller/action')),
	2=>array('label'=>array('controller/action')),
);

In this case all the labels can be the same (eg. "new folder")
And [for] their saying, "Indeed, we have killed the Messiah, Jesus, the son of Mary, the messenger of God ." And they did not kill him, nor did they crucify him; but [another] was made to resemble him to them. And indeed, those who differ over it are in doubt about it. They have no knowledge of it except the following of assumption. And they did not kill him, for certain.Rather, God raised him to Himself.
0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,340
  • Joined: 12-October 09
  • Location:Croatia

Posted 02 May 2012 - 09:20 AM

Link to GitHub issue for this - https://github.com/y.../yii/issues/667
Find more about me.... btw. Do you know your WAN IP?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users