-
Posts
533 -
Joined
-
Last visited
Everything posted by adrianmak
-
This is page structure of simple quiz Examination is a landing page which list all examination available Each child of Examination is each examination title and all child(s) of its are the questions of this exam. How to add child one follow by one. Now I have to go back to the page tree, and hook over the page title to add another child. This workflow is not good for adding large number of child pages of a parent
-
what is the pw's backend admin id and password of the sample quiz?
-
firefox since, I forgot which version, is now built-in firefox developer tools, which do the same job as firebug extension. Could it log to firefox developer tools?
-
great module
-
I knew there are some standalone laravel blade template engine. Anyone success to use it on ur pw's project ?
-
date field did not show in MarkupAdminDataTable
adrianmak replied to adrianmak's topic in General Support
I found the issue. It is caused by typo error on another template where store date time on the date field -
My site has an enquiry submission form. Then, I use Process module to retrieve those submission data. foreach($listing as $p) { $checkbox = "<input name='guestbook[]' id='guestbook_{$p->id}' value='{$p->id}' type='checkbox'>"; $data = array( $checkbox, $p->title=>$config->urls->admin."../page/edit/?id=".$p->id, $p->gb_email, $p->gb_subject, $p->gb_message, $p->post_date, ); $table->row($data); } All fields are look properly, except the post_date, it returned empty
-
I didn't find mentioned in api doc and I look up in the wire/core/Page.php but no success.
-
how could i delete a page instantly, without moving to Trash
adrianmak replied to adrianmak's topic in General Support
In some cases, it is better to delete page instantly. I have pages to store form submission. If I found spam submission, there is no doubt to delete it permanently -
On some scenario, two different templates with an image field but having different setup one template allowed for single image upload another template allowed for multiple images upload I'm thinking of is there any work around, instead of creating two separate image fields
-
I want to clone existing Reno admin template. Should admin theme be placed in wire\modules\AdminTheme ? and should an admin theme prefixed with AdminTheme ?
-
After a success form submission, I will display a message say Data has been submitted. Please wait for 3 seconds for page redirection I used php function sleep() i.e. echo "Data has been submitted. Please wait for 3 seconds for page redirection"; sleep(3); $session->redirect("./"); However message had never been echoed. It just delay 3 seconds and follow a page redirection
-
another minor problem is, I out the checkbox prior of the name $checkbox.$p->title=>$config->urls->admin."../page/edit/?id=".$p->id, However, the outputted markup, the input checkbox is wrapped by anchor link, the result is clicking the checkbox will redirect to page edit. How could i display the checkbox out of the anchor link
-
I'm building a form with a markupadmindatatable, one of column is a checkbox for each row, selection for deletion. $out .= "<form action='save' method='post'>"; $table = $this->modules->get("MarkupAdminDataTable"); $table->headerRow(["Name", "Email", "Subject", "Content"]); $listing = $this->pages->get(1024)->children(); foreach($listing as $p) { $checkbox = "<input name='guestbook[]' id='guestbook_{$p->id}' value='{$p->id}' type='checkbox'>"; $data = array( $p->title=>$config->urls->admin."../page/edit/?id=".$p->id, $p->g_email, $p->g_subject, $p->g_content, $checkbox ); $table->row($data); } $out .= $table->render(); $out .= "<button class='ui-button ui-widget ui-corner-all head_button_clone ui-state-default' name='submit_delete_field' value='Delete' type='submit'><span class='ui-button-text'>Delete</span></button>"; $out .= "</form>"; return $out;
-
I'm really new on pw's module development. And I'm working on a process module. I read a few of other core or 3rd party Process module, I found that there are some kind of similarity in method naming convention Like, public function executeXXXX () { // code } Take the ProcessField.module of pw core process module as an example public function ___executeChangeType() public function ___executeSaveChangeType() public function ___executeImport() public function ___executeExport() However , I search thru the method name executeChangeType, executeSaveChangeType, executeImport executeExport They are never been called in other function within the module
-
Custom dashboard sorting MarkupAdminDataTable pages
adrianmak replied to Raymond Geerts's topic in General Support
I'm working on MarkupAdminDataTable. From OP screenshot, how to put a checkbox in front of each row. My intention is to allow user for multiple row selection to perform some actions like delete pages -
How to set a column sortable in MarkupAdminDataTable instead of all columns ?
-
How to use pw to create a guestbook like functionality ?
adrianmak replied to adrianmak's topic in General Support
Understood. For the purpose of showing up an module navigation in the pw top admin menu, just put a page array as shown in the above post, pw will create it automatically. The install and uninstall method is not necessary in this case. By the way, I found some other module declare execute method in public function ___execute() { } what is the different with or without three underscore prefix ? -
How to use pw to create a guestbook like functionality ?
adrianmak replied to adrianmak's topic in General Support
I deleted the old file and create a new one. Works now. By the way, when module installation, it should add a page in under the "Admin" page automatically. I added two method to call the parent install and uninstall method public function install() { return parent::___install(); } public function uninstall() { return parent::___uninstall(); } But no page is added under 'Admin' page. -
How to use pw to create a guestbook like functionality ?
adrianmak replied to adrianmak's topic in General Support
It's is not working. public static function getModuleInfo() { return array( 'title' => 'GuestBook', 'version' => 2, 'summary' => 'Manage Guestbook submission.', 'autoload' => true ); } -
How to use pw to create a guestbook like functionality ?
adrianmak replied to adrianmak's topic in General Support
I'm now heading to writing the module For simplicity purposes, just display a text class GuestBook extends Process { public function init() { parent::init(); } public function execute() { $out = ''; $out = "Guestbook back-end"; return $out; } public function executeEdit() { // Write code to edit submission } // ... } I went to back-end to install it and pw returned Error: Class 'GuestBook' not found (line 407 of /var/www/html/pw272/wire/core/Modules.php) -
is it possible to not show page submission in page tree ?
adrianmak replied to adrianmak's topic in General Support
could u mind share more implementation details about this technique from you real project ? -
is it possible to not show page submission in page tree ?
adrianmak replied to adrianmak's topic in General Support
I knew what is template permission. But what is module permission ? where to config a module permission ?