Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by peterfoeng

  1. Hi Rodwyn, Welcome to PW forum Hopefully the example below help you out: Deleting $page->of(false); $itemToRemove = $page->Body_Repeater->eq(0); $page->Body_Repeater->remove($itemToRemove); $page->save(); Editing $itemToEdit = $page->Body_Repeater->eq(0); $itemToEdit->of(false); $itemToEdit->body = "My new content"; $itemToEdit->save(); Things you need to remember with Repeater is that Repeater Item is an actual page in processwire but being hidden in the tree and obviously Repeater field is an array of pages (wirearray). For documentation please refer to this page: https://processwire.com/api/arrays/ Hope this helps
  2. Wanze, this is a very nice module I am playing around with it now
  3. I am running the dev 2.4.7, it seems that the field links are not working at all. Can someone else confirm this? Thanks much
  4. peterfoeng

    World Cup 2014

    I agree! My vote goes to Robben
  5. Random question, what version is dev now? lol
  6. Hi Soma, I am using the latest modulemanager (2.1.2) and the latest processwire build, but for some weird reasons the module only list 10 modules available. I have increased the limit to 100 but no go. Any ideas?
  7. Hi, I am interested if you guys allow me to help
  8. Very useful module, just got a chance to play around with this module on the project I am working on
  9. I am playing around with this module but correct me if I am wrong, it seems that new images are always being generated everytime I see the page? I download the latest module from Github but I think something is not right when it is being used with something like: thumbnail,250,0 medium,550,0 the execution takes forever and everytime the page is being loaded, every images is being cropped all over again which I believe it should not. --------- UPDATE: I am submitting a pull-request for the issue I am having Please kindly review this PR here: https://github.com/apeisa/Thumbnails/pull/22/files
  10. Haven't tested it yet but will a great addition! Thanks much
  11. PHPStorm, and before that Sublime Text 3
  12. I am wondering, if the prependTemplateFile is supported here? I try to play around with this module over the weekend but no luck. It seems that it does not recognize the prependTemplateFile.
  13. Hi GuruMeditation, Regarding the profile scenario above, I am pretty sure profields will make it easier and save you time. I recently move across my billing & shilpping information from invidual fields to profields textarea which I believe should have saved me time and will be easier to maintain over the long run. Cheers
  14. Hi Ryan, I am wondering if Page Fieldtype will be part of Table field in the future? Not sure if this is even possible though, lol
  15. Hi Ryan, Is this a replacement for the repeater fieldtype? somehow I guess Cheers
  16. Will be very useful also for things like shipping and billing as I am using individual fields to store user dafa like first name, last name etc...this is a huge time saver! Cant wait for it to be available, thanks Ryan!
  17. Hi everyone, I try to test this module and it seems it does not work when I try the examples in the service-pages page that comes with this module. I have made sure that the template field is included in the config but it comes up with this error: Error: Template 'basic-page' is not allowed in queries Not quiet sure what settings I did miss here. Here is the screenshot: Appreciate any help to solve this issue Cheers
  18. Hi adrianmak, While there is not out of the box functionality, you can build this stuffs pretty fast. A lot of people including myself build the membership functionality following this link: https://processwire.com/talk/topic/1716-integrating-a-member-visitor-login-form/?p=15919 Hope this helps
  19. Hi, Looking into the hosting, it seems pretty good and pretty sure can run processwire without issues. You might want to double check the requirement page again: http://processwire.com/about/requirements/ Good luck with the first PW site!
  20. The code looks fine to me. I have a project that implements the login functionality and the code is similar to mine. What sort of internal server error do you get?
  21. if($items->order_product = $form_addtocart[item]) { Above may not work as you need: if($items->order_product == $form_addtocart[item]) { Doube equals sign instead of single equal sign. The rest should be working as expected unless I am missing something
  22. Hi, I am wondering if we can also we move the fields on the template (global field) to the settings tab. I am having a bit of issue understanding of what needs to be done. /** * Initialize the module * * ProcessWire calls this when the module is loaded. For 'autoload' modules, this will be called * when ProcessWire's API is ready. As a result, this is a good place to attach hooks. * */ public function init() { // add a 'hello' method to every page that returns "Hello World" $this->addHookAfter('ProcessPageEdit::buildFormSettings', $this, 'example'); } public function example($event) { $page = $event->object->getPage(); $form = $event->arguments("form"); echo $page->template; print_r($form); $wrapper = $event->return; $templateField = $wrapper->get('template'); $myField = wire('modules')->get('InputfieldText'); $myField->attr('name', 'hello'); $myField->label = "Hello there"; //$wrapper->insertAfter($page->get('title'), $templateField); $event->return = $wrapper; } Can this be done? I wonder Thanks
  23. Life saver Adrian! I was just thinking that it would be nice to have feature two days ago for the project I am working on at the moment. I haven't tested it but from the looks of it very promising. Cheers
  24. I never dive in into module development yet, but how hard it is to change one of the field into page field type? Cheers
  • Create New...