Hi,

I'm trying to write a custom tag which would accept as a parameter a
value from another custom tag. The usage would be something like the
following (trunclist_legth is a custom template tag which simply
returns an int value):

{% ifgreaterthan items|length list_limit %}
See <a href="...">all the records</a>.
{% endifgreaterthan  %}

Using {% list_limit %} prints it's value fine but somehow, when used
in the context of another tag, it's value isn't resolved.

Inside the "render" method of "ifgreaterthan" I'm using:
val2 = self.param2.resolve(context)

self.param2.var does contain the string "list_limit", but resolve()
returns an empty string instead of the int value I was expecting. I
must be doing something wrong... any thoughts?

thanks in advance,
Filipe


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

Reply via email to