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






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:285426
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