Re: [Maypole] Access to has_a data from template?

From: Jesse Sheidlower (jester at panix.com)
Date: Fri Sep 17 2004 - 22:16:27 BST


On Thu, Sep 16, 2004 at 09:23:56AM +0100, Simon Flack wrote:
>
> However you end up doing this, it might be better to abstract it into a
> list_all_formats() class method on your book class.

Thanks for both of your messages. After some to-ing and fro-ing on
the CDBI list, in which I proved inable to be remotely clear about
what I was trying to do, I ended up with a solution also using
meta_info to find this information out. (Simon had used the
deprecated __hasa_rels in CDBI::AsForm.)

I'd prefer to keep it in my template just to make sure that as
much as possible of my display code is indeed in my View, where
it should be, but for now I've indeed done what I need to do in
my book class.

Best,

Jesse

_______________________________________________
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