2009/1/2 Alan <[email protected]>:
> Dears,
> I have in my base.html something like 'href="/{% block folder %}{% endblock
> %}/"' and this block folder is expected to appears several times in
> base.html. So I create a page that inherits from base.html, I got this error
> message:
> ''block' tag with name 'folder' appears more than once"
> I understand the problem, but I don't figure out a solution other than
> creating several folder1 folder2 etc. to get the very same value (dumb)!
> Would {% with ... %} work here in my base.html? How? Another suggestion?
> Many thanks in advance.
> Alan
> --
> Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate
> Department of Biochemistry, University of Cambridge.
> 80 Tennis Court Road, Cambridge CB2 1GA, UK.
>>>http://www.bio.cam.ac.uk/~awd28<<
>
> >
>

You can create a tag, depending on how your application is could make
sense. What's clear is that you can't use the same block name twice.

Best regards,

-- 
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net

--~--~---------~--~----~------------~-------~--~----~
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