On 16 Dec 2005, at 14:22, Kim Ryan wrote:
Hi,
I have just installed Maypole and converted the BeerDB example to
suit my data.
Everything is displaying OK, but I want to simplify the templates,
specifically
to remove the edit and delete buttons from the listing of table rows.
I think Dave H's answer is fine.
I have read the training wheels guide, but am stuck on a few points.
This is unfinished. I'll be finishing it up next week as a Xmas
present :). Is there anything missing that would be useful?
Anything downright wrong? Anything not explained clearly?
Is it better to build templates from scratch, or modify the factory
one?
Are there any example of a simple display only template?
You'll probably end up with a lot of cruft by modifying the factory
templates - they're there to satisfy very general conditions, whereas
most applications have very specific needs.
A display only template:
in BeerDB::Beer
sub trivial : Exported {
my ($r, $self = shift);
$r->{template_args}{flintstones}= "yabba dabba doo!";
}
then in $template_root/beer/trivial
[% USE dumper;
dumper.dump_html(request) %]
or something like that (untested).
Cheers.
kd
Thanks,
Kim
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through
log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Maypole-users mailing list
Maypole-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maypole-users
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Maypole-users mailing list
Maypole-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maypole-users