On 13. okt. 2004, at 17.57, Peter Speltz wrote:
> --- Marcus Ramberg <marcus at thefeed.no> wrote:
>> Try classmetadata.name.<method> ?
> No luck. I tried classmetadata.customer.types, request.customer.types,
> request.model.types . I'm guessing its something simple like that but
> can't
> find it in the docs.
Uhm, I'm sorry, my template toolkit knowledge is limited, but
$classmetadata->{name} contains a reference to the actual class in use.
This works with the mason view:
<% $classmetadata->{name}->table %>. However, classmetadata.name.table
returns nothing in TT. So the data you crave is there, but I'm not sure
how you can get to it.
Marcus
_______________________________________________
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:56 GMT