Jump to content

Am I approching this wrong?


trowtlip
 Share

Recommended Posts

I like the idea of processwire. I grabbed the login register module, which covers everything needed for login, registration and password reset. Next I need to expand the module to have password change, password reset, etc on separate linked pages, along with adding a couple more member/profile sections that would be on separate pages. I don't want everything on one continuous page. I'm thinking child pages here, but I'm having a terrible time separating the components in the login/register module. I'm now trying to split out the functions of the login/register module, but it's turning into almost separate modules with some duplicate code. With the time spent so far, it's  coming to the point that writing some from scratch would take less time. Processwire is far more sensible than Wordpress, but maybe I took a wrong turn by using the login/register module. It almost seems like it's only partially done in the manner of Processwire.

Link to comment
Share on other sites

It's this one:

https://modules.processwire.com/modules/login-register/

 

I'm not sure what I'd point out in code specifics. I'm analyzing the best way to break it up or make available the common methods if I use them in different templates/pages, but it's not the place I envisioned spending this much time. Maybe I was hoping for a more recommended or usable module. :-0

Link to comment
Share on other sites

3 hours ago, trowtlip said:

Maybe I was hoping for a more recommended or usable module.

I haven't yet had the need to work with the Login/Register module but given that it's by Ryan, lead developer of ProcessWire, I think it's safe to say it's a well-made module that is very ProcessWire-y.

Login/Register is a relatively recent module, and I believe it's intended for scenarios where you want bog-standard login/register features without having to think much about it. It's probable not intended for scenarios where you want specific custom behaviour. In those cases you would use the PW API to code exactly the features you want, which is what people did for all frontend-user needs before Login/Register was released.

Here is a forum topic and some helpful gists from @Soma that can get you started with the PW forms API:

PW simple form via API:
https://gist.github.com/somatonic/4027908

Create a page edit form on frontend using PW API and fields from the template of the page:
https://gist.github.com/somatonic/5011926

And of course Login/Register uses the PW API so study that for sure.

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