Thursday, June 24, 2010

Re: Breadcrumbs

Ok, got it!
I don't see an issue here! There are no statement in the XHTML
specification which states that an unordered list must be used as a
bread crumb list, sorry! It is correct that they state that it is
common usage to do that. So in my opinion, there is nothing wrong with
the result from the getCrumbs method.

Should you wish to have the unordered list, I can suggest you inherit
from the HtmlHelper and implements your own getCrumbs method.

There is not more I can say :) Hopefully somebody else can provide
more information.
Enjoy,
John

On 24 Jun., 12:11, Leszek Stachowski <shaza...@gmail.com> wrote:
> We still don't understand each other clearly ;)
>
> I get the correct result, as you wrote:
>
> [code]
> <a ...>Crumb location</a>
> ...
> <a ...>Crumb location</a>
> [/code]
>
> But, I think that HtmlHelper SHOULD (in order to produce (x)html
> semantically correct result) return:
>
> [code]
> <ul>
>    <li><a ...>Crumb location</a></li>
>    ...
>    <li><a ...>Crumb location</a></li>
> </ul>
> [/code]
>
> Hope it is clear enough now ;)
>
> On Jun 24, 11:46 am, John Andersen <j.andersen...@gmail.com> wrote:
>
>
>
> > Ok, I will rephrase my statement :)
> > The HtmlHelper getCrumbs method returns a set of:
> > [code]
> > <a ...>Crumb location</a>
> > ...
> > <a ...>Crumb location</a>
> > [/code]
>
> > If you receive another result, please copy/paste the resulting html
> > into a post and show us.
> > Also show how you add to the crumb trail - using the addCrumb method,
> > so that we may understand more.
> > Enjoy,
> >    John
>
> > On 24 Jun., 11:40, Leszek Stachowski <shaza...@gmail.com> wrote:> Yes, it returns a set of separated linksand it's not semantically
> > > correct. For navigation elements such as breadcrumbs, an (x)html list
> > > should be used.
>
> > > On Jun 24, 11:37 am, John Andersen <j.andersen...@gmail.com> wrote:
>
> > [snip]- Skjul tekst i anførselstegn -
>
> - Vis tekst i anførselstegn -

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: