On Apr 8, 2011, at 04:01, dvvbrook79 wrote:
> On Apr 8, 4:52 am, Ryan Schmidt wrote:
>> On Apr 7, 2011, at 09:38, dvvbrook79 wrote:
>>> http://www.disneyvillavacations.com/links/travel_services/page:1
>> 
>> Ok, I've taken a look at that page, but I didn't understand what you wanted 
>> to change about it.
> 
> Basically as you can see when you go to this page there is page after
> page of travel service links...but what i want to do is have these
> numbered pages show up at the bottom of the home page, so that if a
> user clicks it, it will take them straight to the travel services page
> ex page1,page2,page3 and so on....so the bottom of the home page would
> then look like this..
> 
> Travel Services: 1_2_3_4_5_6_7_8_9 (and so on)
> 
> and obviously i would need a break in there so it would start a new
> line, otherwise i would just have a long list of numbers in one
> line...

Your links controller's travel_services action contains code that fetches and 
paginates the data. Copy that code to whatever controller action is generating 
your home page. If your home page is currently being generated by the pages 
controller, then you'll probably want to change it to be generated by some 
other controller that you are in charge of (rather than the pages controller, 
whose code is part of the CakePHP core and is not meant to be modified, and is 
meant for static pages that don't fetch data).

The view that the links controller's travel_services action uses contains code 
that displays a page of data, and the page number links. Copy the part of the 
code that displays the page number links (but not the part that displays the 
page of data) to your home page's view.

However I'm not sure this will be useful to a user. If a user comes to your 
home page and sees "Travel Services: 1 2 3 4 5 6 7 8 9" how is the user meant 
to know what to click? Why is this more helpful than just displaying a single 
link "Travel Services"?




-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to