-
Posts
95 -
Joined
-
Last visited
Everything posted by peterfoeng
-
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
-
Wanze, this is a very nice module I am playing around with it now
-
Module HelperFieldLinks - field and template edit shortcuts
peterfoeng replied to Soma's topic in Modules/Plugins
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 -
I agree! My vote goes to Robben
-
Random question, what version is dev now? lol
-
Welcome to the club
-
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?
-
Hi, I am interested if you guys allow me to help
-
Very useful module, just got a chance to play around with this module on the project I am working on
-
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
-
Haven't tested it yet but will a great addition! Thanks much
-
PHPStorm, and before that Sublime Text 3
-
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.
-
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
-
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
-
Hi Ryan, Is this a replacement for the repeater fieldtype? somehow I guess Cheers
-
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!
-
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
-
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
-
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!
-
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?
-
name field in Content instead in Settings tab
peterfoeng replied to seddass's topic in General Support
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 -
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