Re: [mezzanine-users] Get the click event from a button

2017-06-10 Thread dacastror
Sorry, I think my English is not good, maybe I have not expressed myself 
well. I do not ask about the forms.
Imagine a template like this:

{% extends "pages/richtextpage.html" %}
{% block main %}

Click Me!

{% endblock %}


How can I detect the click event in the page processor?







El sábado, 10 de junio de 2017, 20:56:56 (UTC-5), Ryne Everett escribió:
>
> Sorry, I think I understand what you're asking now. 
>
> You want to have a form submitted to a page processor which will use the 
> form's data to add context to the page and re-render the view. If I 
> understand you correctly, you're asking how to add a submission button 
> to the html form that will call the page processor. 
>
> I don't know the answer. I'd have to look at the source and don't have 
> time at the moment. Seems like it ought to be included with the example 
> in the documentation. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Get the click event from a button

2017-06-10 Thread Ryne Everett
Sorry, I think I understand what you're asking now.

You want to have a form submitted to a page processor which will use the
form's data to add context to the page and re-render the view. If I
understand you correctly, you're asking how to add a submission button
to the html form that will call the page processor.

I don't know the answer. I'd have to look at the source and don't have
time at the moment. Seems like it ought to be included with the example
in the documentation.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Get the click event from a button

2017-06-09 Thread dacastror

My page must have several forms simultaneously, plus you must have buttons 
to edit and delete content. I've managed to do a lot of this with page 
processors, but I want to achieve proper communication between the template 
and the page processor. 
For this it serves me Get the click event from a button. Is it possible to 
do this?
Thanks for your help.





El viernes, 9 de junio de 2017, 20:55:28 (UTC-5), Ryne Everett escribió:
>
> I don't think page processors are relevant to your use case. If you're 
> not familiar, I would suggest looking into django's form docs: 
> . 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Get the click event from a button

2017-06-09 Thread Ryne Everett
I don't think page processors are relevant to your use case. If you're
not familiar, I would suggest looking into django's form docs:
.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Get the click event from a button

2017-06-09 Thread dacastror
Hi, I'm adding a page processor to my custom page,
Using the example given in: 
http://mezzanine.jupo.org/docs/content-architecture.html#page-processors

I would like to add a button to the template that when pressed will execute 
a python code that will alter something in the template. I think it may be 
similar to the form case, but I do not know what things change in the code. 
I appreciate your help.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.