Marco,

Try the following:

<skin:pagination query="#stLocal.qResults#" typename="dmNews" paginationID=
"searchNews" recordsPerPage="10" pageLinks="10" r_stobject="stobject" >
   
<cfdump var="#stobject#">
 
 </skin:pagination>

Chris.


On Friday, 15 March 2013 11:24:34 UTC, Marco van den Oever wrote:
>
> Ok to test i Have:
>
> <!--- THIS MEANS PAGINATE --->
>     <skin:pagination query="#stLocal.qResults#" typename="dmNews" 
> paginationID="searchNews" recordsPerPage="10" pageLinks="10">
>     
>     <cfoutput>#ObjectID#</cfoutput><br />
>
> </skin:pagination>
>
> i know that stLocal.qResults holds al objectids, so how do i display the 
> items in between? With this code i don't see anything, by removing the code 
> in between i also see nothing, so passing in the query is not working?
>
> i don't want a webskin in between, i want direct code, so how to to this?
>
> thanks.
>
> Op donderdag 14 maart 2013 23:09:17 UTC+1 schreef Blair McK het volgende:
>>
>> Generally you pass the entire result set into the tag. The tag itself 
>> handles paging.
>>
>> Blair
>>
>>
>> On Fri, Mar 15, 2013 at 5:21 AM, Marco van den Oever <
>> [email protected]> wrote:
>>
>>> Hi thanks both, when i use this code:
>>>
>>>     <skin:pagination query="#q#" typename="dmNews" paginationID=
>>> "searchNews" recordsPerPage="10" pageLinks="10">
>>>         <skin:view typename="#stobj.typename#" objectid=
>>> "#stobj.objectid#" webskin="#url.bodyView#" />
>>>     </skin:pagination>
>>>
>>> how to pass in the query result from the search if that is on the 
>>> webskin after the first pagination?
>>>
>>> Can you place a example code?
>>>
>>> Thanks.
>>>
>>> Op donderdag 14 maart 2013 17:58:24 UTC+1 schreef Chris Kent het 
>>> volgende:
>>>
>>>> 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: [email protected]
>>> To unsubscribe, email: [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 [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>>>
>>
>>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to