Re: Re: Pagination how to

Matthew Williams <webmaster-Y9DQuaro4BO+p3OD1CPDqAC/[email protected]>
Newsgroups gmane.comp.cms.farcry.devel
Message-ID <CAK_FoQ-iH=rdp0+wTrm9Bp=21Y1Pe7R9zAVE3mqDTcm-jgOWgQ@mail.gmail.com>
Second this.  I use this for doing site search using cfsearch results on an
ecomm type build out.


On Thu, Mar 14, 2013 at 12:58 PM, Chris Kent <[email protected]> wrote:

> Marco,
>
> Why not use <skin:paginiation ... > to wrap a <skin:view ... >  to handle
> pagination of content items?
>
> You can pass either a query or array of objects/objectsids to the
> pagination.
>
> Chris.,
>
>
> On Thursday, 14 March 2013 14:51:09 UTC, Marco van den Oever wrote:
>>
>> Hi all, I am trying to implement pagination into the standard / modified
>> search option provided in fandango skeleton.
>> I am guessing that the <cfoutput query needs to be a <cfloop query
>> surrounded by a <cfoutput> tag?
>> And then put in the "from" / "to" parameters with the values of
>> #getRecordFrom()#" and #getRecordTo()#?
>>
>> When I try to get the values of #getRecordFrom()#" and #getRecordTo()#like:
>>
>> <admin:resource key="coapi.farPagination.**displaying@html" var1=
>> "#getRecordFrom()#" var2="#getRecordTo()#" var3="#getTotalRecords()#">
>>     <cfset rfrom = {1}>
>>     <cfset rto = {2}>
>>     <cfset rmax = {3}>
>>     </admin:resource>
>>
>> I get an error:
>>
>> No matching function [GETRECORDFROM] found
>>
>>
>> How do I wrap the following code in a pagination?:
>>
>> <cfoutput query="stLocal.qResults">
>>
>> <!--- get the recent news items --->
>> <cfquery name="recent" datasource="aquariusagenieuw" maxrows="13">
>> SELECT ObjectID,title,source,**flickrimg,Teaser,**
>> datetimecreated,Teaserimage,**publishDate
>> FROM dmnews
>> WHERE ObjectID='#stLocal.qResults.**ObjectID#'
>> </cfquery>
>>
>> <article>
>>
>> <cfif len(recent.teaserImage)>
>> <!--- get the image --->
>> <cfquery name="image" datasource="aquariusagenieuw">
>> SELECT ThumbnailImage
>> FROM dmimage
>> WHERE ObjectID = '#recent.teaserImage#'
>> </cfquery>
>> <cfif FileExists(ExpandPath(image.Th**umbnailImage))>
>>         <skin:view objectid="#recent.teaserImage#**" typename="dmImage"
>> template="**displayThumbnailImage" r_html="teaserImageHTML" />
>>             <skin:buildLink class="thumbnail" objectID=
>> "#recent.objectid#" linktext="#teaserImageHTML#" urlParameters=
>> "q=#url.q#" />
>>
>>             </cfif>
>>         <cfelseif recent.flickrimg gt 0>
>>
>>         <!--- get flickr image source if used and show it --->
>>         <cfset str = recent.flickrimg>
>>         <cfset string = str />
>>         <cfset StartText = 'src="' />
>>         <cfset Start = FindNoCase(StartText, string, 1) />
>>         <cfset EndText='" width' />
>>         <cfset Length=Len(StartText) />
>>         <cfset End = FindNoCase(EndText, string, Start) />
>>         <cfset parse = Mid(string, Start+Length, End-Start-Length) />
>>         <cfset parse = trim(parse) />
>>         <cfset thumbsource = REReplace(parse,"_s|_t|_m|_n|_**z|_b","_q",
>> "ALL")>
>>
>>         <skin:buildLink class="thumbnail" objectid="#recent.objectID#"
>> title="#recent.title#" urlParameters="q=#url.q#"><img src="#thumbsource#"
>> width="89" height="89" border="0" alt="#recent.title#" title=
>> "#recent.title#" /></skin:buildLink>
>>
>>                 </cfif>
>>
>>     <div class="teaser">
>>         <h1><skin:buildLink objectid="#recent.objectID#" title=
>> "#recent.title#" urlParameters="q=#url.q#">#**left(recent.title,60)#<cfif
>> len(recent.title) gt 60>...</cfif></skin:buildLink>**</h1>
>>
>>         <p>
>>             <skin:buildLink objectid="#recent.objectID#" title=
>> "#recent.title#" urlParameters="q=#url.q#"><**span class="teasertitle">#*
>> *dateformat(recent.publishDate, "d mmmm yyyy")#</span>&nbsp;#left(**
>> recent.teaser,225)#<cfif len(recent.teaser) gt 225>...</cfif></skin:**
>> buildLink>
>>         </p>
>>     </div>
>> </article>
>>
>> </cfoutput>
>>
>>
>>
>>  --
> You received this message cos you are subscribed to "farcry-dev" Google
> group.
> To post, email: farcry-dev-/[email protected]
> To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry
> ---
> You received this message because you are subscribed to the Google Groups
> "farcry-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to farcry-dev+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 

Matthew Williams
Geodesic GraFX
www.geodesicgrafx.com/blog
http://twitter.com/ophblance

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev-/[email protected]
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
--- 
You received this message because you are subscribed to the Google Groups "farcry-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to farcry-dev+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/groups/opt_out.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.