Jump to content

Updating an existing site - this is the first ProcessWire site I have worked on


Jeni K
 Share

Recommended Posts

Hello all - 

I am updating an existing site - I am not new to html/php, but I am to how ProcessWire works.

I have 2 things that I am struggling with one is really basic, the other a bit more indepth.

1 - updating the CSS for a site. 

  • I cannot find anywhere, in the admin area that lets me define colors, fonts, etc in the css.
  • Is this done manually outside of the admin portal?  Editing the actual css file (which I am fine with, but would rather not have to).

2 - Forms (using Form Builder)

  • I have created 2 forms, but I want to control the layout of those forms. Which I am totally comfortable editing the html to do that.
  • However, where the struggle begins is now what?  I can get the form to display on the page (template), but if/when 'submit' is hit, nothing happens. A blank page just comes to that area on the page, no error message, no entries are being saved, nothing.  
  • I tried to understand the header that is in the file that is created when you do "Custom Embed" and it renders the basic form.

I know these are two different level questions, but I am stuck on both of them and I am sure there is a simple answer to them both.

Thanks in advance for any help on these.

Jeni

Edited by Jeni K
Link to comment
Share on other sites

Hi,

Updating CSS – Processwire let you handle CSS the way you want directly in file(s). So yes, you will have to manually edit the CSS.

I cannot help you with Form Builder specifically, as I don’t use it. But the general behaviour of PW with form is the same as default behaviour: if not specified otherwise, a form will send the form data with GET to the current URL when you press submit.
So you have to check what method is used on your form (GET or POST) and to which URL the data are sent.
With the elements you provided, I would say the data are sent with JS by fetch. So try to locate the script that handle this to see what happen when the form is submitted.

When you know where your data are sent, there is two possibilities:
• either it’s a existing page, so get the template php file of the corresponding page, and you see what happens with the data.
• or (more probably in your situation, as it seems to be a JS submit), it’s an endpoint that has been created via a hook (check your init.php file in the site folder) to handle the data.

Hope this helps.

Link to comment
Share on other sites

  • 2 weeks later...

My frustration is with what I  know I can do with HTML/CSS/php - but the plugin just won't let me.

I have come to terms with what I can and cannot do with this form. 

Thanks for the help.

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