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
Comments
I saw marqpdx's post....
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
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
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
i'm not familiar with the "expose" filter. Can you elaborate more on this and how you used it ?