-
Posts
66 -
Joined
-
Last visited
-
Days Won
1
Clarity last won the day on April 19
Clarity had the most liked content!
Profile Information
-
Gender
Male
Recent Profile Visitors
628 profile views
Clarity's Achievements

Full Member (4/6)
34
Reputation
-
Clarity started following How to add mini-image to the selectable options? , Module: Leaflet Map , The parameter does not pass to the input after sending form using htmx and 4 others
-
Hello everyone! I have an error "Uncaught ReferenceError: jsMarkupLeafletMap is not defined". My version of ProcessWire is 3.0.199 dev and the version of the module is the latest dev. I found that previously @Marco Angeli resolved the problem here, but it doesn't seem to be my case.
-
Thank you, @Ivan Gretsky! It is right.
-
Hello everyone! I'm using htmx to send a form to /scan URL, but no "search" parameter is present in "get" in $input variable: <form hx-get="/scan" hx-trigger="submit" hx-target="#result" hx-swap="outerHTML" id="scan-form"> <input type="text" name="search"> <input type="submit"> </form> Can you please tell me where is my mistake?
-
I found a solution: instead of Wireframe::partial call $this->view->partials->get.
- 1 reply
-
- 3
-
-
Hello! I need to call Wireframe partial from component's controller method. How can I do it? I see __callStatic method in Wireframe.module.php which seems that may help, but don't know how to apply it.
-
I got it, thank you! I've thought that it is not a good practice because the title may contain letters on other languages which might cause problems with encoding.
-
The problem is that I need to use the title, say, 'footer-menu' in code: $menuBuilder->getMenuItems('footer-menu'). Then I think it is not a good practice to give a title to menu like 'Footer Menu'. Also, if the title can be multi-language, it might, I think, cause other issues.
-
Thank you, finally I found it!
-
Thank you! Finally, I found the root of the problem. I didn't add "return $inputfields;" to the end of file. I'm not using a namespace explicitly. ProcessWire version is 3.0.199 dev, and everything works fine now.
-
Hello, @kongondo! Can you please tell me where can I see the name of menu? It seems to me that the name and the title of menu are the same.
-
Hello, @Macrura! When I use .php file, I get an error: 'Cannot instantiate abstract class ProcessWire\Inputfield'. Can you please tell me how I can overcome this error?
-
@3fingers, thank you for your answer! Unfortunately, I have a multi-language and the locale should not be hard-coded in site/config.php. Maybe there is a way to define locale from user current settings? I've thought that I somehow need "C" for this purpose.
-
Hello everyone! I had an error related to "C" locale which told me to translate "C" locale settings. Where can I find this "C" locale in admin for translating it? I can't find it anywhere.
-
Hello everyone! I have a "Select Options", but I need to illustrate them with images (attach a viewable picture in admin panel to them). How can I do it?
-
Finally, I found a solution: as @MarkE wrote, I was trying to hook not in proper place. I've hooked another ___processInput method, in InputfieldForm. The working hook is: wire()->addHookBefore('InputfieldForm::processInput', function($event) { $input = $event->arguments('input'); if(!$input->title) { $input->title = '1'; } if(!$input->_pw_page_name) { $input->_pw_page_name = '1'; } }); Thank you all for the advices!