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.

CSS link not working properly via stylesheet variable

February 19, 2008 7:55pm

Subscribe [4]
  • #1 / Feb 19, 2008 7:55pm

    Seth Long

    7 posts

    I’m positive that I’ve screwed something up with an EE addon someplace to make this happen but I cannot figure out which…

    When I use a stylesheet variable to link my templates to a stylesheet template like this:

    <link rel="stylesheet" type="text/css" media="all" href="{stylesheet=mondaymag/stylesheet.css}" />

    ... the page renders without style and the source shows this:

    <link rel="stylesheet" type="text/css" media="all" href="http://www.weekinthereview.com/index?css=mondaymag/stylesheet.css.v.1203485371" />

    Notice the extra “.v.1203485371” on the end of the URL? Can anyone tell me what I’ve done wrong here? It’s been a few years since I worked seriously in EE (v1.3, to be exact) so I’m sure I’m making a rookie mistake with 1.6.2.

    Thank you.

  • #2 / Feb 19, 2008 9:35pm

    Sue Crocker

    26054 posts

    Seth, part of the problem is that you have index instead of index.php in the URL. I noticed this when looking at your site earlier.

    Are you doing some sort of .htaccess stuff?

    http://www.weekinthereview.com/index.php?css=mondaymag/stylesheet.css.v.1203485371

    Works.

  • #3 / Feb 19, 2008 10:35pm

    Seth Long

    7 posts

    Sue - thanks for working with me on this.

    No, we aren’t using .htaccess files at all.

    I fixed $site_index to read:

    $site_index="index.php";

    The site is still displaying either a partial or incorrect site index at least as often as the correct index. The partial pages are missing stylesheet info, as originally posted in this thread.

    I’m stumped. The primary site is behaving normally now but the secondary site hasn’t changed.

  • #4 / Feb 19, 2008 11:01pm

    Sue Crocker

    26054 posts

    Seth, it’s time to take a look.

    I’ll need the following:

    Superadmin username and password. Path to your Control Panel.

    FTP account information.

    Please email that to:

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

  • #5 / May 01, 2008 1:47pm

    Joelle

    272 posts

    Did this ever get resolved? I’m having a similar problem. I am using .htaccess to remove the index.php like we always do. Is there a way to prevent the css from generating that variable?

    Thanks!
    Joelle

    Discussed more over here.

  • #6 / May 01, 2008 5:24pm

    Ingmar

    29245 posts

    May I suggest to keep the current discussion in one place?

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

ExpressionEngine News!

#eecms, #events, #releases