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.

View template not rendering properly

January 31, 2012 11:02am

Subscribe [3]
  • #1 / Jan 31, 2012 11:02am

    jglauser

    10 posts

    So, I’ve created channels for several areas on my website and index pages work but the view templates are not rendering correctly.  I set the view template up as a webpage and simply copied static html into the editing area.  What’s weird is everything is rendering correctly except for the view templates in each channel.  I think that it’s probably because the URI path isn’t defined correctly but I can’t figure it out.  Could you help please?  Thanks!

    Example URL:

    http://jeremyglauser.com/portfolio/view/

    http://jeremyglauser.com/portfolio/view/visual-speech-therapy-website

  • #2 / Jan 31, 2012 4:18pm

    I see that your CSS is linked as http://jeremyglauser.com/portfolio/view/style.css, as your default 404 returns a page in EE it will be broken. Try to fix the CSS. Also all images are not found e.g http://jeremyglauser.com/portfolio/view/theme_assets/images/wwf33dab4aft5-849x419.jpg. The CSS and images have in common that they add “portfolio/view/” to the url. Are you using relative or absolute paths for these items?

  • #3 / Jan 31, 2012 5:20pm

    jglauser

    10 posts

    Excuse my ignorance, but I’m new to this.  How do you remove “/portfolio/view/” from the css and image upload directory?

  • #4 / Feb 01, 2012 3:36am

    For the CSS, how did you link it? if it is like :

    <link href="mydirectory/960.css" rel="stylesheet" type="text/css" />
    change is to
    <link href="/mydirectory/960.css" rel="stylesheet" type="text/css" />

    the same goes for the images. Try adding an / as it indicates the position from the root of your website.

    Not clear? maybe this helps. When you link a file the path starts relative if you use no / at the beginning. If you want to link something like an image that is inside http://mywebsite/mydirectory/myimage.jpg link it with

    /mydirectory/myimage.jpg

    . If you want i can check your templates / coding if you PM me a login.

    Regards Remco

  • #5 / Feb 01, 2012 11:24am

    jglauser

    10 posts

    Wow, it’s a miracle!  It’s all working now.

    Thank you so much.

  • #6 / Feb 01, 2012 2:40pm

    Shane Eckert

    7174 posts

    Hello Jeremy,

    It looks like Remco was able to help you out. Thank you Remco.

    Thank you for using the forums.

    Cheers!

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

ExpressionEngine News!

#eecms, #events, #releases