
david at kineticode
Mar 31, 2009, 2:49 PM
Post #5 of 5
(1001 views)
Permalink
|
On Mar 31, 2009, at 1:03 PM, Bret Dawson wrote: > Hm. I just tried this without success. > > I put the <%flags> block in template B, pointing to template A. But > previewing a story containing a type B subelement now shows no output > for that subelement. Element types A and B have the same structure. > > Any ideas what I might be missing? (It's not urgent, I'm just > curious.) I ran into this the other day; IIRC, it happened to me because I inherited from a template that did not itself inherit from / autohandler, so the autohandler was never called. Or something like that. No, wait, the stuff from the autohandler was there, just not the stuff from the story element template. Hrmm…ah, yes, the autohandler was calling display_element() on a different element. IOW, I had foo_page.mc inherit from page.mc, but the autohandler was calling display_element() only for page elements, not for foo_page.mc elements. So be sure that your handlers are still calling out to the template that's inheriting to some other template. HTH, Daivd
|