> > > Trying to figure out how to use a placeholder in dynamic > > > content to pull in other content at runtime. > > > > I would approach this by using a regular expression with > > some looping to pull all of variables out of the content > > and put them into a list or array. > > I wouldn't add the overhead of looping and regex finding > where it is totally not needed. Get the selected image > record from the database...
If you'll remember that the original poster mentioned "dynamic content" which does not specifically mean images. Your solution works fine if you know in advance what the content is going to be (images with numbered IDs), but if you want to be able to use whatever content you like without having to create all of the output in advance, you will find the approach I proposed to be more flexible. In any case, someone on the list will likely benefit from both solutions. -Justin Scott ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285570 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

