webplatform / www.webplatform.org

Static content published at www.webplatform.org that aren't managed by a content management system.
http://docs.webplatform.org/wiki/WPD:Projects/Homepage
21 stars 12 forks source link

Implement dropdown on breadcrumb #1

Closed renoirb closed 10 years ago

renoirb commented 10 years ago

In the breadcrumb, when we want to navigate other subpages on the same level we can see other pages on the same level. Currently only for the stewards.

breadcrumb-dropdown

This feature was not implemented in the new static-site generator project (this project).

To do, we need to adapt src/partials/breadcrumb.html.eco to generate something like:

    <ol id="breadcrumb-info" class="breadcrumbs">
      <li><a href="http://www.webplatform.org/">Home</a></li>
      <li class="dropdown"><a href="/stewards/adobe">Adobe</a>
      <? if ($submenu): ?>
      <ul>
        <? foreach ($submenu as $id => $url): ?>
            <li><a href="<?= $url ?>"><?= $id ?></a></li>
        <? endforeach; ?>
      </ul>
      <? endif; ?>
      </li>
    </ol>
jensimmons commented 10 years ago

I think we could get rid of this pattern. I've never seen a breadcrumb that becomes a drop-down menu. It seems weird to me.

I'd be happy with just a simple breadcrumb. We can make sure the footer has all the logos, which each will link to each of the Stewards page. There are plenty of other ways to get around. Let's keep it simple.

renoirb commented 10 years ago

I'm ok with your idea. Doug said to me it wasn't a priority to do anyway. I put the note here to be sure I don't forget about it.

renoirb commented 10 years ago

Cancelled the idea. Not thats its not doable... That kind of menu is nonconventional. We'll focus on other priorities

LeaVerou commented 10 years ago

I think we could get rid of this pattern. I've never seen a breadcrumb that becomes a drop-down menu. It seems weird to me.

It’s actually pretty common, but (when successfully used) not very conspicuous so it doesn't get in the way, but it can be a very useful little feature for those who know about it (a bit like keyboard shortcuts). I think the most common example is Windows Explorer: Windows Explorer screenshot

See also: http://ux.stackexchange.com/questions/19586/would-breadcrumbs-be-effective-if-they-incorporate-dropdowns (many good examples in the replies) http://ui-patterns.com/patterns/Breadcrumbs (many of the examples feature this pattern)

I'd be happy with just a simple breadcrumb. We can make sure the footer has all the logos, which each will link to each of the Stewards page. There are plenty of other ways to get around. Let's keep it simple.

If the same UI pattern is used elsewhere in the site, it's a matter of consistency, so it's not just about the list of Stewards. If it isn't used elsewhere, it should be IMO (I recall it was pulled because of some minor implementation details, such as handling lists with lots of items, that we didn't have time to solve).

renoirb commented 10 years ago

Hi Lea,

You are right, I explained it in a wrong way. We dropped it because it was only in use for the Stewards. We might reinstate it if we get to have it consistently throughout the site.