ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Content in Curly Bracket - specifically images - does not render

May 23, 2011 1:58pm

Subscribe [3]
  • #1 / May 23, 2011 1:58pm

    focusfusion

    58 posts

    This question may be related to a resolved thread.

    I feel like deja vu.  I posted this a few days ago, and now there’s no record of it.  I suspect this is because I didn’t add a title.  Interesting.

    In any case, my problem is this.  I’ve got some board member bios I want to post, including an image.

    I created custom fields for the board bios. 

    For the image, the idea is to just include the url in the field, and then have it render on the page with the code:

    {bio_photo_url}

    As you see here, the images don’t come out.  Other bracket content does, though. 

    FYI, the entire code is:

    {exp:channel:entries channel="{my_channel}" orderby="date" sort="asc" limit="15" disable="member_data|trackbacks"}
    <div class="entry">
    <a href="http://{title_permalink=site/article}">{bio_photo_url}</a> <h2><a href="http://{title_permalink=site/article}">{title}</a></h2>
    <p><b>{bio_title}</b><br />
    <div class="catsum">{bio_about}</div><br />
    </div><br />
    {/exp:channel:entries }<br />
    {/if}

    Debug is now set to 1, didn’t help.  I’ve also tried changing the format of the url text from “none” to “auto br” to “xhtml” - none of these seems to make a difference.

    Any ideas?

  • #2 / May 23, 2011 2:19pm

    Kernon

    173 posts

    Have you double checked what happens when Default Text Formatting for This Field is turned off (none) for bio_photo_url?

    Your HTML has an unneeded “a href=” after the SRC=, but I’m not sure where that is coming from, when you have formatting set to ‘none’.

  • #3 / May 23, 2011 4:39pm

    Sue Crocker

    26054 posts

    Hi, focusfusion.

    For the channel in question, have you turned off

    Automatically turn URLs and email addresses into links?

  • #4 / May 23, 2011 4:55pm

    focusfusion

    58 posts

    Kernon:
    I did try “none” but that didn’t work.

    However, I just tried “xml encode” and that does work. 

    I don’t even know what xml encode means. 

    If someone can explain.  In the meantime, that’s what I’m using.

    Thanks!

  • #5 / May 23, 2011 5:13pm

    focusfusion

    58 posts

    Sue:

    Ah!  I new it would be something like that.  No, “automatically turn urls into links” is set to “yes”.  However, with this handy “xml encode” discovery - I like the fact that I can see the pictures, but have the option of links automatically being generated from urls.

    It seems to provide flexibility.  So again, what does xml encode mean?

  • #6 / May 23, 2011 5:15pm

    focusfusion

    58 posts

    And thanks all for such quick responses!  You guys are great!

  • #7 / May 24, 2011 4:02pm

    Sue Crocker

    26054 posts

    Hi, focusfusion.

    Are you talking about the XML Encode plugin? http://expressionengine.com/downloads/details/xml_encode/

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases