Jump to content

How to store all the submitted emails in one page and in a table ?


Recommended Posts

2 hours ago, Norman_12 said:

i tried the debug option set it to true, still not working.  and even when i uploaded it manually, cant find it module processwire to install it

On modules list page you need to REFRESH or rebuild to make it aware of new modules (via FTP).

Link to comment
Share on other sites

47 minutes ago, Macrura said:

That's for ProFields Table, but the OP appears to have this info stored in a Page Table. As far as I'm aware there is no way to export the data in a Page Table without writing a custom script.

I'm pretty sure it's the ProFields one 🙂

6 hours ago, Norman_12 said:

i have like one more question if you please, How to export the data stored in my  "ProFields: Page Table" field in a CSV file ?

 

Link to comment
Share on other sites

First, thank you so much guys for the replies...Such a supporting community. Love it

i did upload it to cpanel manually, but still not displayed when i refresh, it somehow confusing

Like is there any way to export my stored in my "ProFields: Page Table" field in a CSV file ?

Looking forward to hear your thoughts guys

Link to comment
Share on other sites

2 hours ago, Norman_12 said:

Like is there any way to export my stored in my "ProFields: Page Table" field in a CSV file ?

i already replied to that question

Link to comment
Share on other sites

@Macrura  as i mentioned before im a newbie to PW platform.

is there any way to find an example of " custom script. " i need to write in order the export will work.

Looking forward to hear your thoughts and thank you so much.

Link to comment
Share on other sites

1 hour ago, Norman_12 said:

is there any way to find an example of " custom script. " i need to write in order the export will work.

Not that I know of; But this forum has heaps of code examples. Writing an export script would assume a decent knowledge of the PW API, and a certain basic level of PHP.

If you are willing to invest some money, then you could simply purchase ListerPro, and then use the ListerPro Page Action: Export pages to CSV file

"This action enables you to export all pages matching your ListerPro query to a CSV/spreadsheet compatible file."

  • Like 1
Link to comment
Share on other sites

In "CSV fields separated with" you must must add the character that you want as the csv separator. That would usually be a comma "," or a semicolon ";"

  • Like 1
Link to comment
Share on other sites

13 minutes ago, diogo said:

In "CSV fields separated with" you must must add the character that you want as the csv separator. That would usually be a comma "," or a semicolon ";"

BCE comes with a comma in that option by default 🙂

Link to comment
Share on other sites

Just now, Norman_12 said:

@diogo yes i did and worked fine, and thank you.

is there anyway to customize how CSV file will display, cause everything seems crushing, cause there anyway to set the with and label names of CSV file

CSVs don't have widths. You are using Excel to view a CSV. If you want a properly formatted Excel file, it's pretty trivial to write an API script to export a series of pages to an Excel file with something like https://github.com/PHPOffice/PhpSpreadsheet which lets you format the spreadsheet almost however you want.

  • Like 1
Link to comment
Share on other sites

@adrian I think the problem here might the wrong format importing (the separator precisely) and not the widths themselves.

@Norman_12 Your question shows that you don't have an understanding of how a csv file works. Please have a look here https://support.microsoft.com/en-us/office/import-or-export-text-txt-or-csv-files-5250ac4c-663c-47ce-937b-339e391393ba. This is not related with Processwire at all. I don't know if you're a new web developer or the owner of the website doing some DIY, and I'm personally fine with any of those, but be aware that we're a bunch of seasoned developers offering you some valuable time, and we'll need to draw a limit somewhere.

 

  • Like 1
Link to comment
Share on other sites

2 hours ago, diogo said:

@adrian I think the problem here might the wrong format importing (the separator precisely) and not the widths themselves.

Ah sorry, the way I read things, I thought he had already fixed the separator issue and still didn't like the column widths.

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.

  • Similar Content

    • By rareyush
      <?php namespace ProcessWire; $form = $modules->get('FormTemplateProcessor');$form->template = $templates->get('book-now'); // required $form->requiredFields = array('title', 'email', 'number','body'); //$form->email = 'your@email.com'; // optional, sends form as email $form->parent = $page('template=book-now'); // optional, saves form as page //$form->render(); // draw form or process submitted form ?> <?php echo $form->render(); ?>  
       
      using this to for a contact on new processwire version 3  and I am receiving this error
       
      Error: Uncaught Error: Call to undefined method stdClass::render() in C:\wamp64\www\mbs\site\templates\book-now.php:9  
      tried following but none of them works
       
      render(array('name','email','body',))
      wireRender()
       
      Render()
      wire()
       
      anyone ?  
    • By rareyush
      I created a template where I am rendering this php file where I am saving contact quires in a template and it is working fine in homepage.
      I used my same code in another page on a same project by creating another template and rendering another file but I am receiving this error again and again, I tried to figure out but it not working.
       
      <?php namespace ProcessWire; $form = $modules->get('FormTemplateProcessor');$form->template = $templates->get('contact'); // required $form->requiredFields = array('title', 'fullname','email_form', 'mobile', 'message'); //$form->email = 'your@email.com'; // optional, sends form as email $form->parent = $page('template=contact-form'); // optional, saves form as page $form->render(); // draw form or process submitted form ?> <?php echo $form->render(); ?>  
      error I am receiving 
       anyone can any solutions for it ?
    • By rafaoski
      Hello All ... I just added a new Site Profile ...
      It is important that you use the latest version that supports the new Fields => Fieldset in Tab , Fieldset ( Page ) for this time it is version 3.0.83 DEV
      A simple profile for quick start new Page ... There are several pages like About Us, Blog, Portfolio, Contact Page ...
      The profile is not based on any framework, I just used some css, flexbox, grid, font awesome, and added a simple FlexBox Grid called GRIDLEX ...
      CAN DOWNLOAD FROM THIS LINK:
      http://modules.processwire.com/modules/site-twilight/
      https://github.com/rafaoski/site-twilight
      Some Screenshots:

      OPTIONS PAGE:

      CONTACT PAGE:

      BLOG PAGE:

      ABOUT PAGE:

      PORTFOLIO PAGE:

       
      In addition, I added 2 great modules:
      Tracy Debugger:
      https://modules.processwire.com/modules/tracy-debugger/

      Markup Sitemap:
      http://modules.processwire.com/modules/markup-sitemap/

       
    • By rushy
      Hi. I have a contact page form that collects user queries in the usual manner and when validation is ok it does a method = post with action = contact-form.php to execute the sending of mail from the server.
      This is all fine and works well, but when the sending is done, I would like a landing page in my project to be displayed. How would i do that? I've tried adding PW code to the contact-form.php to invoke my landing page but I think this is not in scope as nothing happens.
      Many thanks for any guidance.
      Paul
       
×
×
  • Create New...