I am working on a magazine site. We have Issues, and Issues have Articles. I have created a view that lists Articles based on the related Issue (one at a time, with a pager). I have created another View that lists Issue's Covers (one at a time, with a pager), and used a .tpl file to embed the list_articles view.
The end result is one Issue Cover, and one related Article. When I click the pager for the Article (I have changed Pager Element so there is no conflict with multiple pagers), it displays (using AJAX) the expected Article in place of the existing one. So far so good.
When I click the pager for the Issue Cover, the Issue Cover and related Article change as expected, sort of.
The problem is, if I was last looking at Article Pager 3 on Issue 1, when I click the Issue Cover Pager the Article Pager remains on '3'. Is there any way to force the child view to reset the pager value to '0'?
One workaround I am considering if I can't get the child view's pager to reset is to use Views Carousel to display my Issue Covers, which also has it's limitations but will get me most of the way there (kinda works in my tests, just needs styling). Maybe JQuery Carousel has a way of adding a pager.
Thanks!
Comments
Solution
Here is what worked for me (in template.php):