Custom Tag with images

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Custom Tag with images

    I am trying to create a custom tag that displays a table and an image on a
    table. The custom tag will actually reside inside the "custom tag" directory
    for ColdFusion 7. How can i display the table and the image on the page? I
    have no problem displaying the table. It is obviously just html text. But i'm
    not sure how to get the image that is in the custom directory to display on the
    page. What is the best way to do this? Anyone? Someone must have tried to
    tackle this problem before. My custom tage directory looks like this:

    C:\CFusionMX7\CustomTags\mycustomtag\mycustomtag.c fm
    C:\CFusionMX7\CustomTags\mycustomtag\image.gif

    Please help!

    xelatek Guest

  2. Similar Questions and Discussions

    1. Extension: Dynamic Images/Advance Random Images
      Hi there, I have downloaded 2 extensions: Dynamic Images or/and Advanced Random Images (kaosweaver.com); it seems both are the same and I have...
    2. Custom stamp images and print time
      I've created a PDF of a page of sheet music output with fonts from a music notation program. From that I'm making a "sample" for my customers to...
    3. Distributing images required by custom control?
      Hi, I am developing a new custom server control, and need to find the best way to store / retrieve the images which are required by the control....
    4. Web Custom Control - Retrieve Images from a Multifile Assembly
      How do I store an image and a web custom control's dll in a multifile assembly so that the image can be retrieved and displayed while the control...
    5. Creating Quick Vector Images from Raster images
      Hi ! I am aware of the conventional methods to create vector images from raster images, i.e. drawing the lines individually, then adding...
  3. #2

    Default Re: Custom Tag with images

    It is possible but it is not a good idea (for security and portability mainly).

    Better to copy the image to a directory off of your web root, say
    "/commonGraphics/image.gif" and then have your customtag point to the image in
    that location. Be sure to comment what external files are required -- or
    better yet, make the file and path ,to "/commonGraphics/image.gif", just the
    default of a paramter input to the custom tag.

    Cheers,
    -MikeR


    MikerRoo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139