Hello,

On Jan 29, 2008 3:10 PM, theZero <[EMAIL PROTECTED]> wrote:
>
> > If I am not mistaken, {% if page.pods.all %} should evaluate to False
> > if there are no pods, so you can enclose your <div> with that and it
> > should work as you'd like.
>
> Thanks, Eduardo. That's a good idea, and that's where I was heading.
> It works in a way. But if I understand you correctly, if there's a pod
> in any block then all of the other blocks show their blank div's.
>
> For instance, if there's a pod in the leftcolumn block, but none in
> the rightcolumn block, then the leftcolumn block shows up as it
> should, but the rightcolumn block still shows a blank div. That's
> because page.pods.all is true. Does that make any sense?
>

I see, I guess I missed that part.

Template tags (or filters) is probably the way to go then. I haven't
looked much into these, but I believe you could pass page.pods to the
template tag, and let it filter them as you wish, printing out HTML or
defining a left_pods or right_pods variable you could then use.

This would probably to the trick, but I have no experience with it to
tell for sure. Just some basic docs knowledge.


Hope it helps,
Eduardo.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to