Feeding my Site pages

liunx

Guest
First off HELLO<br />
<br />
Right I was wondering if anyone can help me out here, I want to be able to pick up my site content from files on my server, this way it will cut down on editing the html, I want to apply this into my popup windows as the content will be updated alot...hope that makes sense.<br />
<br />
<br />
Dean<!--content-->ok, so you want to be able to a'include' a common file into another so that common file you only have to update once to update on all the files that are including it? is that right?<br />
<br />
then you could use ssi, quite easy:<br />
<br />
rename the file that will be including another into it .shtml<br />
<br />
put this line of code where you want to include the other file<br />
<br />
<!--#include file="file.html" --><br />
<br />
if the file is in a different directory use this line<br />
<!--#include virtual="/file.html" --> <br />
<br />
you can include whatever file type you like, .txt , .html ....<br />
<br />
remove any header tags etc from the file if it's html becuase the .html file you are going to include them into already has them :)<br />
<br />
if this is way offtrack from what you wanted please rephrase the question :)<!--content-->Thats what I`m after doing yes....can you show me as an example, I work better that way.<br />
<br />
<br />
ok, at the mo in my plugin popup html, I have this:<br />
<br />
<html><br />
<head><br />
<meta name="GENERATOR" content="Microsoft FrontPage 5.0"><br />
<meta name="ProgId" content="FrontPage.Editor.Document"><br />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><br />
<title>Photoshop Plugins</title><br />
<script language="javascript" src=http://www.htmlforums.com/archive/index.php/"progressbar.js"></script><br />
</head><br />
<body background="popup/plugins.jpg"><br />
</body><br />
</html><br />
<br />
I want the body content to be brought in from the plugins dir, could you show me please as I`ve never done this before.<!--content-->no probs<br />
<br />
<html><br />
<head><br />
<meta name="GENERATOR" content="Microsoft FrontPage 5.0"><br />
<meta name="ProgId" content="FrontPage.Editor.Document"><br />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><br />
<title>Photoshop Plugins</title><br />
<script language="javascript" src=http://www.htmlforums.com/archive/index.php/"progressbar.js"></script><br />
</head><br />
<body background="popup/plugins.jpg"><br />
<!--#include file="body-content.html" --><br />
</body><br />
</html><br />
<br />
<br />
^this file would be renamed to 'filename.shtml'<br />
<br />
and then you just design your content part and upload it, try it with something simple<br />
eg: in your body-content.html just have 1 line of text :<br />
<br />
"if i see this then i've done it right"<br />
<br />
remember not to include any header stuff, not even the body tags in body-content.html file :D<br />
<br />
/edit<br />
forgot about the plugins directory, try this<br />
<br />
<--#include virtual="/plugins/body-content.html" --><br />
or the full path<br />
<br />
<--#include virtual="http://www.yoursite.com/plugins/body-content.html" --><br />
<br />
it's all trial and error, well that's how i learn anyway :)<!--content-->TY Leo :D<!--content-->you're welcome :D<!--content-->Hey, Dean! Welcome to the zoo!<br />
<br />
Got just the thing for you. Entimp got busy and I've been after him to get busier, but this is a start.<br />
<br />
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=25590">http://www.htmlforums.com/showthread.ph ... adid=25590</a><!-- m --><br />
<br />
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=25616">http://www.htmlforums.com/showthread.ph ... adid=25616</a><!-- m --><br />
<br />
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=25644">http://www.htmlforums.com/showthread.ph ... adid=25644</a><!-- m --><br />
<br />
He's missing the ending, but I've almost got that figured out. Well, it's the tweaking that's driving me nuts, not putting everything together, but that's normal for me.<br />
<br />
Peg<!--content-->hehe, you still playing around with that peg.<br />
<br />
Great tutorial entimp put together, although slightly advanced i feel for a beginner.<br />
<br />
but once he gets the basics under his hat he might aswell have a crack at it seeing as it'll be fresh :D<!--content-->*lol* Yup. Got it figured out how to divide the pages up and how to create them in the first place. So far, so good. <br />
<br />
I'm going to stick some stuff in an iFrame, but I don't know how to do the links for it. The navigation links will be on a different .asp than the iFrame, which tends to confuse me. But I'll get it eventually. I think. ;) <br />
<br />
And when I do get it figured out, I just might finish off his tutorial. *g* Just to see if I've got it right, you understand. You guys will have to double check what I'm saying, of course.<br />
<br />
Peg<!--content-->
 
Back
Top