Hi All,
Advice gratefully needed.......
I am trying to present the same content on multiple sites, but
allowing the style and formatting to be changed via an external CSS
style sheet.
The problem is the client site pulls of the content from my main site
into an IFRAME on their site. Because the content of the IFRAME on the
client site shows the page exactly as it sits on my site, I need a way
for the content pages on my site to link to a CSS file on the client
site, then output HTML to the client site.
What I came up with was:
//Put the following line in a PHP include file on the client site:
$get="?linker=" .urlencode("htt p://mysite/mypath/CSS/docstyle.css");
//Append the $get variable to the src tag of the IFRAME on the client
site. The IFRAME is created with an echo statement, with the name of
the file passed from a previous page via a hidden variable
src="http://mysite/mypath/Pages/doc_store/'.$_POST["hidden"].$get.'"
//Add the following to all the content pages sitting on my site:
<link href="<?php echo $linker ;?>" rel="stylesheet " type="text/css">
Does this make sense ?
This worked when testing it locally, but failed to work when I tested
it live this morning.
I've checked the obvious things like the spelling of the paths, etc,
and am a bit stumped.
Any advice appreciated.
Rdgs
Neil.
Advice gratefully needed.......
I am trying to present the same content on multiple sites, but
allowing the style and formatting to be changed via an external CSS
style sheet.
The problem is the client site pulls of the content from my main site
into an IFRAME on their site. Because the content of the IFRAME on the
client site shows the page exactly as it sits on my site, I need a way
for the content pages on my site to link to a CSS file on the client
site, then output HTML to the client site.
What I came up with was:
//Put the following line in a PHP include file on the client site:
$get="?linker=" .urlencode("htt p://mysite/mypath/CSS/docstyle.css");
//Append the $get variable to the src tag of the IFRAME on the client
site. The IFRAME is created with an echo statement, with the name of
the file passed from a previous page via a hidden variable
src="http://mysite/mypath/Pages/doc_store/'.$_POST["hidden"].$get.'"
//Add the following to all the content pages sitting on my site:
<link href="<?php echo $linker ;?>" rel="stylesheet " type="text/css">
Does this make sense ?
This worked when testing it locally, but failed to work when I tested
it live this morning.
I've checked the obvious things like the spelling of the paths, etc,
and am a bit stumped.
Any advice appreciated.
Rdgs
Neil.