Seeking best way to add dynamic navigation to top of views page

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by mitz on February 4, 2009 at 5:18pm

Hi,

I'm new to views. I figured out how to make a views page using 2 wildcards. I'd like to enable my users to drill down from there depending on the first letter of the last name. I have this working if I type in the URL by hand, but I want to add a nav bar to the top of the page like so:

A | B | C ...

Where the letter is a link that adds that letter to the end of the URL (e.g. 'list/customer/M', which would return a list of customers with name beginning with M). The 'customer' part of that URL is also a wildcard and can have many valid values, so a hard-coded approach doesn't work here (and I couldn't make it work in the 'header' section of the views page).

What's the best way to add dynamic content to views page (I have some experience with custom modules and hooks)?

BTW, Drupal 6/Views 2

Thanks.

mitz

Categories:

Comments

I saw marqpdx's post....

Posted by mitz on February 4, 2009 at 5:39pm

I found the 'expose' filter function. That will work, but I'd still like to know how to add dynamic content to the top of a views page, please.

I think a way to get this

Posted by dwees on February 4, 2009 at 10:37pm

I think a way to get this done is through the views theming layer, although I have noticed that dynamic help content is difficult. You can theme an entire view, and in this way insert your dynamic layer at the top.

Another way is to use hook_help and define "help" text based on the query strings being offered. This is one of the few places where you are fed the path of the current page as a string, and can react based on the incoming path, although almost all modules use static help based on fixed paths.

Hope either of these solutions works for you.

Dave

Thanks, Dave. I think I'll

Posted by mitz on February 4, 2009 at 10:57pm

Thanks, Dave. I think I'll stick with the exposed filter feature for now, but I'll keep that in mind.

mitz

i'm not familiar with the

Posted by jaydj on October 14, 2009 at 6:09pm

i'm not familiar with the "expose" filter. Can you elaborate more on this and how you used it ?

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /