Perhaps you should try like this:
url_1 = '{%page_url%}{% page_attribute "slug"%}/{{id}}/vote/'
On Mar 23, 8:41 pm, Tony <[email protected]> wrote:
> there is a form called F, and I am trying to set its "action"
> attribute dynamically with javascript. I can do this successfully.
> However, when I try to use one tag in another like this: url_1 = {%
> page_url '{% page_attribute "slug"%}/{{id}}/vote/' %} (these are
> django-cms tags), I get a parsing error. Ive also tried to put '{%
> page_attribute "slug"%}/{{id}}/vote/' into a variable (url_2) and do
> {% page_url url_2 %}, but the tag didn't recognize the variable as a
> variable but took url_2 as a null. Is there anything I can do to get
> this to parse correctly? Do I have to go into the django-cms template
> tags folder and change the code? That seems like it could get messy.
>
> On Mar 23, 1:18 pm, [email protected] wrote:
>
> > What exactly are you trying to get done or achieve?
>
> > If that is known, we could be able to help.
> > Sent from my BlackBerry wireless device from MTN
>
> > -----Original Message-----
> > From: Tony <[email protected]>
>
> > Sender: [email protected]
> > Date: Wed, 23 Mar 2011 13:06:13
> > To: Django users<[email protected]>
> > Reply-To: [email protected]
> > Subject: embedding tag in another tag
>
> > I have two tags, and I am trying to put together a dynamic form action
> > url. For the url to come together lke I want, one would be embedded
> > in the other, but when i try to do it this way, I get a parsing
> > error. I've also tried using javascript and variables but the tags
> > dont read the variable like it should, it just reads the actual
> > variable name. Are there any possible work arounds?
>
> > --
> > 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
> > athttp://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 [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.