-
Posts
269 -
Joined
-
Last visited
-
Days Won
6
Everything posted by ukyo
-
public function ___install() { // do something when istall module $this->files->copy(__DIR__ '/templates/', $this->config->paths->templates); } You can add this operation inside install method. And don't use URL you need to use PATH.
-
I checked, Hotels, Booking, Airbnb admin panels all they have different solutions about managing availabilities, i created my own one like on video. You can find a solution for your self.
-
Its a private module, not public. You can take FieldtypeEvents as reference for you.
-
You can create your templates inside your modules folder, like "MyModule/templates/" on module installation you can copy these templates to "site/templates/" folder.
-
I registered for check it, but confirmation mail didn't come. I wrote a Fieldtype Module like this. I am using this private module for managing hotel rooms availabilities and room prices etc. I made 2 video for you, you can check the usage. I used https://flatpickr.js.org/ Backend Ekran Kaydı 2021-03-27 01.52.04.mov Frontend Ekran Kaydı 2021-03-27 01.58.10.mov
-
Nice module, i added this feature to Mystique module next version. You can set a fallback function as a config. Here an example config. Also next version will support most of ProcessWire selectors. You can check or test it from next branch.
-
Do you think to add support for sqllite database? Sometimes i need it for small projects.
-
JSON structure with direct access to key
ukyo replied to jploch's topic in Module/Plugin Development
I have builder system with PageTable input field, Text field is InputfieldText Field (Searchable) Properties field is Mystique Field (Limited search support) Current Mystique field version support search limited. Working with next version on my side and it will support searching. -
JSON structure with direct access to key
ukyo replied to jploch's topic in Module/Plugin Development
@jploch You can check my Mystique module -
@modifiedcontent Can you put these files under a folder something like : templates/extends or site/src. After do that can you add this path to wire classLoader. You can do this on ready.php file or you can try it before apply your customizations (didn't try that). <?php // ready.php example $template = $page->template->name; if (in_array($template, ['template-with-comment-field'])) { wire('classLoader')->addNamespace('ProcessWire', wire('config')->paths->templates . '/extends'); // or wire('classLoader')->addNamespace('ProcessWire', wire('config')->paths->site . '/src'); } or (didn't tested) <?php wire('classLoader')->addNamespace('ProcessWire', wire('config')->paths->templates . '/extends'); // or wire('classLoader')->addNamespace('ProcessWire', wire('config')->paths->site . '/src'); $page->comments->render(['className' => 'CommentListCustom']); $page->comments->renderForm(['className' => 'CommentFormCustom']);
-
I am currently working on custom comment form output and custom comment list output. I copied `CommentForm.php` as `CommentFormUikit.php` and copied `CommentList.php` as `CommentListUikit.php`. Renamed class names on these and extend base classes files and removed not used codes and modified needed sections. When i want to use my custom outputs : <?php // include customization classes include __DIR__ . '/CommentListUikit.php'; include __DIR__ . '/CommentFormUikit.php'; // custom list output echo $page->comments->render(['className' => 'CommentListUikit']); // custom form output echo $page->comments->renderForm(['className' => 'CommentFormUikit']); ?> CommentListUikit.php <?php namespace ProcessWire; class CommentListUikit extends CommentList { // do your customizations } CommentFormUikit.php <?php namespace ProcessWire; class CommentFormUikit extends CommentForm { // do your customizations } Example output for uikit 3 frontend framework, still working on it, specially writing a javascript for comment form
-
Today we have 2 covid-19 case. I live in Turkey (Marmaris). Everything normal at the moment. I work from office.
-
Follow these steps for solve duplicate problem :
-
@LAPS @J_Szwarga i updated config file finder and pushed new version of module. You can update your module ! Please let me know if you have same issue. @bernhard i updated finder https://github.com/trk/FieldtypeFontIconPicker/blob/master/FieldtypeFontIconPicker.module#L46 as your recommend, if it success on this module. i will apply same function for my Mystique module.
-
I added prev brach on github repo, this repo is previous version of module, you can use it. I will try to fix your problem, but let me know your server or computer software versions. https://github.com/trk/FieldtypeFontIconPicker/tree/prev