Click to See Complete Forum and Search --> : HTML site, easy client update


platinum2151
09-12-2006, 05:03 PM
I have pretty good experince in HTML, but have a problem here I have heard of but never done. I have a client who wants a site built, but wants to be able to update the text on the site themselves weekly. They know nothing about HTML or code or PH or servers or anything, so I am looking for the easiest way to do this.

I assume I will hace to set them up a wasy they will have to connect to the server, but what I am more concerned about is getting them files that they can format like a normal text doc, then upload them, and the HTML will recognize the changes and the format. I'm sure this is possible and probably not to difficult, any advice would be appreciated, thanks.

sirpelidor
09-12-2006, 05:05 PM
consider xslt. Your client can update the xml doc in real time, and have the xml doc display as xhtml doc on the browser.

ray326
09-12-2006, 05:28 PM
Check out one of these: http://opensourcecms.com

platinum2151
09-15-2006, 10:29 AM
I found a simple way to do this, but it's quirky. I would like my client to be able to save a word .doc as a .html or a .rtf, anf just ftp them himself. So I know i can use an iframe or an object tag to fill in the content.

I hate iFrames, and the object tage has quirks. if the standard size of the table is smaller then the inported file, it adds a scrollbar automatically. Even with CSS styles it still wont stretch the table on it's own to better fit. If I could get it to do that ot find a tag that allows it I would be set. Any further ideas? This is the level of simplicity I am trying to stay with. Thank alot.

sae
09-15-2006, 02:32 PM
why not a php include?

platinum2151
09-15-2006, 02:41 PM
I tried, but I may be doing it wrong:

HTML:
<tr>
<td height="100%" colspan="4" valign="top"><img src="images/amenities.jpg" /><br /><br />
<?php include ("amenities.php"); ?>
</td>
</tr>

PHP
<object data="amenities.rtf"></object>

No idea wht this didnt work, but nothing showed up in the table. I also tried a SSI:

<tr>
<td height="100%" colspan="4" valign="top"><img src="images/amenities.jpg" /><br /><br />
<!--#include file="amenities.rtf" -->
</td>
</tr>

Again, I may be doing this wrong, but again, no results. Any ideas or see any problems? Thanks.

sae
09-15-2006, 02:46 PM
did you save the html file with a .php ending (it won't work with a .html file)



PHP
<object data="amenities.rtf"></object>
No idea what this the code above is but you don't need it. Just change amenities.php in the following code to amenities.rtf

<?php include ("amenities.php"); ?>

platinum2151
09-15-2006, 03:17 PM
Thanks alot for the help, I now see the problem I was making before. Now, what I get in the .rtf is a mess. It looks like encrypted script. I can see he correct text buried in there, it because the text is formatted? I see alot of descriptive text with font names and colors. I tried having it as an html format and it worked fine. The Only other question have is in that same .PHP script, can i format the text? The .html file does not hold the format of font and some symbols don't translate correctly. Is there a way to format the incoming text like a CSS style? Thanks again for all your help.

sae
09-15-2006, 03:22 PM
Is it because the text is formatted?

yes.

Is there a way to format the incoming text like a CSS style

Yes, you can do some limited formatting. For example:

<div style="color: #666666; font-weight: bold;"><?php include....?></div>

platinum2151
09-15-2006, 03:40 PM
Works perfect Thanks alot folks. This makes it so easy for clients. They can make .htm files in Microsoft Word, then just post them on the ftp from the browser. The PHP script will keep the format (color and font if you use a standard system font like Arial). Perfect.

sae
09-15-2006, 04:14 PM
No prob. bob!