-
Posts
601 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Frank Vèssia
-
YES! Thank you
-
No, I need to sort the fields of the repeater not the values created
-
HEllo, I managed to add a field inside a repeater via api but it's added as last element. I cannot find a way to change the position. this is my function protected function addFieldToRepeater(Field $field, $repeaterName) { $fieldgroups = $this->wire('fieldgroups'); $repeaterFg = $fieldgroups->get("repeater_variations"); if(!$repeaterFg) { $this->error("Fieldgroup 'repeater_variations' non trovato."); return; } try { if(!$repeaterFg->getField($field->name)) { $repeaterFg->add($field); $repeaterFg->save(); } else { $this->message(The field is already present."); } } catch (Exception $e) { $this->error("Error: " . $e->getMessage()); } }
-
Hi, I'm having some trouble trying to set a sender-reply via api $mail->sender_reply('email@domain.com'); I get error Method WireMailSmtp::sender_reply does not exist or is not callable in this context
-
yes is the same as the previous one, I just clone the page and reassing the new one. Very strange...
-
Hello, I'm struggling to understand why this is not working. I'm cloning a page (with children) and assing it as page reference to another page but the page reference don't change. $call = $pages->get(123); $new_report = $pages->clone($report); $new_report->of(false); $new_id = uniqid(); $new_report->title = $new_id; $new_report->name = $new_id; $new_report->save(); $new_report->of(true); $call->of(false); $call->report = $new_report; $call->save(); $call->of(true);
-
Thanks for the fast reply. Yes some translation files were not installed, I didn't check properly, sorry. Mhhm, I already tried that but that page assumes the user is already logged in and ask only for the password for confirmation, there is no way request a deletion for not logged in user. I will try something else, don't worry, it's not a big deal. Regarding custom fields, I checked my text fields but I get a fatal error because they are multilanguage text fields, if I change them to normal text fields it works. Fatal Error: Uncaught TypeError: FrontendForms\Form::add(): Argument #1 ($field) must be of type FrontendForms\Markup|FrontendForms\Inputfields|FrontendForms\Textelements|FrontendForms\Button|FrontendForms\FieldsetOpen|FrontendForms\FieldsetClose, null given, called in /site/modules/FrontendLoginRegister/pages/FrontendLoginRegisterPages.php on line 858 and defined in /site/modules/FrontendForms/Formelements/Form.php:3177 Stack trace:
-
Hey Juergen, great module!! I just discovered it and I'm trying to implement it in one of my websites. Few things if I may: - I can't find the submit button texts inside translation files. - Is there a way to choose the position of the privacy check inside the form? right now it appears on top of everything when usually is at the end. Also I have an external privacy policy but in settings I can only choose an internal page. - I have few input fields text inside my user template (name, surname, age, ecc..) but they don't show up on the settings select - Since my website is also an app for Android and iOs, the app stores ask for a public account deletion link but your system is a private page for the already logged in user. In my other websites I have a form where user can put the email and if the email exists it sends a confirmation via email. Edit: I added a captcha and now the privacy check is at the bottom 🙂
-
I'm looking forward to this and thanks for the added docs!
-
great module, I like the Alpine Front End solution. Questions: - any support for shipment cost with custom rules - discount code - any way to retrive all abandoned carts? - I guess all the customer part is up to the developer, any plan to expand in this direction?
-
After some debug it looks like the image field is the problem, cloning the page without any image assigned works as expected, very strange
-
no, just the title, which is by default.
-
Hello, I have a template with 32 fields, one repeater and images and I added a function to clone a page via API. It worked since today when suddenly is throwing an sql error, never seen before: Error: Exception: SQLSTATE[HY000]: General error: 1116 Too many tables; MariaDB can only use 61 tables in a join and from now on, the clone function doens't work anymore. Any idea? Thsi si my clone function function clonePlate($plate){ $pages = wire('pages'); $copy = $pages->clone($plate); $copy->setAndSave('title', $copy->title.' (copy)'); }
-
Hello, I'm having some trouble using the module inside another module. It looks like it can't process the "to" email, I'm always getting "Error in hnsmtp::send : it were not specified any valid recipients". I simply call the module as I call it inside a template $m = wireMail(); $m->to($email); $m->subject('my subject'); $m->bodyHTML($body); $numSent = $m->send(); I tried to change the call to $this->modules->get('WireMailSmtp') with no success...what I'm doing wrong? Edit: I solved it. Maybe it could be helpful for someone else...the send email address in the general setting of the module was wrong (different domain from the one set in the smpt) and somehow it didn't show any error when Wiremail sends an email from a template..
-
mmm....I tried to update the module with no luck, at this point I don't know what it is...I also tried to deactivate some modules...anyway I will do some more test and let you know, thanks for now.
-
I've been using WireMailSmtp since ages and for some clients we have microsoft exchange 365 emails. Recently Microsoft annouced they are deprecating basic stmp authentication in favor of OAuth 2.0...is there a way to configure WireMailSmtp with this method?
-
Hi, I maybe just found a very strange bug. I'm using Processwire with a React front end and I setup it in a subdomain like so https://api.mydomain.com/ so just to avoid using api twice i changed the API endpoint into "v" using versions so my base api endpoint is https://api.mydomain.com/v/1/ Now, everything works fine except when I call a route with a GET parameter starting with "v", it cuts out the v from the slug, for example if I call https://api.mydomain.com/v/1/category/variety the get parameter I get it's "ariety" and this happens on all characters I put in the api endpoint, not just for one character This is the route I'm using 'category' => [ ['OPTIONS', '{slug:\S+}', ['GET']], ['GET', '{slug:\S+}', Blog::class, 'getCategory',['application' => 1]], ], and this is the function which receives the parameter public static function getCategory($data) { $data = AppApiHelper::checkAndSanitizeRequiredParameters($data, ['slug|pageName']); ... // $data->slug returns "ariety"
-
External library inside module
Frank Vèssia replied to Frank Vèssia's topic in Module/Plugin Development
Much appreciated, thanks -
External library inside module
Frank Vèssia replied to Frank Vèssia's topic in Module/Plugin Development
So I got it...just removing "namespace Processwire" on top of the module -
Hello, I'm trying to get to work a getstream.io library inside a module. Since I'd like to avoid using composer I downloaded the library from php-download.com which makes it possible just to include the autoloader.php file and using the library directly. I tested it inside a template and it works well but I can't inside a module. This is what I wrote so far inside template: <?php require_once('./vendor/autoload.php'); $client = new GetStream\Stream\Client($key, $secret); Inside module I get error: class GetStream\Stream\Client not found <?php namespace ProcessWire; class ProcessSocial extends WireData implements Module, ConfigurableModule { ... public function init() { $file = __DIR__ . '/vendor/autoload.php'; if (file_exists($file)) { require_once $file; } } protected function testFeed($user){ $client = new GetStream\Stream\Client($api, $key); $feed = $client->feed('User', $user); return $feed->getActivities(); } }