I REALLY, REALLY apologize for this basic and stupid question, but....
I am assuming this is something I can use to allow my users to edit pages on our internal website themselves. Here are my questions:
1. Is my assumption correct?
2. Does that mean that I need to re-create our internal website as a database driven site?
2a. If so, then how do you call the data up inside the editor?
3. If not, then how do I get the body of the page to load in the editor and then how do I tell the editor to save into the body of the same page?
Thanks very much for your time and assistance.
-Mac
I am assuming this is something I can use to allow my users to edit pages on our internal website themselves. Here are my questions:
1. Is my assumption correct?
2. Does that mean that I need to re-create our internal website as a database driven site?
2a. If so, then how do you call the data up inside the editor?
3. If not, then how do I get the body of the page to load in the editor and then how do I tell the editor to save into the body of the same page?
Thanks very much for your time and assistance.
-Mac
Re: Completely confused...
1. Yes. You can use this to allow users to edit your website.
2. You don't specifically have to convert to a database-driven site. You can, with the proper setup, just use file storage. (Good security is essential!)
2a and 3. The editor is called up as a form element (a TEXTAREA). Whether you read/write from a database or directly from an HTML file, the same mechanisms apply to the editor. Read the Developer's Guide section on Integration on how to do this in your favorite language.
Re: Completely confused...
Thanks so much for replying to my post.
I get how to perform direct manipulation of a database in PHP, but have no clue as to how this might work on files. I will check it out further.
The example code in the section you pointed me too, and that I had already attempted, simply isn't working. I am having difficulty understanding what I need to do, please respond to my understanding below:
1.
Re: Completely confused...
Storing to file in PHP is accomplished using the fopen, fwrite, and fclose calls. You have to be sure you're only allowing authorized users to edit, that you're storing to a fixed location, and that no-one can alter the location to something undesired by altering the script return values; otherwise you open up your site to hackers.