Quote from: dev_cw at Nov 26, 2007, 05:44 AM
I decided to use the phpMyEdit generator for the frontend editor of the calendar events. The frontend editor is embedded on a secure page that is restricted to an single web user by Web User / Document group links.
That sound like a cool idea, I would like to know more about doing something like this.
Can I assume that you asking about phpMyEdit and not how to hide a page for a single web user?
I usually install phpMyEdit under the snippet directory. phpMyEditSetup.php is a script that asks for the details of the table you want to generate an editor page for. It’s output is a php file that has css script info at the top and php table manipulation code below. I usually split the css off and copy it into a chunk and the php is copied into a snippet although you could use the file intact with a snippet "include" call. After that at a minimum I add 1 line to the top of the snippet right after the intro comments that identifies the hidden page:
$opts[’page_name’] = ’NameOfPage.html’; //I’m using FURLs
I also modify the line at the end of the php in the snippet:
require_once ’assets/snippets/pme/phpMyEdit.class.php’; //location of phpMyEdit class file
To use this I include the chunk and snippet in a columnless page since the output can be quite wide and can break margins if you don’t make additional format modifications. There are a lot of other mods you can make that are in the phpMyEdit documentation and on their forums but this should get you going.