Daxal
2010-03-10 18:51:08 UTC
Hey,
I wanted to use a if statement with a url like ...
if you are on "/cm/add/"
......
endif
.
option 1:
I was wondering if anyone knows how to code that statement. if can
compare string variables like {% ifequal somevariable url %} where
"url" can be hard coded like "/cm/add" and somevariable would have to
store the url which i think is too complex.
option 2:
some if statement that directly compares the url like {% if {url} == "/
cm/add/" %}
any thoughts and ideas guys?
Thank you for all your replies. :)
I wanted to use a if statement with a url like ...
if you are on "/cm/add/"
......
endif
.
option 1:
I was wondering if anyone knows how to code that statement. if can
compare string variables like {% ifequal somevariable url %} where
"url" can be hard coded like "/cm/add" and somevariable would have to
store the url which i think is too complex.
option 2:
some if statement that directly compares the url like {% if {url} == "/
cm/add/" %}
any thoughts and ideas guys?
Thank you for all your replies. :)
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com.
To unsubscribe from this group, send email to django-users+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com.
To unsubscribe from this group, send email to django-users+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.