From: Matthew M. <ma...@tu...> - 2004-11-03 15:49:52
|
I like the concept but with a few notes: 1) Mod_rewrite in 0.9.4/1.0.0 solves the long link string pretty well. This may not be needed then. 2) I don't believe it should be a 'standard'. I think it should be implemented as a shortcut. Having two versions of link creation may be confusing. 3) Creating the file on installation may be problematic as we normally only give write access to files, images, etc. If the file is not created on install, the admin will have to create it themselves. I think having a shortcut for people to link to pages and such would be cool but I would like to see it as as an added feature that doesn't require rewrites or a change in the current system. My 2 cents Kent Broc.. Matt McNaney On Tue, 2004-11-02 at 13:22, Steven Levin wrote: > Hello Everyone, > > I would like to make a suggestion to simplify links within the current > 0.9.3x branch of phpwebsite. The idea is to have individual module > pages in the base of phpwebsite. These pages will automatically set the > module and assume a view operation to reduce the number of variables > needed to request a item to be viewed. > > Example: > pagemaster.php > <?php > > $_GET['module'] = $_REQUEST['module'] = 'pagemaster'; > > if (!isset($_REQUEST['MASTER_op']) && !isset($_REQUEST['PAGE_user_op'])) > $_GET['PAGE_user_op'] = $_REQUEST['PAGE_user_op'] = 'view_page'; > > if (isset($_REQUEST['id'])) > $_GET['PAGE_id'] = $_REQUEST['PAGE_id'] = $_REQUEST['id']; > > include('index.php'); > > ?> > > Link before: > ./index.php?module=pagemaster&PAGE_op=view&PAGE_id=1 > > Link after: > ./pagemaster.php?id=1 > > Then if you want to edit: > ./pagemaster.php?id=1&MASTER_op=edit_page > - since the op is passed here the pagemaster.php file will not set the > default op to view > > Old links will still work, but code will have to be updated to generate > the new syntax. > > Thoughts? > Suggestions? -- Matthew McNaney Internet Systems Architect Electronic Student Services Appalachian State University Phone: 828-262-6493 http://phpwebsite.appstate.edu http://ess.appstate.edu |