Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: open
It's easy enough to pull the code that should be updatable out of a page and put it into an SSI or PHP include file, which would allow me to give subsets of a page to the team who will be updating it. But I can't find a free WYSIWYG editor that will not automatically insert the <html> and <body> tags upon Save. Oddly enough, when included back in, those files still work great, even though I now have 2 </body> tags in the middle of my <html>. The page works great, but I doubt it will validate.
Can anyone suggest a good alternative here, which will still promote clean code? I need to allow these very non-technical users to update their content. It's not a database driven site, and I'd really rather not allow them the ability to touch the site headings, sidebars, etc.
Thanks in advance.
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
I'd love to find something that will allow a receptionist to do a WYSIWYG edit of an include file, and turn that into simple html tags ( <h1>, <p>, <li>, etc...nothing fancy). As I said, the include still inexplicably works, even with the invalid tags, but I hate to see all those errant tags inside my source code.
I still haven't found a good solution, so any suggestions would be appreciated. Thanks.
Using a package like tinymce would get most of the heavy lifting done for you, leaving mostly just some rather simple file handling left.
<p>9/21 - new item today</p>
So, can you point me to documentation which will help me to read a file in and allow saving to the same file? Thanks.
As you can see, the markup from the editor is simply submitted to a post variable. Writing this to a file is a straightforward task if you have a reasonable grasp of php or another scripting language.
Of course, you'd also want to make sure that the edit pages require some sort of authentication.
While the amount of effort required to get this solution up and running wouldn't be too great, if might be just as easy to install a lightweight CMS that could accomplish your goals and more.