And of course if the image is NOT defined, replace **image1** with nothing ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com
-----Original Message----- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Sunday, August 05, 2007 1:17 PM To: CF-Talk Subject: RE: Content Placeholders I've done this in the past to allow the user to place images at specific places in their articles. I used tokens like... **image1** **image2** **image3** Etc... Then gave them a drop down menu for each image to select which image to display in each position. On the front end... If image1 is defined, #replace(str, '**image1**', '<img src="pathtoimage.jpg" alt="" title="" />', 'all')# And the same thing for the others. ...:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Mark Leder [mailto:[EMAIL PROTECTED] Sent: Sunday, August 05, 2007 10:19 AM To: CF-Talk Subject: Content Placeholders Hi, Trying to figure out how to use a placeholder in dynamic content to pull in other content at runtime. A user is entering text on a page in a database driven CMS system. If they insert a "token" or "Placeholder" in the middle of the copy somewhere (such as "%%ref01%%"), I would want that placeholder to dynamically insert additional text/graphics copy pulled from a different query, the inserted copy corresponding to that query's "ref01" ID. I could have two or three different "placeholders" within the page, each corresponding to a different "ID". I'm sure something like this is possible, but my searches for "placeholder" and "token" haven't turned up much. Thanks for your assistance, Mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285429 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

