Jump to content

bernhard

Members
  • Posts

    6,629
  • Joined

  • Last visited

  • Days Won

    358

Everything posted by bernhard

  1. maybe this one: https://modules.processwire.com/modules/frontend-user/ (https://www.google.at/search?q=site:processwire.com+frontend+login) Maybe you have good reasons to do this in the frontend but using the admin in ProcessWire might be simpler than you think: https://processwire.com/blog/posts/building-custom-admin-pages-with-process-modules/ Staying in the pw admin has the benefit that you have all the tools available: access control, collapsible fields, hooks etc.
  2. also no problems on win10 + laragon
  3. @BitPoet what do you think about implementing http://rvera.github.io/image-picker/ for the file select field? I think this would be really nice to have in case of images. For other files there could be a default placeholder (like a file icon).
  4. thx, your screenshot looks nice. I guess you edit your pages in a modal? Didn't think of using page table extended for this. I guess I also wanted to try out the matrix fieldtype when I created the mentioned website.
  5. you can put a function somewhere in your code (eg _functions.php): function translate($string) { if($config->lang == 'en') { $translations = [ 'hallo welt' => 'hello world', ... ]; return $translations[$string]; } return $string; } echo translate('hallo welt'); // hallo welt $config->lang = 'en'; echo translate('hallo welt'); // hello world
  6. good idea, thx
  7. I don't get your point, sorry. But it seems like this has nothing to do with my kickstart module so I guess it would be better to ask in the general support category?
  8. yes google "site:processwire.com create template field api" see some example code: https://processwire.com/talk/topic/1051-adding-and-assigning-fields-without-using-gui/?do=findComment&comment=9150 create a recipe that executes this code you could also make the recipe install the migrations module, copy over some migrations from a git repo and then execute this migrations.
  9. thanks theo, looks great already and please share your work - maybe someone wants to take it further maybe you want to take a look at http://rvera.github.io/image-picker/ - you could use a regular select field, modify the options via hook and then let the jquery plugin do the presentation of the images.
  10. I think there's nothing that can't be done with RepeaterMatrix, but I like two details: The live preview is nice (not related to this field) Writing text directly to the field and only insert blocks where needed is definitely a nice improvement for the UI when you are writing lots of text. In a recent blogpost that I wrote it was quite tedious to use repeatermatrix' different types because sometimes I just needed one line of text to introduce the next block and I always had to create a new repeater matrix item. In those scenarios it would be great to just start writing and insert blocks where needed. A CKEditor field with HannaCode tags is similar but also not as good as your example imho.
  11. Just wanted to share a blogpost by myself about my master thesis that I'm writing at a great little company based in vienna and specialised in earth observation related things and geoinformatics called EOX: https://eox.at/2018/01/visualizing-geotiff-tiles-with-openlayers/ In (very) short, this is how WMTS works now: this is what we do: and this is what we analyze (finding the "break-even" when it starts to make sense using this approach): Maybe this might especially be interesting for you, @Mats ?
      • 7
      • Like
  12. thx, now I get it
  13. thanks for that tip! sorry, dont't get it
  14. https://stackoverflow.com/questions/5479073/when-is-it-good-to-use-pass-by-reference-in-php https://www.elated.com/articles/php-references/ So I think you have to decide on your own taking into account performance and code readability.
  15. @FrancisChung is there a reason why you reacted "sad" to my above posting?
  16. This is exactly what can be done with the migrations module. It totally depends on his usecase what is the best option. That it is not maintained does not mean that it does not work It's only some helper functions around pw's API - and you know how often the api changes... almost never Maybe copying over site profiles is the best option. But maybe he needs more flexibility then the other options could be handy. And maybe he wants to maintain all of those websites lateron, then site profiles would be totally useless whereas migrations could be shared across the single instances and modify them as needed.
  17. Not to forget there's also the migrations module: https://modules.processwire.com/modules/migrations/ https://processwire.com/blog/posts/introduction-migrations-module/
  18. Agree, but I can't see any of them on the linked site. Yes Thanks for the discussion but I don't want to bring us too far offtopic
  19. I know the test-site ( http://isit.pw/?url=https%3A%2F%2Fwww.integrify.com%2Fcustomers%2F ) but I don't know how the testsite works either I can't find anything indicating that it is PW other then the /site/templates/ urls and I'm just not sure if that is proof enough...
  20. What tells you that this is PW? The /site/templates/ urls?
  21. I'm not a fan of site profiles... That's why I created ProcessWire Kickstart. I created another explanation of how you can use it in szabesz' linked topic:
  22. ...or create one kickstartfile and run it: <?php return [ 'pw' =>'https://github.com/processwire/processwire/archive/dev.zip', 'profile' => 'site-default', // could also be a custom profile url from gitlab 'settings' => [ // usernames + passwords ], 'recipes' => [ function() { $this->installModule('TracyDebugger', 'https://github.com/adrianbj/TracyDebugger/archive/master.zip'); }, function() { $this->installModule('DemoModule1', 'url1'); }, function() { $this->installModule('DemoModule2', 'url2'); }, function() { $this->installModule('DemoModule3', 'url3'); }, function() { // create pages or do whatever is possible via pw api // you could also change settings in config.php here }, ], ]; Then it is literally just one click! You could create one master kickstartfile and then just comment out the recipies that you don't want. I think this is a really, really powerful and timesaving method. Also it will always download the latest versions of all the modules. I don't get why there is no almost no response at the dedicated forum thread. Seems that nobody gave it a try so far...
  23. Hi and welcome to the forum. Have you looked at kongondos Multisite Module and my recently published Kickstart module?
  24. thx - I'm using the console for 99% of such tasks
  25. Just wanted to say that I really love the new copy&paste feature in ckeditor. Really a great timesaver and so much more comfortable to work with!
×
×
  • Create New...