Yeah, I was thinking about some type of conditional logic that would parse
the entire html to look for an instance of **image01** to trigger the
replace.

Mark

-----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.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:285428
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to