Jump to content

ukyo

Members
  • Posts

    297
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by ukyo

  1. Do you think to add support for sqllite database? Sometimes i need it for small projects.
  2. 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.
  3. @jploch You can check my Mystique module
  4. @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']);
  5. 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
  6. I fixed this error, but i can't update module on module directory. There is an error on module directory at the moment. You can update module by directly downloading it from Github.
  7. Module updated, can you check ? Its look like adding same method to Fieldtype class solve the problem.
  8. 19 days ago, I created an issue. Waiting for fix or a solution.
  9. ukyo

    COVID-19

    Today we have 2 covid-19 case. I live in Turkey (Marmaris). Everything normal at the moment. I work from office.
  10. Follow these steps for solve duplicate problem :
  11. Next version merged with master branch. Image field removed from example ? sorry about that. Module updated.
  12. Image & File fields are not supported yet, i will check these fields later. Feel free to play with module for add support ?
  13. Thanks @bernhard, I updated module with same finder function used on FontIconPicker module. I am using dirname function for getting module or templates folder names from file path. "Example : Dive" is title of config, "(mystique)" is name of module folder
  14. @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.
  15. 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
  16. Copy / Paste files enough
  17. Module working, but not on your side ?. I created a next branch on github repo can you download next branch and test it ? https://github.com/trk/FieldtypeFontIconPicker/tree/next After install module be sure, refresh modules and clear compiler cache.
  18. How to use core files()->find() function like php glob() function ? https://github.com/trk/FieldtypeFontIconPicker/blob/master/FieldtypeFontIconPicker.module#L50 If you don't have custom icons inside templates folder result look like ok.
  19. Can you check paths are true on your server ? on this line : https://github.com/trk/FieldtypeFontIconPicker/blob/master/FieldtypeFontIconPicker.module#L43 @bernhard have similar error with my other Mystique module Repo function line : https://github.com/trk/Mystique/blob/next/Mystique.module.php#L88 I can't find the issue. On my mac (macos mojave with valet (php 7.4.3)) and on my server (centos 7.7 with php (7.3)) i can't see this issue.
  20. @MilenKo and @LAPS What is your operation system ? Windows ?
  21. @bernhard i don't have a Windows PC and can't test it, Can you try to change ready function for next branch : public function ready() { $path = $this->wire("config")->paths->siteModules . "**/configs/Mystique.*.php"; $path .= "," . $this->wire("config")->paths->templates . "configs/Mystique.*.php"; foreach (glob("{" . $path . "}", GLOB_BRACE) as $file) { $dirname = dirname(dirname($file)); $base = strtolower(str_replace([dirname(dirname(dirname($file))), "/"], "", $dirname)); $name = str_replace([dirname($file), "/", "Mystique.", ".php"], "", $file); $this->resources[$base][$name] = $file; } } with public function ready() { $path = $this->wire("config")->paths->siteModules . "**" . DIRECTORY_SEPARATOR . "configs" . DIRECTORY_SEPARATOR . "Mystique.*.php"; $path .= "," . $this->wire("config")->paths->templates . "configs" . DIRECTORY_SEPARATOR . "Mystique.*.php"; foreach (glob("{" . $path . "}", GLOB_BRACE) as $file) { $dirname = dirname(dirname($file)); $base = strtolower(str_replace([dirname(dirname(dirname($file))), DIRECTORY_SEPARATOR], "", $dirname)); $name = str_replace([dirname($file), DIRECTORY_SEPARATOR, "Mystique.", ".php"], "", $file); $this->resources[$base][$name] = $file; } }
×
×
  • Create New...