two sites (MSM), siteB is pulling SiteA stylesheet
Posted: 02 July 2008 08:52 PM   [ Ignore ]  
Summer Student
Total Posts:  24
Joined  06-30-2008

Hi all. I am new to EE, and liking it. I can see some great potential for my work, especially with MSM. But… I have a problem right out of the gate.

I made 2 sites. Call them SiteA and SiteB.
SiteA is the first site I made, with only 1 template page and 1 stylesheet.
SiteA works perfectly fine.

Then I made a new site, SiteB.
here is the bare bones template

{assign_variable:my_weblog="main"}
{assign_variable
:my_template_group="mytemplates"}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<
html >

<
head>
<
title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>
<
meta http-equiv="Content-Type" content="text/html; charset={charset}" />
<
link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/styles}' />

</
head>

<
body>
just some text
</body>
</
html>


SiteB displays the correct title ( which i am not even sure if that is the most efficient way of doing it), but in the source, the styles sheet is referencing the SiteA stylesheet.
So the resulting source is this(names changed to protect the innocent…)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<
html >

<
head>
<
title>The Correct Title for SiteB</title>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
link rel='stylesheet' type='text/css' media='all' href='http://siteA.com/index.php?css=mytemplates/styles.v.1215066374' />
</
head>
<
body>
just some text
</body>
</
html>

Both sites have a weblog named “main”.
Both sites have a template group named “mytemplates”.

obviously the stylesheet declaration is assuming that I want the siteA style sheet, which i do not.

Am i declaring something wrong? being dopey? Or did i miss something about how the whole burrito works, like naming conventions and name collisions?

 Signature 

Technology Architect
Smartest Human

Profile
 
 
Posted: 03 July 2008 09:59 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  22309
Joined  05-20-2002

Hm- are the rest of the path variables also pointing to siteA?  I suspect it’s the url setting- in ‘Admin- System Prefs- General Config’.  While in the SiteB cp- check those settings.  If they correctly point to siteB and things are still goobering check the path.php in siteb folder- any hard coded paths there that might be in play?  And if not- see if by chance you’re overriding db settings via a config variable in system/config.php.

Make sense?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 03 July 2008 11:27 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  24
Joined  06-30-2008

bah. it was the general config. i missed that. thought it was only for the main site. I didn’t realize it was settable for each site.

I will subject myself to 12 lashings now… bad dave!

thanks for the help.
dave

 Signature 

Technology Architect
Smartest Human

Profile
 
 
Posted: 03 July 2008 03:48 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  14038
Joined  05-15-2004

Don’t be too hard on yourself smile Glad you sorted it out.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 62610 Total Logged-in Users: 23
Total Topics: 77108 Total Anonymous Users: 6
Total Replies: 416361 Total Guests: 141
Total Posts: 493469    
Members ( View Memberlist )
Newest Members:  redarcEbbyWolfCIfan1000grayskwrlcornernotetriplexwengbaoshanGenki1gabewellsGlauco