Jump to content

Frontend editing and content creation possibilities?


Enrico
 Share

Recommended Posts

I need to ask, can be easy done this ?

 

Exist one quick way to make contributive site with processwire ?

 

What i mean ? Simply i mean after user signup does exist a way for the user to submit NEW PAGES / EDIT SUBMITTED PAGES ?

 

Does exist a module free or premium to easly do it ?

 

If no, how much to pay a developer can create it ?

 

 

Thanks

Edited by horst
@horst: Changed Title to be more precise
Link to comment
Share on other sites

As far as I know, there is not a way for a user to create new pages strictly via a front end instance (without using the api). However, you could use the backend and allow a user to create a page (and not allow publishing), or you could create a form on the front end (After login) that would allow a user to fill it out and create a page utilizing the API. 

  • Like 1
Link to comment
Share on other sites

In processwire, there is a "page-edit-created" permission so you can easily restrict any user to be able to edit only page created by them.

And you have multiple ways to achieve how users will manage pages.

1. You can allow users to create/publish/edit pages via the backend. Ofc, they will have access only to stuff u allow via permissions (module, admin, trash and system only superuser).

2. Make a front-end form to submit pages via API, and use some (free) module for editing, like: http://modules.processwire.com/modules/front-end-edit-lightbox/

3. Use form-builder premium module to create pages, and for editing some module like one above

4. You can do everything via api on front-end, creating and editing pages.

So final answer is yes, you can make contributive site with processwire, many ways to do it in pw.

  • Like 1
Link to comment
Share on other sites

This fork of AdminBar (https://github.com/teppokoivula/AdminBar) can be very useful in this situation. Style it to match your site and it's a very quick way to give logged in users the ability to edit and add new child pages. It won't ever be as flexible as building your own frontend form and processing using the PW API, but it's very easy when you have complex forms to reproduce, especially if there is image upload and ASM type select fields to reproduce.

This screenshot shows that you can add a "New +" child page when viewing the main portal parent.

59d4e57430fda_ScreenShot2017-10-04at6_40_40AM.thumb.png.5655a0f893f9a561c47605c3836f7afc.png

 

This screeencast shows editing an existing entry:

admin-bar.thumb.gif.56dae9c92cffbd7e6f2580bad681e45a.thumb.gif.8b72e07689d65db78f0e95a616149114.gif

  • Like 8
Link to comment
Share on other sites

On 04/10/2017 at 2:46 PM, adrian said:

This screenshot shows that you can add a "New +" child page when viewing the main portal parent.

Still not tried this but looking at the screencast again, it looks very promising.

The problem I have found in the past with an admin bar, is that you're on an parent page, say 'services' that is just made up of child pages pulled in via a loop?. The clients may not fully understand that the whole page is made of other pages and literally has nothing directly editable on it. They click 'Edit' and go "huh?".

Link to comment
Share on other sites

  • 4 months later...
On 10/4/2017 at 3:46 PM, adrian said:

It won't ever be as flexible as building your own frontend form

@adrian How / Is it possible to easily receive a Template with all it's fields and settings to create a new form in the frontend? Basically the backend form for the frontend. I am also looking to make editing and creation of new Objects possible in the frontend and know how to build a form manually but is there an easy way to more or less get the whole template?

Something like:

// just made that code up…
$form = $templates->get('MyTemplate')->form;
$form->get('MyField')->attr('value', "New Value");
$form->render();

 

Link to comment
Share on other sites

Okay, I could probably use:

http://modules.processwire.com/modules/form-helper < long time not updated…

http://modules.processwire.com/modules/form-template-processor/ < even longer…

http://processwire.com/api/modules/form-builder/#about-the-form-builder-project-and-author < using formbuilder with page cration… could be the solution

Is there a native way?

 

Link to comment
Share on other sites

I would recommend to try the form template processor, it should still work. Formbuilder is also a solid choice. Easy to create forms, and pages from the forms, and also add your own scripts and styles to forms, hook into form process and do advanced things.

  • Like 2
Link to comment
Share on other sites

Thanks @bernhard - but i want it to be directly on the page without any iframe or lightbox. I know these solutions but i think there are many scenarios where you would like to CRUD things in the frontend and not have a separate ui or overriding to much. Kind of surprises me this is not a question or need more often.

@Macrura thanks! I will try it. Did you use it lately?

Link to comment
Share on other sites

@noelboss I used form template processwire way back before Formbuilder was released, and it worked fine; You can also very easily setup a service page to accept the form's post data and process it any way you want. It's very simple to do this; you can also get some ideas for how to build this:

https://processwire.com/talk/topic/3779-use-csrf-in-your-own-forms/

https://processwire.com/talk/topic/2089-create-simple-forms-using-api/

https://processwire.com/talk/topic/14206-contact-form-tutorial/

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...