|
View:
New views
15 Messages
—
Rating Filter:
Alert me
|
|
|
Pagination submissiontype="form"I am trying with this code, of course now the entire page is included as i didn't gave a view, what should the view look like?: <cfset ajaxactionurl = application.fapi.getlink (typename="#stobj.typename#") /> <ft:form bajaxsubmission="true" action="#ajaxactionurl#"> <!--- THIS MEANS PAGINATE ---> <ft:pagination actionURL = "#application.fapi.getLink(objectid=request.navid)#" paginationID="ruleNews" qRecordSet="#q#" typename="shopproducts" pageLinks="10" recordsPerPage="#stobj.numitems#" Top="true" Bottom="false" renderType="inline" submissiontype="form"> <ft:paginateLoop r_stObject="stNews" > <skin:view objectid="#stNews.objectid#" typename="shopproducts" webskin="#stObj.displaymethod#" /> </ft:paginateLoop> </ft:pagination> </ft:form> --~--~---------~--~----~------------~-------~--~----~ 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 submissiontype="form"Any smart brain out there that can shine a light on this? Please... On Jul 4, 10:51 pm, Marco van den Oever <marcovandenoe...@...> wrote: > I am trying with this code, of course now the entire page is included > as i didn't gave a view, what should the view look like?: > > <cfset ajaxactionurl = application.fapi.getlink > (typename="#stobj.typename#") /> > > <ft:form bajaxsubmission="true" action="#ajaxactionurl#"> > > <!--- THIS MEANS PAGINATE ---> > <ft:pagination > actionURL = "#application.fapi.getLink(objectid=request.navid)#" > paginationID="ruleNews" > qRecordSet="#q#" > typename="shopproducts" > pageLinks="10" > recordsPerPage="#stobj.numitems#" > Top="true" > Bottom="false" > renderType="inline" > submissiontype="form"> > > <ft:paginateLoop r_stObject="stNews" > > <skin:view objectid="#stNews.objectid#" typename="shopproducts" > webskin="#stObj.displaymethod#" /> > </ft:paginateLoop> > > </ft:pagination> > > </ft:form> 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 submissiontype="form"ft:pagination has been deprecated -- do not use this. Try this instead: http://docs.farcrycms.org/display/FCDEV50/Pagination -- gb On Jul 5, 6:51 am, Marco van den Oever <marcovandenoe...@...> wrote: > <!--- THIS MEANS PAGINATE ---> > <ft:pagination > actionURL = "#application.fapi.getLink(objectid=request.navid)#" > paginationID="ruleNews" > qRecordSet="#q#" > typename="shopproducts" > pageLinks="10" > recordsPerPage="#stobj.numitems#" > Top="true" > Bottom="false" > renderType="inline" > submissiontype="form"> > > <ft:paginateLoop r_stObject="stNews" > > <skin:view objectid="#stNews.objectid#" typename="shopproducts" > webskin="#stObj.displaymethod#" /> > </ft:paginateLoop> > > </ft: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 submissiontype="form"So do i have to move the following code to displayLinks.cfm or create an own loop?: <ft:paginateLoop r_stObject="stNews"> <skin:view objectid="#stNews.objectid#" typename="shopproducts" webskin="#stObj.displaymethod#" /> </ft:paginateLoop> On Jul 7, 2:36 pm, modius <mod...@...> wrote: > ft:pagination has been deprecated -- do not use this. > > Try this instead:http://docs.farcrycms.org/display/FCDEV50/Pagination > > -- gb > > On Jul 5, 6:51 am, Marco van den Oever <marcovandenoe...@...> > wrote: > > > <!--- THIS MEANS PAGINATE ---> > > <ft:pagination > > actionURL = "#application.fapi.getLink(objectid=request.navid)#" > > paginationID="ruleNews" > > qRecordSet="#q#" > > typename="shopproducts" > > pageLinks="10" > > recordsPerPage="#stobj.numitems#" > > Top="true" > > Bottom="false" > > renderType="inline" > > submissiontype="form"> > > > <ft:paginateLoop r_stObject="stNews" > > > <skin:view objectid="#stNews.objectid#" typename="shopproducts" > > webskin="#stObj.displaymethod#" /> > > </ft:paginateLoop> > > > </ft: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 submissiontype="form"Ok i'm a bit further now, only problem i have now is that the cfloop gives me the same articles instead of all different ones in a row, what am i missing? <skin:pagination query="#q#" typename="shopproducts" pageLinks="10" recordsPerPage="#stobj.numitems#" submissiontype="form"> <skin:view objectid="#q.objectid#" typename="shopproducts" webskin="#stObj.displaymethod#" /> </skin:pagination> On Jul 8, 3:20 am, Marco van den Oever <marcovandenoe...@...> wrote: > So do i have to move the following code to displayLinks.cfm or create > an own loop?: > > <ft:paginateLoop r_stObject="stNews"> > <skin:view objectid="#stNews.objectid#" typename="shopproducts" > webskin="#stObj.displaymethod#" /> > </ft:paginateLoop> > > On Jul 7, 2:36 pm, modius <mod...@...> wrote: > > > ft:pagination has been deprecated -- do not use this. > > > Try this instead:http://docs.farcrycms.org/display/FCDEV50/Pagination > > > -- gb > > > On Jul 5, 6:51 am, Marco van den Oever <marcovandenoe...@...> > > wrote: > > > > <!--- THIS MEANS PAGINATE ---> > > > <ft:pagination > > > actionURL = "#application.fapi.getLink(objectid=request.navid)#" > > > paginationID="ruleNews" > > > qRecordSet="#q#" > > > typename="shopproducts" > > > pageLinks="10" > > > recordsPerPage="#stobj.numitems#" > > > Top="true" > > > Bottom="false" > > > renderType="inline" > > > submissiontype="form"> > > > > <ft:paginateLoop r_stObject="stNews" > > > > <skin:view objectid="#stNews.objectid#" typename="shopproducts" > > > webskin="#stObj.displaymethod#" /> > > > </ft:paginateLoop> > > > > </ft: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 submissiontype="form"You're almost there... sorry the doco is appalling without looking inside the tag for what is going on. Been meaning to add to this to the Jump Start guide in more detail. You are referencing q.objectid but you should be referencing stobject.objectid (ie. actually request.stobject.objectid) within your skin:view call instead. Basically the skin:pagination tag manages the loop, and provides you with a new #request.stobject# variable with the contents of the current row each loop. You can rename this variable using the r_stobject="myVar" attribute. Hope that helps, -- gb On Jul 8, 1:58 pm, Marco van den Oever <marcovandenoe...@...> wrote: > Ok i'm a bit further now, only problem i have now is that the cfloop > gives me the same articles instead of all different ones in a row, > what am i missing? > > <skin:pagination > query="#q#" > typename="shopproducts" > pageLinks="10" > recordsPerPage="#stobj.numitems#" > submissiontype="form"> > > <skin:view objectid="#q.objectid#" typename="shopproducts" > webskin="#stObj.displaymethod#" /> > > </skin: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 submissiontype="form"On Jul 8, 2009, at 3:01 AM, modius wrote: > Basically the skin:pagination tag manages the loop, and provides you > with a new #request.stobject# variable with the contents of the > current row each loop. You can rename this variable using the > r_stobject="myVar" attribute. I'm sure it was just a typo in your email response, but the custom tag (pagination.cfm) sets a caller variable which in turn sets the values to the the caller's "variables" scope (not the request scope) :) -- Jeff Coughlin Web Application Developer http://jeffcoughlin.com --~--~---------~--~----~------------~-------~--~----~ 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 submissiontype="form"Yes that helped, added some code and your explanation to: http://docs.farcrycms.org/display/FCDEV50/Pagination Might be also easy to copy paste for jump start guide. On Jul 8, 9:01 am, modius <mod...@...> wrote: > You're almost there... sorry the doco is appalling without looking > inside the tag for what is going on. Been meaning to add to this to > the Jump Start guide in more detail. > > You are referencing q.objectid but you should be referencing > stobject.objectid (ie. actually request.stobject.objectid) within your > skin:view call instead. > > Basically the skin:pagination tag manages the loop, and provides you > with a new #request.stobject# variable with the contents of the > current row each loop. You can rename this variable using the > r_stobject="myVar" attribute. > > Hope that helps, > > -- gb > > On Jul 8, 1:58 pm, Marco van den Oever <marcovandenoe...@...> > wrote: > > > Ok i'm a bit further now, only problem i have now is that the cfloop > > gives me the same articles instead of all different ones in a row, > > what am i missing? > > > <skin:pagination > > query="#q#" > > typename="shopproducts" > > pageLinks="10" > > recordsPerPage="#stobj.numitems#" > > submissiontype="form"> > > > <skin:view objectid="#q.objectid#" typename="shopproducts" > > webskin="#stObj.displaymethod#" /> > > > </skin: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 submissiontype="form"Now only the ajax functionality, using the following code i get a blank page when clicking next, i am not sure how to handle the view attribute, when filling in displayTeaserStandard as view (which i thought was logical) that doesn't work: <cfset ajaxactionurl = application.fapi.getlink (typename="shopproducts", objectid="#stobj.objectid#", view="#stObj.displaymethod#") /> <ft:form bajaxsubmission="true" action="#ajaxactionurl#"> <!--- THIS MEANS PAGINATE ---> <skin:pagination query="#q#" typename="shopproducts" pageLinks="10" recordsPerPage="#stobj.numitems#" submissiontype="form"> <skin:view objectid="#stobject.objectid#" typename="shopproducts" webskin="#stObj.displaymethod#" /> </skin:pagination> </ft:form> Any light in the darkness??? On Jul 8, 5:16 pm, Marco van den Oever <marcovandenoe...@...> wrote: > Yes that helped, added some code and your explanation to: > > http://docs.farcrycms.org/display/FCDEV50/Pagination > > Might be also easy to copy paste for jump start guide. > > On Jul 8, 9:01 am, modius <mod...@...> wrote: > > > You're almost there... sorry the doco is appalling without looking > > inside the tag for what is going on. Been meaning to add to this to > > the Jump Start guide in more detail. > > > You are referencing q.objectid but you should be referencing > > stobject.objectid (ie. actually request.stobject.objectid) within your > > skin:view call instead. > > > Basically the skin:pagination tag manages the loop, and provides you > > with a new #request.stobject# variable with the contents of the > > current row each loop. You can rename this variable using the > > r_stobject="myVar" attribute. > > > Hope that helps, > > > -- gb > > > On Jul 8, 1:58 pm, Marco van den Oever <marcovandenoe...@...> > > wrote: > > > > Ok i'm a bit further now, only problem i have now is that the cfloop > > > gives me the same articles instead of all different ones in a row, > > > what am i missing? > > > > <skin:pagination > > > query="#q#" > > > typename="shopproducts" > > > pageLinks="10" > > > recordsPerPage="#stobj.numitems#" > > > submissiontype="form"> > > > > <skin:view objectid="#q.objectid#" typename="shopproducts" > > > webskin="#stObj.displaymethod#" /> > > > > </skin: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 submissiontype="form"On Jul 9, 12:58 am, Jeff Coughlin <j...@...> wrote: > > Basically the skin:pagination tag manages the loop, and provides you > > with a new #request.stobject# variable with the contents of the > > current row each loop. You can rename this variable using the > > r_stobject="myVar" attribute. > > I'm sure it was just a typo in your email response, but the custom tag > (pagination.cfm) sets a caller variable which in turn sets the values > to the the caller's "variables" scope (not the request scope) :) Aye... caller.. request.. it's all double-dutch to me sometimes ;) Thanks for the correction. -- gb --~--~---------~--~----~------------~-------~--~----~ 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 submissiontype="form"Hey Marco, What is the name of the webskin that your code is located in? Lets pretend its called "displayProducts". -------- <cfset ajaxactionurl = application.fapi.getlink (typename="shopproducts", objectid="#stobj.objectid#", view="displayProducts") /> <ft:form name="displayProducts" bajaxsubmission="true" action="#ajaxactionurl#"> ----------- Notice I have changed the view attribute of the getLink() to the webskin we are trying to refresh. I have also given the form a name (displayProducts) so that when the view is refreshed the id of the form will remain the same. Let me know how you get on. -- Mat. On Jul 9, 8:41 am, Marco van den Oever <marcovandenoe...@...> wrote: > Now only the ajax functionality, using the following code i get a > blank page when clicking next, i am not sure how to handle the view > attribute, when filling in displayTeaserStandard as view (which i > thought was logical) that doesn't work: > > <cfset ajaxactionurl = application.fapi.getlink > (typename="shopproducts", objectid="#stobj.objectid#", > view="#stObj.displaymethod#") /> > > <ft:form bajaxsubmission="true" action="#ajaxactionurl#"> > > <!--- THIS MEANS PAGINATE ---> > > <skin:pagination > query="#q#" > typename="shopproducts" > pageLinks="10" > recordsPerPage="#stobj.numitems#" > submissiontype="form"> > > <skin:view objectid="#stobject.objectid#" typename="shopproducts" > webskin="#stObj.displaymethod#" /> > > </skin:pagination> > > </ft:form> > > Any light in the darkness??? > > On Jul 8, 5:16 pm, Marco van den Oever <marcovandenoe...@...> > wrote: > > > > > Yes that helped, added some code and your explanation to: > > >http://docs.farcrycms.org/display/FCDEV50/Pagination > > > Might be also easy to copy paste for jump start guide. > > > On Jul 8, 9:01 am, modius <mod...@...> wrote: > > > > You're almost there... sorry the doco is appalling without looking > > > inside the tag for what is going on. Been meaning to add to this to > > > the Jump Start guide in more detail. > > > > You are referencing q.objectid but you should be referencing > > > stobject.objectid (ie. actually request.stobject.objectid) within your > > > skin:view call instead. > > > > Basically the skin:pagination tag manages the loop, and provides you > > > with a new #request.stobject# variable with the contents of the > > > current row each loop. You can rename this variable using the > > > r_stobject="myVar" attribute. > > > > Hope that helps, > > > > -- gb > > > > On Jul 8, 1:58 pm, Marco van den Oever <marcovandenoe...@...> > > > wrote: > > > > > Ok i'm a bit further now, only problem i have now is that the cfloop > > > > gives me the same articles instead of all different ones in a row, > > > > what am i missing? > > > > > <skin:pagination > > > > query="#q#" > > > > typename="shopproducts" > > > > pageLinks="10" > > > > recordsPerPage="#stobj.numitems#" > > > > submissiontype="form"> > > > > > <skin:view objectid="#q.objectid#" typename="shopproducts" > > > > webskin="#stObj.displaymethod#" /> > > > > > </skin: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 submissiontype="form"Oh my god, i got it working :) Looks so cool ! Of course the ajaxaction url has to point to the code where the ajax is called from. So in my case this was in a "execute" webskin of ruleShopproducts, so: <cfset ajaxactionurl = application.fapi.getlink (typename="ruleShopproducts", objectid="#stobj.objectid#", view="execute") /> Thanks... On Jul 9, 1:50 am, MJB <m.bry...@...> wrote: > Hey Marco, > > What is the name of the webskin that your code is located in? Lets > pretend its called "displayProducts". > > -------- > <cfset ajaxactionurl = application.fapi.getlink > (typename="shopproducts", objectid="#stobj.objectid#", > view="displayProducts") /> > <ft:form name="displayProducts" bajaxsubmission="true" > action="#ajaxactionurl#"> > ----------- > > Notice I have changed the view attribute of the getLink() to the > webskin we are trying to refresh. > > I have also given the form a name (displayProducts) so that when the > view is refreshed the id of the form will remain the same. > > Let me know how you get on. > > -- Mat. > > On Jul 9, 8:41 am, Marco van den Oever <marcovandenoe...@...> > wrote: > > > Now only the ajax functionality, using the following code i get a > > blank page when clicking next, i am not sure how to handle the view > > attribute, when filling in displayTeaserStandard as view (which i > > thought was logical) that doesn't work: > > > <cfset ajaxactionurl = application.fapi.getlink > > (typename="shopproducts", objectid="#stobj.objectid#", > > view="#stObj.displaymethod#") /> > > > <ft:form bajaxsubmission="true" action="#ajaxactionurl#"> > > > <!--- THIS MEANS PAGINATE ---> > > > <skin:pagination > > query="#q#" > > typename="shopproducts" > > pageLinks="10" > > recordsPerPage="#stobj.numitems#" > > submissiontype="form"> > > > <skin:view objectid="#stobject.objectid#" typename="shopproducts" > > webskin="#stObj.displaymethod#" /> > > > </skin:pagination> > > > </ft:form> > > > Any light in the darkness??? > > > On Jul 8, 5:16 pm, Marco van den Oever <marcovandenoe...@...> > > wrote: > > > > Yes that helped, added some code and your explanation to: > > > >http://docs.farcrycms.org/display/FCDEV50/Pagination > > > > Might be also easy to copy paste for jump start guide. > > > > On Jul 8, 9:01 am, modius <mod...@...> wrote: > > > > > You're almost there... sorry the doco is appalling without looking > > > > inside the tag for what is going on. Been meaning to add to this to > > > > the Jump Start guide in more detail. > > > > > You are referencing q.objectid but you should be referencing > > > > stobject.objectid (ie. actually request.stobject.objectid) within your > > > > skin:view call instead. > > > > > Basically the skin:pagination tag manages the loop, and provides you > > > > with a new #request.stobject# variable with the contents of the > > > > current row each loop. You can rename this variable using the > > > > r_stobject="myVar" attribute. > > > > > Hope that helps, > > > > > -- gb > > > > > On Jul 8, 1:58 pm, Marco van den Oever <marcovandenoe...@...> > > > > wrote: > > > > > > Ok i'm a bit further now, only problem i have now is that the cfloop > > > > > gives me the same articles instead of all different ones in a row, > > > > > what am i missing? > > > > > > <skin:pagination > > > > > query="#q#" > > > > > typename="shopproducts" > > > > > pageLinks="10" > > > > > recordsPerPage="#stobj.numitems#" > > > > > submissiontype="form"> > > > > > > <skin:view objectid="#q.objectid#" typename="shopproducts" > > > > > webskin="#stObj.displaymethod#" /> > > > > > > </skin: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 submissiontype="form"Of course now i want to raise the bar and wondering what the approach would be to click on an "order product" link so that, on the same page but in another container, the shop cart is updated, is this possible? On Jul 9, 2:59 am, Marco van den Oever <marcovandenoe...@...> wrote: > Oh my god, i got it working :) Looks so cool ! > > Of course the ajaxaction url has to point to the code where the ajax > is called from. > So in my case this was in a "execute" webskin of ruleShopproducts, so: > > <cfset ajaxactionurl = application.fapi.getlink > (typename="ruleShopproducts", objectid="#stobj.objectid#", > view="execute") /> > > Thanks... > > On Jul 9, 1:50 am, MJB <m.bry...@...> wrote: > > > Hey Marco, > > > What is the name of the webskin that your code is located in? Lets > > pretend its called "displayProducts". > > > -------- > > <cfset ajaxactionurl = application.fapi.getlink > > (typename="shopproducts", objectid="#stobj.objectid#", > > view="displayProducts") /> > > <ft:form name="displayProducts" bajaxsubmission="true" > > action="#ajaxactionurl#"> > > ----------- > > > Notice I have changed the view attribute of the getLink() to the > > webskin we are trying to refresh. > > > I have also given the form a name (displayProducts) so that when the > > view is refreshed the id of the form will remain the same. > > > Let me know how you get on. > > > -- Mat. > > > On Jul 9, 8:41 am, Marco van den Oever <marcovandenoe...@...> > > wrote: > > > > Now only the ajax functionality, using the following code i get a > > > blank page when clicking next, i am not sure how to handle the view > > > attribute, when filling in displayTeaserStandard as view (which i > > > thought was logical) that doesn't work: > > > > <cfset ajaxactionurl = application.fapi.getlink > > > (typename="shopproducts", objectid="#stobj.objectid#", > > > view="#stObj.displaymethod#") /> > > > > <ft:form bajaxsubmission="true" action="#ajaxactionurl#"> > > > > <!--- THIS MEANS PAGINATE ---> > > > > <skin:pagination > > > query="#q#" > > > typename="shopproducts" > > > pageLinks="10" > > > recordsPerPage="#stobj.numitems#" > > > submissiontype="form"> > > > > <skin:view objectid="#stobject.objectid#" typename="shopproducts" > > > webskin="#stObj.displaymethod#" /> > > > > </skin:pagination> > > > > </ft:form> > > > > Any light in the darkness??? > > > > On Jul 8, 5:16 pm, Marco van den Oever <marcovandenoe...@...> > > > wrote: > > > > > Yes that helped, added some code and your explanation to: > > > > >http://docs.farcrycms.org/display/FCDEV50/Pagination > > > > > Might be also easy to copy paste for jump start guide. > > > > > On Jul 8, 9:01 am, modius <mod...@...> wrote: > > > > > > You're almost there... sorry the doco is appalling without looking > > > > > inside the tag for what is going on. Been meaning to add to this to > > > > > the Jump Start guide in more detail. > > > > > > You are referencing q.objectid but you should be referencing > > > > > stobject.objectid (ie. actually request.stobject.objectid) within your > > > > > skin:view call instead. > > > > > > Basically the skin:pagination tag manages the loop, and provides you > > > > > with a new #request.stobject# variable with the contents of the > > > > > current row each loop. You can rename this variable using the > > > > > r_stobject="myVar" attribute. > > > > > > Hope that helps, > > > > > > -- gb > > > > > > On Jul 8, 1:58 pm, Marco van den Oever <marcovandenoe...@...> > > > > > wrote: > > > > > > > Ok i'm a bit further now, only problem i have now is that the cfloop > > > > > > gives me the same articles instead of all different ones in a row, > > > > > > what am i missing? > > > > > > > <skin:pagination > > > > > > query="#q#" > > > > > > typename="shopproducts" > > > > > > pageLinks="10" > > > > > > recordsPerPage="#stobj.numitems#" > > > > > > submissiontype="form"> > > > > > > > <skin:view objectid="#q.objectid#" typename="shopproducts" > > > > > > webskin="#stObj.displaymethod#" /> > > > > > > > </skin: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 submissiontype="form"Reviewing the "getLink" function now in fapi.cfc, must be some answers there. Still, if anyone uses ajax to click link and set action in some other area of the page, examples will be appreciated. On Jul 9, 3:34 am, Marco van den Oever <marcovandenoe...@...> wrote: > Of course now i want to raise the bar and wondering what the approach > would be to click on an "order product" link so that, on the same page > but in another container, the shop cart is updated, is this possible? > > On Jul 9, 2:59 am, Marco van den Oever <marcovandenoe...@...> > wrote: > > > Oh my god, i got it working :) Looks so cool ! > > > Of course the ajaxaction url has to point to the code where the ajax > > is called from. > > So in my case this was in a "execute" webskin of ruleShopproducts, so: > > > <cfset ajaxactionurl = application.fapi.getlink > > (typename="ruleShopproducts", objectid="#stobj.objectid#", > > view="execute") /> > > > Thanks... > > > On Jul 9, 1:50 am, MJB <m.bry...@...> wrote: > > > > Hey Marco, > > > > What is the name of the webskin that your code is located in? Lets > > > pretend its called "displayProducts". > > > > -------- > > > <cfset ajaxactionurl = application.fapi.getlink > > > (typename="shopproducts", objectid="#stobj.objectid#", > > > view="displayProducts") /> > > > <ft:form name="displayProducts" bajaxsubmission="true" > > > action="#ajaxactionurl#"> > > > ----------- > > > > Notice I have changed the view attribute of the getLink() to the > > > webskin we are trying to refresh. > > > > I have also given the form a name (displayProducts) so that when the > > > view is refreshed the id of the form will remain the same. > > > > Let me know how you get on. > > > > -- Mat. > > > > On Jul 9, 8:41 am, Marco van den Oever <marcovandenoe...@...> > > > wrote: > > > > > Now only the ajax functionality, using the following code i get a > > > > blank page when clicking next, i am not sure how to handle the view > > > > attribute, when filling in displayTeaserStandard as view (which i > > > > thought was logical) that doesn't work: > > > > > <cfset ajaxactionurl = application.fapi.getlink > > > > (typename="shopproducts", objectid="#stobj.objectid#", > > > > view="#stObj.displaymethod#") /> > > > > > <ft:form bajaxsubmission="true" action="#ajaxactionurl#"> > > > > > <!--- THIS MEANS PAGINATE ---> > > > > > <skin:pagination > > > > query="#q#" > > > > typename="shopproducts" > > > > pageLinks="10" > > > > recordsPerPage="#stobj.numitems#" > > > > submissiontype="form"> > > > > > <skin:view objectid="#stobject.objectid#" typename="shopproducts" > > > > webskin="#stObj.displaymethod#" /> > > > > > </skin:pagination> > > > > > </ft:form> > > > > > Any light in the darkness??? > > > > > On Jul 8, 5:16 pm, Marco van den Oever <marcovandenoe...@...> > > > > wrote: > > > > > > Yes that helped, added some code and your explanation to: > > > > > >http://docs.farcrycms.org/display/FCDEV50/Pagination > > > > > > Might be also easy to copy paste for jump start guide. > > > > > > On Jul 8, 9:01 am, modius <mod...@...> wrote: > > > > > > > You're almost there... sorry the doco is appalling without looking > > > > > > inside the tag for what is going on. Been meaning to add to this to > > > > > > the Jump Start guide in more detail. > > > > > > > You are referencing q.objectid but you should be referencing > > > > > > stobject.objectid (ie. actually request.stobject.objectid) within your > > > > > > skin:view call instead. > > > > > > > Basically the skin:pagination tag manages the loop, and provides you > > > > > > with a new #request.stobject# variable with the contents of the > > > > > > current row each loop. You can rename this variable using the > > > > > > r_stobject="myVar" attribute. > > > > > > > Hope that helps, > > > > > > > -- gb > > > > > > > On Jul 8, 1:58 pm, Marco van den Oever <marcovandenoe...@...> > > > > > > wrote: > > > > > > > > Ok i'm a bit further now, only problem i have now is that the cfloop > > > > > > > gives me the same articles instead of all different ones in a row, > > > > > > > what am i missing? > > > > > > > > <skin:pagination > > > > > > > query="#q#" > > > > > > > typename="shopproducts" > > > > > > > pageLinks="10" > > > > > > > recordsPerPage="#stobj.numitems#" > > > > > > > submissiontype="form"> > > > > > > > > <skin:view objectid="#q.objectid#" typename="shopproducts" > > > > > > > webskin="#stObj.displaymethod#" /> > > > > > > > > </skin: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 submissiontype="form"I am using the ajaxurl like described in the thread above, i noticed that when i load the page which include the ajax section (includes shop products with greybox functionality on the images) i can use the greybox functionality just fine, as soon i use the ajaxurl by browsing next or previous the greybox is not working anymore... Anyone noticed and solved this javascript? conflict? Thanks. On Jul 10, 12:32 am, Marco van den Oever <marcovandenoe...@...> wrote: > Reviewing the "getLink" function now in fapi.cfc, must be some answers > there. > Still, if anyone uses ajax to click link and set action in some other > area of the page, examples will be appreciated. > > On Jul 9, 3:34 am, Marco van den Oever <marcovandenoe...@...> > wrote: > > > Of course now i want to raise the bar and wondering what the approach > > would be to click on an "order product" link so that, on the same page > > but in another container, the shop cart is updated, is this possible? > > > On Jul 9, 2:59 am, Marco van den Oever <marcovandenoe...@...> > > wrote: > > > > Oh my god, i got it working :) Looks so cool ! > > > > Of course the ajaxaction url has to point to the code where the ajax > > > is called from. > > > So in my case this was in a "execute" webskin of ruleShopproducts, so: > > > > <cfset ajaxactionurl = application.fapi.getlink > > > (typename="ruleShopproducts", objectid="#stobj.objectid#", > > > view="execute") /> > > > > Thanks... > > > > On Jul 9, 1:50 am, MJB <m.bry...@...> wrote: > > > > > Hey Marco, > > > > > What is the name of the webskin that your code is located in? Lets > > > > pretend its called "displayProducts". > > > > > -------- > > > > <cfset ajaxactionurl = application.fapi.getlink > > > > (typename="shopproducts", objectid="#stobj.objectid#", > > > > view="displayProducts") /> > > > > <ft:form name="displayProducts" bajaxsubmission="true" > > > > action="#ajaxactionurl#"> > > > > ----------- > > > > > Notice I have changed the view attribute of the getLink() to the > > > > webskin we are trying to refresh. > > > > > I have also given the form a name (displayProducts) so that when the > > > > view is refreshed the id of the form will remain the same. > > > > > Let me know how you get on. > > > > > -- Mat. > > > > > On Jul 9, 8:41 am, Marco van den Oever <marcovandenoe...@...> > > > > wrote: > > > > > > Now only the ajax functionality, using the following code i get a > > > > > blank page when clicking next, i am not sure how to handle the view > > > > > attribute, when filling in displayTeaserStandard as view (which i > > > > > thought was logical) that doesn't work: > > > > > > <cfset ajaxactionurl = application.fapi.getlink > > > > > (typename="shopproducts", objectid="#stobj.objectid#", > > > > > view="#stObj.displaymethod#") /> > > > > > > <ft:form bajaxsubmission="true" action="#ajaxactionurl#"> > > > > > > <!--- THIS MEANS PAGINATE ---> > > > > > > <skin:pagination > > > > > query="#q#" > > > > > typename="shopproducts" > > > > > pageLinks="10" > > > > > recordsPerPage="#stobj.numitems#" > > > > > submissiontype="form"> > > > > > > <skin:view objectid="#stobject.objectid#" typename="shopproducts" > > > > > webskin="#stObj.displaymethod#" /> > > > > > > </skin:pagination> > > > > > > </ft:form> > > > > > > Any light in the darkness??? > > > > > > On Jul 8, 5:16 pm, Marco van den Oever <marcovandenoe...@...> > > > > > wrote: > > > > > > > Yes that helped, added some code and your explanation to: > > > > > > >http://docs.farcrycms.org/display/FCDEV50/Pagination > > > > > > > Might be also easy to copy paste for jump start guide. > > > > > > > On Jul 8, 9:01 am, modius <mod...@...> wrote: > > > > > > > > You're almost there... sorry the doco is appalling without looking > > > > > > > inside the tag for what is going on. Been meaning to add to this to > > > > > > > the Jump Start guide in more detail. > > > > > > > > You are referencing q.objectid but you should be referencing > > > > > > > stobject.objectid (ie. actually request.stobject.objectid) within your > > > > > > > skin:view call instead. > > > > > > > > Basically the skin:pagination tag manages the loop, and provides you > > > > > > > with a new #request.stobject# variable with the contents of the > > > > > > > current row each loop. You can rename this variable using the > > > > > > > r_stobject="myVar" attribute. > > > > > > > > Hope that helps, > > > > > > > > -- gb > > > > > > > > On Jul 8, 1:58 pm, Marco van den Oever <marcovandenoe...@...> > > > > > > > wrote: > > > > > > > > > Ok i'm a bit further now, only problem i have now is that the cfloop > > > > > > > > gives me the same articles instead of all different ones in a row, > > > > > > > > what am i missing? > > > > > > > > > <skin:pagination > > > > > > > > query="#q#" > > > > > > > > typename="shopproducts" > > > > > > > > pageLinks="10" > > > > > > > > recordsPerPage="#stobj.numitems#" > > > > > > > > submissiontype="form"> > > > > > > > > > <skin:view objectid="#q.objectid#" typename="shopproducts" > > > > > > > > webskin="#stObj.displaymethod#" /> > > > > > > > > > </skin: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 -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |