Re: Templaite:display li items alternatively using for

2008-11-01 Thread Karen Tracey
On Sat, Nov 1, 2008 at 1:58 AM, Xian Chen <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I want to display a list of items by using {% for item in items %}.
>
> To make the web pages look better, I want to use two kinds of 
> alternatively.
>
> E.G item
>item
>
> My question is how can i use the tags to implement this requirement?
>
> Any build-in tags for this?
>

Yes:

http://docs.djangoproject.com/en/dev/ref/templates/builtins/#cycle

Karen

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~--~~~~--~~--~--~---



Templaite:display li items alternatively using for

2008-10-31 Thread Xian Chen
Hi,

I want to display a list of items by using {% for item in items %}.

To make the web pages look better, I want to use two kinds of 
alternatively.

E.G item
   item

My question is how can i use the tags to implement this requirement?

Any build-in tags for this?

Thanks in advance,

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~--~~~~--~~--~--~---