X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FManual%2FStandardTemplates.pod;h=b36b4043970e222357e6195f3b8bded69f2412bf;hb=07f5a9f788d3f06da4cad4bfdc24f28f81494372;hp=35f9a8a86cca5befa0347d1808cc4a4643727af6;hpb=628ecd5d9d294e601c79c7509140d02dcd7a1d40;p=maypole.git diff --git a/lib/Maypole/Manual/StandardTemplates.pod b/lib/Maypole/Manual/StandardTemplates.pod index 35f9a8a..b36b404 100644 --- a/lib/Maypole/Manual/StandardTemplates.pod +++ b/lib/Maypole/Manual/StandardTemplates.pod @@ -1,5 +1,9 @@ -=head1 Maypole's Standard Templates and Actions +=head1 NAME + +Maypole::Manual::StandardTemplates - Maypole's Standard Templates and Actions + +=head1 DESCRIPTION As we saw in our Create-Read-Update-Delete (CRUD) example, Maypole does all it can to make your life @@ -57,10 +61,11 @@ This deletes a row, returning to the C page. This provides a paged list of the table suitable for browsing. -=item C +=item C This handles a search query and presents the search results back to the -F template. +F template. Previously this was called search, but obviously that +clashes with a lot of stuff, and that usage is now deprecated. =back @@ -207,13 +212,17 @@ This is usually integer, if you're using numeric IDs for your primary key. If not, you probably want C, but you probably know what you're doing anyway. -=head3 delete +=head3 do_delete -The delete method takes a number of arguments and deletes those rows from the +The do_delete method takes a number of arguments and deletes those rows from the database; it then loads up all rows and heads to the F template. You almost certainly want to override this to provide some kind of authentication. +Previously this was called delete, but obviously that clashes with a lot of stuff, +and that usage is now deprecated. + + =head3 list Listing, like viewing, is a matter of selecting objects for @@ -267,7 +276,7 @@ template view =head3 F The F template is pretty much the same as F, but it uses -L's +L's C method on each column of an object to return a C object representing a form element to edit that property. These elements are then rendered to HTML with C or to XHTML with C.