Re: Using a page anchor with Pagination links

2009-03-23 Thread Flipflops
@Brian Thanks for the tip. I'll try that out - its much neater. On Mar 20, 4:50 pm, brian wrote: > Or this should work, also: > > $paginator->options(array('url' => am(array('#' => > 'album-image-gallery'), $this->passedArgs))); > > On Fri, Mar 20, 2009 at 12:17 PM, Flipflops wrote: > > > I've

Re: Using a page anchor with Pagination links

2009-03-20 Thread brian
Or this should work, also: $paginator->options(array('url' => am(array('#' => 'album-image-gallery'), $this->passedArgs))); On Fri, Mar 20, 2009 at 12:17 PM, Flipflops wrote: > > I've been stumped on the same problem, in an instance where I'm using > $this->passedArgs > > But reading this I jus

Re: Using a page anchor with Pagination links

2009-03-20 Thread Flipflops
I've been stumped on the same problem, in an instance where I'm using $this->passedArgs But reading this I just has a brainwave - I just added on another item to the end of the array - seems to work fine. $this->passedArgs['#'] = 'album-image-gallery'; $paginator->options(array('url' => $this->

Re: Using a page anchor with Pagination links

2009-03-20 Thread brian
I'm not sure about using it with pagination but Cake's link arrays accept a key, '#' for a hash. On Thu, Mar 19, 2009 at 7:43 PM, Waylon wrote: > > Has anybody figured out how to make the PaginationHelper output a link > that has a '#anchor_name' at the end of it. > > For example, by default you

Using a page anchor with Pagination links

2009-03-19 Thread Waylon
Has anybody figured out how to make the PaginationHelper output a link that has a '#anchor_name' at the end of it. For example, by default you get something like: http://www.example.com/controller/action/page:3 What I'm looking for is: http://www.example.com/controller/action/page:3#anchor_name