home / experts / perl / tutorial / 5 |
|
|
PerlHoo, Part IIIThe SolutionSo, what we really need is a Web based tool to manage the submission process
and to manage the directory in general. I decided to use a scheme similar to the
one used in PerlHoo. That is, append the Web Directory category to the end of the
URL. So for example, to manage the Computers category, the URL might be: In the script, this information is read in the Let's take a closer look at the interface. Goto: http://www.webreference.com/cgi-bin/perl/phadmin.pl. As you're looking at the administration interface, you'll notice that the category headers, ie. Home : Computers: Dynamic_HTML, are also linked to their respective categories. This allows you to drill up and down the directory tree at will. Go ahead, try it out now. Using the InterfaceSo you know how it works, under each category, there are 4 columns for each entry:
Submitting and Approving an EntryLet's walk through the process. First, submit a new entry in PerlHoo at http://www.webreference.com/cgi-bin/perl/3/perlhoo.pl. Pick whichever category you like. Don't add an entry to the top level though. Now view the new entry in phadmin.pl at http://www.webreference.com/cgi-bin/perl/phadmin.pl. The entry you just added should be highlighted in red in its respective category. Now, click on the title. You should be taken to a PerlHoo Entry screen which lists the info about the entry. Make any necessary edits and click on the Save Entry button. You will be taken back to the admin screen for the category you just added an entry to. You should see the entry you just modified, except it's background is now light orange. If you go back to PerlHoo, you should see the link in the directory. Deleting an EntryDeleting a new or existing entry is simple. Just click on the Delete link and poof, it's gone. Editing an Existing EntryTo edit an existing entry (light orange), simply click on the title link, make the changes, and submit them. |
home / experts / perl / tutorial / 5 |
|
Produced by Jonathan
Eisenzopf and
Created: July 1, 1999
Revised: July 2, 1999
URL: http://www.webreference.com/perl/tutorial/5/