Pagination remembering page when it shouldn't

View: New views
5 Messages — Rating Filter:   Alert me  

Pagination remembering page when it shouldn't

by Colin Jones-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


At the moment we are displaying news with paginations switched on,
which correctly shows the page numbers at the bottom. When a user
clicks a link (for example page 4), it takes them to that page
correctly.

If the user then navigates away and returns to the default homepage
for the news (without a pageruleNews= URL parameter), then the user
still ends up back on page 4, (or whatever page they last looked at
when they were browsing the news).

The problem is we want clicking the home news link to take them back
to page 1.

There appears to be a "bStickyPages" variable in the farPagination.cfc
code for farcry cms, however this is by default 'False' and even
setting it to 'false' when calling doesn't seem to work.  Is this a
bug?  Is bStickyPages accidentally being considered true even when it
isn't?

Any ideas on how we can reset back to page 1 when no pageruleNews=
parameter is in the URL?  We're using 5.2.3 of FarCry core.  This is
the code calling our pagination block:

        <ftlocal:pagination
                paginationID="ruleNews"
                qRecordSet="#q#"
                typename="dmNews"
                pageLinks="10"
                recordsPerPage="#stobj.numitems#"
                Top="false"
                Bottom="true"
                renderType="">

                <ft:paginateLoop r_stObject="stNews" >
                        <cfoutput>
                                <li class="hentry">
                        </cfoutput>
                        <skin:view objectid="#stNews.objectid#" typename="dmNews"
webskin="#stObj.displaymethod#" />
                        <cfoutput>
                                </li>
                        </cfoutput>
                </ft:paginateLoop>
        <cfoutput>
                </ol>
        </div>
        </cfoutput>
        </ftlocal:pagination>

--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---


Re: Pagination remembering page when it shouldn't

by modius :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 23, 1:15 am, Colin Jones <seaj...@...> wrote:

>         <ftlocal:pagination
>                 paginationID="ruleNews"
>                 qRecordSet="#q#"
>                 typename="dmNews"
>                 pageLinks="10"
>                 recordsPerPage="#stobj.numitems#"
>                 Top="false"
>                 Bottom="true"
>                 renderType="">
>
>                 <ft:paginateLoop r_stObject="stNews" >
>                         <cfoutput>

This tag combination is deprecated and should not be used at all.

Funnily enough I just posted on this:
  http://farcry.posterous.com/pagination-tags

Implement the right custom tag -- if you continue to have problems let
us know and we'll see what we can do :)

-- geoff
http://www.daemon.com.au/

--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---


Re: Pagination remembering page when it shouldn't

by Colin Jones-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 23, 8:01 am, modius <mod...@...> wrote:

> On Oct 23, 1:15 am, Colin Jones <seaj...@...> wrote:
>
> >         <ftlocal:pagination
> >                 paginationID="ruleNews"
> >                 qRecordSet="#q#"
> >                 typename="dmNews"
> >                 pageLinks="10"
> >                 recordsPerPage="#stobj.numitems#"
> >                 Top="false"
> >                 Bottom="true"
> >                 renderType="">
>
> >                 <ft:paginateLoop r_stObject="stNews" >
> >                         <cfoutput>
>
> This tag combination is deprecated and should not be used at all.
>
> Funnily enough I just posted on this:
>  http://farcry.posterous.com/pagination-tags
>
> Implement the right custom tag -- if you continue to have problems let
> us know and we'll see what we can do :)
>

Thanks - that's working perfectly with the new code.  :)
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---


Re: Pagination remembering page when it shouldn't

by Colin Jones-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 23, 7:01 am, modius <mod...@...> wrote:

> On Oct 23, 1:15 am,ColinJones <seaj...@...> wrote:
>
> >         <ftlocal:pagination
> >                 paginationID="ruleNews"
> >                 qRecordSet="#q#"
> >                 typename="dmNews"
> >                 pageLinks="10"
> >                 recordsPerPage="#stobj.numitems#"
> >                 Top="false"
> >                 Bottom="true"
> >                 renderType="">
>
> >                 <ft:paginateLoop r_stObject="stNews" >
> >                         <cfoutput>
>
> This tag combination is deprecated and should not be used at all.
>
> Funnily enough I just posted on this:
>  http://farcry.posterous.com/pagination-tags
>
> Implement the right custom tag -- if you continue to have problems let
> us know and we'll see what we can do :)
>

As mentioned, the new syntax:

<skin:pagination qrecordset="#qRecentPosts#"
recordsPerPage="#stObj.numberOfPosts#">
    <skin:view typename="farBlogPost" objectid="#stobject.objectid#"
webskin="displayTeaserStandard" />
</skin:pagination>

...is working great, however I notice it generates a style block in
the page for formatting.  How do I go about changing the default
styles? For example the default colour for the current page in the
pagination is red - how can I change that?
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---


Re: Pagination remembering page when it shouldn't

by Blair McKenzie-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is just a guess, but have a look at the core webskins for farPagination. I do know that overriding those is how you change the pagination markup.

Blair

On Tue, Nov 3, 2009 at 7:50 PM, Colin Jones <seajays@...> wrote:

On Oct 23, 7:01 am, modius <mod...@...> wrote:
> On Oct 23, 1:15 am,ColinJones <seaj...@...> wrote:
>
> >         <ftlocal:pagination
> >                 paginationID="ruleNews"
> >                 qRecordSet="#q#"
> >                 typename="dmNews"
> >                 pageLinks="10"
> >                 recordsPerPage="#stobj.numitems#"
> >                 Top="false"
> >                 Bottom="true"
> >                 renderType="">
>
> >                 <ft:paginateLoop r_stObject="stNews" >
> >                         <cfoutput>
>
> This tag combination is deprecated and should not be used at all.
>
> Funnily enough I just posted on this:
>  http://farcry.posterous.com/pagination-tags
>
> Implement the right custom tag -- if you continue to have problems let
> us know and we'll see what we can do :)
>

As mentioned, the new syntax:

<skin:pagination qrecordset="#qRecentPosts#"
recordsPerPage="#stObj.numberOfPosts#">
   <skin:view typename="farBlogPost" objectid="#stobject.objectid#"
webskin="displayTeaserStandard" />
</skin:pagination>

...is working great, however I notice it generates a style block in
the page for formatting.  How do I go about changing the default
styles? For example the default colour for the current page in the
pagination is red - how can I change that?



--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---