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.

MSM CSS issues

April 03, 2009 5:55am

Subscribe [2]
  • #1 / Apr 03, 2009 5:55am

    Justin Kuntz

    41 posts

    We are running MSM on Ubuntu but are having issues with the “secondary” site and css. The site functions but we are unable to get the stylesheet to pull. Here is the bottom half of the code for the path.php file in a folder on the root level for the secondary domain:

    $template_group = "";
    $template = "";
    $site_url = "http://www.pm-adr.com";
    $site_index = "";
    $site_404 = "";
    $cp_url = 'http://www.pm-adr.com/pma/admin.php'; 
    $global_vars = array(); // This array must be associative
    $site_name = "pma";

    The CSS is on the root level and we are calling it up like this:

    href="{site_root}/css/reset.css"

    The primary domain is http://www.sarnoffdeposition.com

    Help would be greatly appreciated.

  • #2 / Apr 03, 2009 6:04am

    Ingmar

    29245 posts

    Hm, not sure about {site_root}, try {site_url} instead.

  • #3 / Apr 03, 2009 10:46am

    Justin Kuntz

    41 posts

    this is what I get for jumping in a late on the project. Tried url but it did not work. Here is some of what is in the head of the template index file for this site:

    {assign_variable:site_root="http://www.pm-adr.com"}
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html >
        <head>
            <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
            <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
            <title>{exp:weblog:entries limit="1"}{if page_title}{page_title} - PROFESSIONAL Mediation & Arbitration{if:else}PROFESSIONAL Mediation & Arbitration{/if}{/exp:weblog:entries}</title>
            <link rel="stylesheet" type="text/css" href="{site_root}/css/normal_style_pma.css" title="normal_style" media="screen" />
            <link rel="alternate stylesheet" type="text/css" href="{site_root}/css/large_style_pma.css" title="large_style" media="screen" />

    When I duplicate the css folder (which is on the root level of the www directory) into the “pma” folder on the root it picks up the styles sans the images. Some of the images will not copy over because of permissions (I assume because they were added through the EE control panel). When I type in the url pm-adr.com it says briefly presents a redirect message (but it is fast). I can’t help but to think I have something wrong with the path.php file in the pma folder or perhaps the wrong settings in the control panel?

    Thanks in advance.

  • #4 / Apr 03, 2009 10:54am

    Ingmar

    29245 posts

    OK, just not to confuse you further, {site_url} is a standard global variable, whereas {site_root} is an assigned variable. That said, its simply that the link to your CSS seems incorrect. After the variable is resolved, your page tries to call

    <a href="http://www.pm-adr.com/css/normal_style_pma.css">http://www.pm-adr.com/css/normal_style_pma.css</a>

    which gives a 404. So, wherever these styles are (outside of EE, I presume?) you simply need to link to them correctly. To me this does not look like an EE issue at all, just a regular path problem: Where do you have your .css files?

  • #5 / Apr 03, 2009 11:30am

    Justin Kuntz

    41 posts

    Outside of the system folder on the main level in the www directory. The other site under MSM pulls the css and functions properly http://www.sarnoffdeposition.com ??

  • #6 / Apr 03, 2009 11:39am

    Ingmar

    29245 posts

    I am sorry, there seems not to be any http://www.pm-adr.com/normal_style_pma.css file. All your files seem to be available here. My suggestion would be to copy them to the document root of your secondary site, or simply link to them using the primary url, like so:

    <a href="http://www.sarnoffdeposition.com/css/master_pma.css">http://www.sarnoffdeposition.com/css/master_pma.css</a>
  • #7 / Apr 03, 2009 12:02pm

    Justin Kuntz

    41 posts

    Thanks. At one point i did do that but intentionally broke it (http://www.pm-adr.com/css2/) because the images for the site were not resolving either. Then I copied the images file to the same root but had permissions issues. Will it hurt anything to override the permissions (many of the images were uploaded thru EE control panel) and copy them to the correct folder or can I point their somehow thru the path.php? Sorry this is so convoluted. We had both sites working seemlessly yesterday under an IPs 74.212.227.213 and 74.212.227.213/pma but then pointed the name servers and that is when everything broke :(

    Thanks again for sticking with me on this…

  • #8 / Apr 03, 2009 12:06pm

    Ingmar

    29245 posts

    It’s just looks like a few path issues to me, nothing dramatic. I say, go ahead and have the .css work and the images fail, we can always take care of them later. Yes, changing permissions should be fine, in general.

  • #9 / Apr 03, 2009 12:12pm

    Justin Kuntz

    41 posts

    okay, updated and css pulls but I do notice now the main nav links are broken…

  • #10 / Apr 03, 2009 12:14pm

    Ingmar

    29245 posts

    You have link like http://www.pm-adr.comindex.php/neutrals/. Note the missing slash? How are you generating these links? You probably need to add a slash in one of your path settings.

  • #11 / Apr 03, 2009 12:14pm

    Justin Kuntz

    41 posts

    looks like url is http://www.pm-adr.comindex.php/education_center_blog/ when trying to click on main nav…hmmm

  • #12 / Apr 03, 2009 12:15pm

    Justin Kuntz

    41 posts

    could this be in the control panel or should i be looking in the templates. I am sorry i just jumped on this project this morning as the person that was working on this is sick today and we need to launch :(

  • #13 / Apr 03, 2009 12:18pm

    Ingmar

    29245 posts

    Take a look at the template and let me know how these links are generated. Perhaps using a {path=} variable, something like that?

  • #14 / Apr 03, 2009 12:19pm

    Justin Kuntz

    41 posts

    {assign_variable:site_root="http://www.pm-adr.com"}
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html >
        <head>
            <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
            <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
            <title>{exp:weblog:entries limit="1"}{if page_title}{page_title} - PROFESSIONAL Mediation & Arbitration{if:else}PROFESSIONAL Mediation & Arbitration{/if}{/exp:weblog:entries}</title>
            <meta name="description" content="Sarnoff Court Reporters & Legal Technologies offers legal services to Lawyers and Legal Professionals: Court Reporting, Videoconferencing, Video Services and litigation support." />
            <meta name="keywords" content="Sarnoff Court Reporters and Legal Technologies, Sarnoff, Court Reporters, Court Reporting, Court Reporter, litigation support, imaging, Vidoeconferencing, Cary Sarnoff, reporters, video, videography, legal videography, video deposition, depositions, transcripts, video testimony, Livenote, e-Transcript, ASCII, document depository, conference rooms, stenography, scanning, document scanning, imaging" />
            
            [removed][removed]
            [removed][removed]
            [removed][removed]
            [removed][removed]
    
    
            <link rel="stylesheet" href="{site_root}/css/reset.css" type="text/css" media="screen" charset="utf-8" />
            <link rel="stylesheet" href="{site_root}/css/master_pma.css" type="text/css" media="screen" charset="utf-8" />
                
            <link rel="stylesheet" type="text/css" href="{site_root}/css/normal_style_pma.css" title="normal_style" media="screen" />
            <link rel="alternate stylesheet" type="text/css" href="{site_root}/css/large_style_pma.css" title="large_style" media="screen" />
            <!--[if gt ie 5.5000]>
                <link rel="stylesheet" href="{site_root}/css/ie.css" type="text/css" />
            <![endif]-->
    
            <!--[if lt ie 7]>
                <link rel="stylesheet" href="{site_root}/css/ie6.css" type="text/css" />
            <![endif]-->
        </head>
      {if embed:body == "home"}<body id="home">
        {if:elseif embed:body == "about"}<body id="about">
        {if:elseif embed:body == "practice_areas"}<body id="practice_areas">
        {if:elseif embed:body == "neutrals"}<body id="neutrals">
        {if:elseif embed:body == "blog"}<body id="blog">
        {if:elseif embed:body == "news_events"}<body id="news_events">
        {if:elseif embed:body == "contact"}<body id="contact">{if:else}<body>{/if}
            <div id="utility_nav_container"> </div>
  • #15 / Apr 03, 2009 12:19pm

    Ingmar

    29245 posts

    You know what, simply try setting site_url to

    <a href="http://www.pm-adr.com/">http://www.pm-adr.com/"</a>;

    ie with a trailing slash.

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

ExpressionEngine News!

#eecms, #events, #releases