Jump to content

szabesz

Members
  • Posts

    3,024
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by szabesz

  1. What I meant was that it is enough to support the default admin theme, which is the UIkit one. And I forgot that the old default is still called "Default". Sorry for the confusion. Side-note: the original name for the original theme was not the best choice....
  2. Agreed... +1 Let's not support other than the default theme.
  3. If this tool is used by site editors and superusers only (as a collaboration tool) of trusted users, then there is no need for this feature. It is used in the admin after all, so it should be ok to publish messages right away. Am I missing something?
  4. I see! But its new to me ? I use a small subset and try to remember the others just in case...
  5. What do we think? Awesome, of course! However, another panel? Can't you add it to an existing panel instead, maybe Request Info?
  6. Thanks again for all the effort! I will find some time this week (probably on the weekend) to check it out and comment, and I'll see what else I can contribute.
  7. I have reported it: https://github.com/processwire/processwire-issues/issues/797#issuecomment-470086429
  8. https://processwire.com/api/ref/wire-array/eq/ It says: "Returns the item at the given index..." if you do not know the index, you cannot get it this way. In other words, you already have the reference to the object, you need an index, so you are facing some sort of opposite scenario (sure, the page ID and your index are not the same, btw). Otherwise just do what @dragan has suggested ? I do not recommend starting form -1 if you increment it at the last line in the loop as in this case the first index will be -1 and Peter needs it to be 0.
  9. Without context such things very often can have various meanings and due to the nature of the differences between languages they cannot be translated "blindly". In these cases only a human translator can put them into context in order to properly translate them.
  10. There are some quirks regarding this issue, please read this report, particularly the last two comments of mine: https://github.com/processwire/processwire-issues/issues/668 EDIT: I posted this too early by accident.
  11. In addition to this – depending on the context where one uses it –, one might need other options too, see: https://processwire.com/api/ref/wire-http/send-file/
  12. Regarding the temporary state, are we talking about this bunch of issues? https://github.com/processwire/processwire-issues/issues/650 https://github.com/processwire/processwire-issues/issues/42 https://github.com/processwire/processwire-issues/issues/41 If so, then this part of the core might need some refactoring.
  13. https://flaviocopes.com/page/ebooks/ I am in the middle of reading his The JavaScript Handbook which is great to get up to speed in the additions of the language added in the last few years. This is a no-nonsense, easy to understand, from-a-programmer-to-programmers book, highly recommended ? All six titles: The JavaScript Handbook (171 pages) JavaScript from ES5 to ESNext (84 pages) The React Handbook (220 pages) The Node.js Handbook (189 pages) The Express.js Handbook (61 pages) The Vue.js Handbook (122 pages) Happy coding ?
  14. In addition to @dragan's reply, you might find my previous post regarding CKEditor useful when setting it up:
  15. Thanks for developing it! Let's say I was interested in it but turning it into a "request" is fine with me too ? Thanks in advance!
  16. Thanks a lot for caring! I'm pretty sure that those who could not click the like button are just away for a long weekend ?
  17. In his other post I also recommended this but .role-superuser seems to be added by AdminOnSteroids only...
  18. One easy option to hide it is to install @tpr's AdminOnSteroids module, which – among others – adds the CSS class role-superuser to <body> so you can also use its Admin CSS feature: body:not(.role-superuser) .PageListID27 { display: none; }
  19. I like it ? Not beautiful but does the trick.
  20. Thanks for the code sample, I cannot see anything suspicious there, it is very similar to how I do things and in my case the output is formatted in the browser just as expected. You might want to check the type of line breaks you use, I always use Unix LF so I have no experience with Windows CRLF for example. That said, your code might be "messed up" because prependTemplateFile and appendTemplateFile, so you might want to try constructing your page similar to this: https://www.pwtuts.com/processwire-tutorials/alternate-template-strategy-using-a-single-output-file/ <body class="<?php echo $page->template->name; ?>"> <?php include($config->paths->templates . "/includes/header" . ".php"); include($config->paths->templates . "/views/{$page->template->name}" . ".php"); include($config->paths->templates . "/includes/footer" . ".php"); ?> </body> That is by using _main.php as the skeleton of that page and including partials by using include. I do it this way too. In config.php I have: $config->prependTemplateFile = '_init.php'; $config->appendTemplateFile = '_main.php'; Which is the way most of us set things up, I guess, because this way into _init.php one can put helper functions, for example, and _main.php can be replaced in the admin to out put something else than HTML (eg. XLM for RSS feed, JSON for public API, etc...). If you use these for header and footer, you loose flexibility. However, your setup should work too so there must be an issue behind the scenes.
  21. It's hard to tell without some sample code. Can you provide us with a shortened example of how you are constructing your output?
  22. Here is a good one which I recommend for @Steve_Stifler to get started: https://www.pwtuts.com/processwire-tutorials/alternate-template-strategy-using-a-single-output-file/ I linked to this one this time because it also explains a simple strategy to get organized right from the beginning. The only thing I would do differently is that using relative paths in PHP can be cumbersome for beginners, so for example instead of this: include("./views/{$page->template->name}" . ".php"); I would use: include $config->paths->templates . "/views/{$page->template->name}" . ".php";
  23. I see, thanks for the quick reply! Yes, disabling AdminOnSteroids "makes it go away". I thought it might be some sort of issue I must be aware of. I can live with it, I mean because the site will not have another language just the default plus English there will be no other translations to switch to. BTW, would it be possible to somehow show us what is modified/added by AOS? Maybe by hovering over the element and by waiting for a few seconds? Something like: https://codeburst.io/css-tips-and-tricks-using-pseudo-class-fa83248bb6e0 I'm just thinking out loud. I know that it is easy to disable AOS but in this case I was not even aware of the core features so I could not tell them apart.
  24. I might have seen a multilingual newsletter once in my life but I might be wrong, so in my experience multilingual newsletters are very rare.
  25. Hi @kixe Thanks for this technique! I followed your instructions and it seems to work as expected, however I get the following message on the translate page, maybe you or someone else can explain why and/or what it means: see the screenshot: Any ideas? Thanks in advance.
×
×
  • Create New...