Andy Jarrett // Code. Develop. Create.

Cannot loop over cfpresentationslides ?

I was playing around with <cfpresentation> last night when I had an idea which involved using a query to loop over and create the <cfpresentationslides> tag.The idea seemed sound, but in practice it didn't work. What happens is that you will get as many slides as you have in the loop/query, but for each iteration you will only see the content from the last slide. Here's some sample code that I've been playing around with but instead of a query just a simple loop:

Hello Foo

#q#
Running it on my machine gives me the following output:cfpresentation errorIf this is planned behavior it seems odd to me to put this kind of restriction on this dynamic presentation tag. Having to possibly write 30+ slide by hand makes this tag a nightmare for future maintainability. If this is a bug, then I should get it submitted.

I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee. Your support keeps this site running and the coffee brewing! ☕️