Billiant! All fixed :) Think I went a bit slot-crazy ;) Cheers,
-Alister 2009/5/15 Kornel Lesiński <kor...@aardvarkmedia.co.uk> > It seems that you've used slots where macros would have been more > appropriate. > > > This just defines the same slot many times: > > <span tal:repeat="entry entries" omit-tag=""> > <span metal:define-slot="cfct_excerpt" /> > </span> > > > and the code below it, outside the loop: > > <div metal:fill-slot="cfct_excerpt" omit-tag=""> > > <div id="post-${entry/the_ID}" class="${entry/hybrid_entry_class}"> > > > is run unconditionally, once, after the loop finishes. That's why you're > getting error about entry variable. > > > Change these to: > > <tal:block metal:use-macro="cfct_excerpt" /> > > and > > <tal:block metal:define-macro="cfct_excerpt"> > > -- > regards, Kornel > > _______________________________________________ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal > -- Alister Cameron Managing Director Cameron Creative Pty Ltd www.cameroncreative.com Creative, Strategic, Innovative... never boring!
_______________________________________________ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal