Jump to content

Zeka

Members
  • Posts

    1,065
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zeka

  1. Hi @Macrura Do you have plans to support ML in your module? I meen support of 'useLanguages' => true, in field config. Eugene.
  2. Definitely agree with what @adrian say. If you are new to JS world, IMHO, I would suggest this learning curve: JS -> ES6 -> jQuery -> Vue / Angular / React https://scotch.io/bar-talk/vuejs-vs-jquery-use-cases-and-comparison-with-examples http://youmightnotneedjquery.com
  3. Could somebody provide some use case for accounts with disabled login?
  4. Hi @heldercervantes The same here, but also got some good recommendations.
  5. Hi @rolisx On one of my shared hosting it works like that, have you tried this option? Options -Indexes # Options +FollowSymLinks # Options +SymLinksifOwnerMatch
  6. Hi @Klenkes I have never tried this module, but from the description, it looks like, partially, what you are looking for. https://github.com/somatonic/AutoSave
  7. Hi @Vigilante Take a look at this page to find out all available options how you can build your URL https://processwire.com/api/ref/page/url/ You can get current URL by $input->url and get current URL with query string by @input->url(true). Take a look at this https://processwire.com/api/ref/input/url/ and https://processwire.com/api/ref/input/query-string/
  8. Hi @Vigilante $selector = "template=category"; if($var) { $selector = "template=category, field=$var"; } $arr = $pages->find("$selector");
  9. Take a look at this blog post https://processwire.com/blog/posts/pw-3.0.28/
  10. Hi @darrenc You can use MarkupCache or WireCache to cache some specific areas of your frontend.
  11. As far as I know, there is no multilanguage support. As workaround, if I'm not mistaken you, can switch user language in admin and then make import of your pages. They will be imported into the selected language.
  12. Currently on Laragon with PHP 7.1.7 without any issues.
  13. Hi @SamC You can choose in AdminThemeUikit module settings page which location should be used by the module. Also, don't forget to update AdminThemeUikit to the latest version. Take a look at this blog post http://processwire.com/blog/posts/processwire-3.0.83-core-updates/ Sources of CSS could be found in https://github.com/ryancramerdesign/AdminThemeUikit
  14. Hi @webhoes You can set "Cache disabling POST variables" in template setting ( Cache tab ). Or you can create a separate template -> page without cache enabled and post your form via ajax to that URL.
  15. Hi @gregory Take a look at this https://processwire.com/api/multi-language-support/code-i18n/#translatable-strings and https://processwire.com/api/multi-language-support/ and also we have new Pro Functional field that might suit your needs. https://processwire.com/blog/posts/functional-fields/
  16. Actually I was thinking about Profields ( tables, multiplier). So there are no repeatable field types that we can use with the module.
  17. @Macrura Great module. Thank you for your work. Just curious is there some limitation of input field types?
  18. Is there some way to rename uploaded files through admin UI as it possible with images?
  19. Hi @ROLAND_JUNO If I'm not mistaken clone module is not installed by default, so you have to install it first and then you will be able to clone pages.
  20. In addition to Abdus: I usually use $sanitizer->digits($value)
  21. @Robin S Thanks once again, your solution works! Don't know how I missed that we have $options variable in templates
  22. @Robin S Thank you! Could you please clarify what is pageStack and is $options predefined variable in template files?
  23. @adrian I think that I have to clarify my setup, so it would be easier for you to suggest something. Page tree Home ( enabled URLsegments ) - Services section ( template: services-section | url: services-section ) -- Services category ( template: services-category | url: services-category ) --- Service ( template: service | url: service ) Your code will work in this case, but after you hook "path" for "service" and "services-category" templates it wouldn't. wire()->addHook("Page(template=services-category|service)::path", function($e) { $page = $e->object; $e->return = "/{$page->name}/"; }); So $page->parent->path and $input->url will return just "/services-section/" and "/service/". Now, "service" page is accessible from two URLs site.com/service/ and site.com/services-section/services-category/service and I what to throw 404 if the second URL is meet. But when accessing this URL $page->url returns "/services/". I didn't find any Processwire method that can return actual URL ( original ), that why I use $_SERVER['REQUEST_URI']
  24. $url_array = explode("/", $_SERVER['REQUEST_URI']); $parent_name = page()->parent->name; if(in_array($parent_name, $url_array)) throw new Wire404Exception(); This code does the job but it feels a little bit dirty to me.
×
×
  • Create New...