[Maypole] has_a display name

Simon Cozens simon@simon-cozens.org
Thu, 3 Jun 2004 23:00:38 +0100


Alex McLintock:
> When I have a "has_a" relationship between two tables, using an id 
> field, how does "Maypole" figure out what field to use as the "pretty" 
> name for that field?

Displaying is a template problem.

It's probably best *not* to use the default templates.

Use them if they do what you want. Don't use them if they don't do what you
want. This ought to be easy to understand. :)

I think it's *best* to customize templates.

I think Maypole works on the understanding that there are templates there for
you to get stuff up and running quickly, but the minute you start doing
something outside the defaults, you should write your own templates.

Unfortunately, I made the default templates too useful, which means that
people end up thinking they can always bend them to do what they want.

The assumption is that you will hardly touch the default templates.

I could set up a cron job to post this to the list every twelve hours if it
would help. :)

-- 
Remember, any design flaw you're sufficiently snide about becomes a
feature
    - Dan Sugalski