Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-08 Thread Roberto Perdomo
dont worry, it's a pleasure for me. ;-) Kind Regards. 2013/8/8 Hugo Costa > You sir, made my day. > > Thanks a lot Roberto! :) > > Quinta-feira, 8 de Agosto de 2013 20:33:45 UTC+1, Roberto Perdomo escreveu: >> >> The {{pass}} of the if is not needed :-S >> >> >> 2013/8/8 Hugo Costa >> >> Yeah

Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-08 Thread Hugo Costa
You sir, made my day. Thanks a lot Roberto! :) Quinta-feira, 8 de Agosto de 2013 20:33:45 UTC+1, Roberto Perdomo escreveu: > > The {{pass}} of the if is not needed :-S > > > 2013/8/8 Hugo Costa > > >> Yeah, I have. 3 is the magic number :) >> >> I did not understand this question. >> >> The third

Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-08 Thread Roberto Perdomo
The {{pass}} of the if is not needed :-S 2013/8/8 Hugo Costa > Yeah, I have. 3 is the magic number :) > > I did not understand this question. > > The third is missing > > > > > > src="/diogo/static/images/carousel/carousel3.jpg" alt="banner1"> >Azeite Vinaldo >

Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-08 Thread Hugo Costa
Yeah, I have. 3 is the magic number :) I did not understand this question. The third is missing Azeite Vinaldo Guache sobre Tela, 75x30 cm. 2013-08-07 18:03:38.774240 B

Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-08 Thread Roberto Perdomo
Good news! You really have three post? Can you print the three posts in a .html without carousel? You have checked the source of your index.html (in the browser) and search the three div inside "carousel-inner"? 2013/8/8 Hugo Costa > Sorry about the delay. > > The first one works fine, but onl

Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-08 Thread Hugo Costa
Sorry about the delay. The first one works fine, but only works for the first and the second. The code I used is: *index.html* * * {{for index, post in enumerate(news):}} {{if index==0:}} {{=post.title}}

Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-07 Thread Roberto Perdomo
you forgot the ":" on the else and pass on the if. index var not exist, was my example, you need get the index of the iteration, may be with news.index(post) or using enumerate. Try this two example: {{for index, post in enumerate(news):}}

Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-07 Thread Hugo Costa
Hey Roberto! So, I've used your code and this turned out: *index.html* * * {{for post in news:}} {{if index==0:}} {{=post.title}} {{=post.post}} {{=post.created_on}}

Re: [web2py] Bootstrap Carousel and bootstrap

2013-08-07 Thread Roberto Perdomo
Hi Hugo, I dont know bootstrap carousel, but in the view you are iterating many times the main div "carousel-example-generic". In your case you need iterate only the dinamic content of the carousel, and the carousel content are divs. See this example with my comments: