By jtti on
I have an exposed pager that appears in the exposed filters section of my view. But I want to display that filter in the header section of the view alongside the results summary. How do I do this?
I have an exposed pager that appears in the exposed filters section of my view. But I want to display that filter in the header section of the view alongside the results summary. How do I do this?
Comments
You should
be able to achieve this by modifying the theme...
If you don't know how to theme views there's a ton of info out there (now that you know what you are looking for!)
start here:
http://api.drupal.org/api/views/theme!theme.inc/group/views_templates/7
I already have a custom theme
I already have a custom theme for my view. The problem is that the exposed pager is in $exposed, whereas I want it in $header.
php code
edit:
You should be able to move the pager to the header by simply putting it there...
(puzzled look)
Have you already moved the code and it is still in the wrong area?
That would put all of my
That would put all of my exposed filters in the header. I just want to move the exposed items per page into the header.
Forgive my lack of expertise here. This is my first time using Views, and I would like some guidance on how to better control the placement of certain items.
just the results?
are you saying that you want the results of the view or just the exposed filters or both to appear in the header?
No worries! We'll get you there!
can you show me your template code for the view
I'm not sure I am grokking your issue, can you post the code for your theme?
It should be straight forward to move the filter to the header...
I just moved the filter (and it's results) directly into the header on one of my views without even dealing with the template by clicking header and selecting the right view to embed there (a view inside a view)
(more puzzled looking)
How do you move just one
How do you move just one filter into the header? All of my exposed filters are grouped together in the $exposed variable.
I'm not sure posting my code would be useful because I'm doing all of my theming through css.
AAAAHHHH
Now I start to see !!
TO move these elements around can't be done with css here...
You will need to actually modify (or create another to override the display) the views theme and move the elements into the sections that you want..
have a look at this for a brief intro about it
http://www.torontowebsitedeveloper.com/drupal-video-tutorials/theming-dr...
(you are going to want to work with the "output" theme info...)
and then see this too..(sorry about the name of it, I didn't write the title!)
http://replay.uci.edu/clients/drupal/Stop_Complaining_about_Views_output...
and the best for last
http://drupal.org/node/352970