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.

Path problems?

April 07, 2008 6:06pm

Subscribe [2]
  • #1 / Apr 07, 2008 6:06pm

    pychap

    69 posts

    Hi,

    I’m moving from design phase to html/CSS and migrating my site to EE. All that to say one of my paths isn’t working on my site - go here.

    I have manually uploaded images into the default ee image folder, inside it I have a folder “newSite” where the image resides.

    Now the image is part of an embed template, so in my site template, the index template, I have this code

    {embed="sudden_embeds/intro"}
    and in the intro template is this code;
    images/newSite/imageSquare.gif

    .

    The image right now is just a grey square gif but it’s not showing. What’s going on?

  • #2 / Apr 07, 2008 7:32pm

    Casey Reid

    82 posts

    It looks like a path problem, probably because of how you have your templates embedded. You can try using the absolute image URL instead of just the relative URL.

    Try:

    <a href="http://www.sudden-inspiration.com/cms/images/newSite/imageSquare.gif">http://www.sudden-inspiration.com/cms/images/newSite/imageSquare.gif</a>
  • #3 / Apr 07, 2008 8:15pm

    Pascal Kriete

    2589 posts

    Wohoo my first EE Forum post.

    Looking at your source, it shows up as:

    ../images/newSite/imageSquare.gif

    Which is obviously a dot too many.
    I don’t recall this as EE behavior, so double check your template.  I could be wrong.

    EDITED: Came across kind of rude before.

  • #4 / Apr 08, 2008 10:02am

    pychap

    69 posts

    The absolute URL worked, thanks!

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

ExpressionEngine News!

#eecms, #events, #releases