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

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

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

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

[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