Jump to content

adrianmak

Members
  • Posts

    533
  • Joined

  • Last visited

Everything posted by adrianmak

  1. 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
  2. what is the pw's backend admin id and password of the sample quiz?
  3. 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?
  4. I knew there are some standalone laravel blade template engine. Anyone success to use it on ur pw's project ?
  5. I found the issue. It is caused by typo error on another template where store date time on the date field
  6. 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
  7. I didn't find mentioned in api doc and I look up in the wire/core/Page.php but no success.
  8. 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
  9. 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
  10. 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 ?
  11. 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
  12. I'm using phpDesigner http://www.mpsoftware.dk/phpdesigner.php It work very well with pw. You guys should take it a try.
  13. 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
  14. 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;
  15. 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
  16. 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
  17. How to set a column sortable in MarkupAdminDataTable instead of all columns ?
  18. 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 ?
  19. 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.
  20. It's is not working. public static function getModuleInfo() { return array( 'title' => 'GuestBook', 'version' => 2, 'summary' => 'Manage Guestbook submission.', 'autoload' => true ); }
  21. 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)
  22. could u mind share more implementation details about this technique from you real project ?
  23. I knew what is template permission. But what is module permission ? where to config a module permission ?
×
×
  • Create New...