Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

process CF tags within retreived text field?

New Here ,
Apr 07, 2006 Apr 07, 2006
I've searched the forums without luck, so I hope someone can help me out...
We have a CMS of sorts, which contains content in SQL database, editable with text fields.
I need to run an image-related custom tag from *within* the contents of a text field. CF, of course, wants to spit out the text as text and move on. Is there a way I can get it to run the CF code contained within?
Thanks,
ToddZ
TOPICS
Advanced techniques
2.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 17, 2006 Apr 17, 2006
LATEST
Well, there are hacks to deal with a box model problem in IE-Win versions previous to 6, where IE thinks the "width" of an element actually includes the width of the padding and border, too.

The different problem I'm facing is that when the width of a nested div is unspecified, IE (even current versions) defaults to maximum, rather than minimum. So it fills 100% of the width of the parent div. This is a problem when you want an inline div to contain an image and have text wrap around it. The solution is simply to specify a div width. But since I'm working on a CMS holding articles that can contain images of X width, I have to dynamically obtain that width and specify it for the div (CFX_ImageInfoMX does that for me.)

And because I'm working in an automated CMS system, where there is just one template to display all articles, code written for an exact [contentFromDB that you created] doesn't do the trick. There is no common content structure. It has to work for #contentFromDB#, whatever that field happens to contain. It could be X paragraphs with Y line breaks and Z images.

So, I think I'm still at the solution of generating .cfm files to contain the article content...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources