In this article, we continue enhancing capabilities of "Request a quote app" we designed in our previous articles by adding a standard view which will list the bidders of in table format.
I want to list the bidders in table format with AJAX page navigation. AJAX navigation allows displaying content without reloading the whole page. The bidder table will have the following columns;
I want also WPAS to create a step page named "Contact List" in the plugin activation.
To create a standard view, I go to the View menu and click "Add New" link. I will name the view as "contact_list" as shown in the respective image in the gallery section. The main thing to look at here is how we fill in the header, layout and footer fields. The table header tags (th) go to the header field and all tags are closed in the footer field. The view layout field includes all our row information which will repeated for every record ie. loop. The header and footer fields are for static(non-changing every record), the layout field is for dynamic(changing every record) data.
After saving my view and documenting the changes in the app change log, I send the app for generation.
After generation complete and getting the update notice, I update the app from the plugin page. The setup assistant shows up. I click on "Setup Request a quote Pages" to create the new page. That's it. The page is created as shown in the image.