I was just using images as an example. The img tag could be replaced with whatever you wanted.
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Justin Scott [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 10:27 AM To: CF-Talk Subject: RE: Content Placeholders > > > 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285595 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

