[Maypole] specifying different names for classmetadata elements
Simon Flack
sf@flacks.net
Mon, 06 Dec 2004 12:11:30 +0000
Your Name wrote:
> Hi, i want to specify different values for
> classmtadata.plural and classmetadata.moniker so that
> without touching the templates i can get better values
> for these fields than what Maypole gives by getting
> them from the table names.
>
> How do i do this?
You can define moniker() and plural_moniker() in your model classes. I'm
not sure how this would affect the rest of the system. AFAIK, they're
only presentational, so it should be ok to do that.
They're undocumented at the moment, but I don't see why they couldn't be
overridden sensibly.
Also, note that the moniker is used in one of the standard template
paths. So if you change it, you might need to move some of your templates.
--simonflk