Re: [Maypole] specifying different names for classmetadata elements

From: Simon Flack (sf at flacks.net)
Date: Mon Dec 06 2004 - 12:11:30 GMT


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

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT