Jump to content

kongondo

PW-Moderators
  • Posts

    7,529
  • Joined

  • Last visited

  • Days Won

    160

Everything posted by kongondo

  1. Glad you got it sorted ?
  2. Great! I forgot to clean up some copy-paste comments here ?
  3. File a report here please.
  4. It doesn't work ?
  5. Nice one @bernhard, A couple of thoughts: Always safer to deal with IDs rather than names. If I have a float field called 'price' and tomorrow I decide to change its name to 'unit_price', MathParser code would not find it (unless of course one is using the autoload feature, in which case it might still throw the warning about field does not exist). The superuser would be forced to change the config. I've noticed assets (MathParser.js, MathParser.css and math.js) are loaded in all Page Edits, even in ones where it is not required or where there are no compatible fields. Maybe there's no way to get around this? We started on the premise that we are lazy ?. So why not take lazy to its logical conclusion? Below, I present lazy max! I've changed the module config textarea inputs to ASM Selects. The descriptions are just dummy text. Only compatible fields (float, integer, decimal [do we have a Fieldtype like this?]) are listed for selection. I don't have a Gitlab account, so I've attached a zip file with the php files to this post. Having said above. The module did not work for me (even before the changes I made). Shouldn't it be auto-triggering? Demo MathParser-kongondo-edits.zip
  6. ...Or if you use _init.php, define $homepage there and it will be available in all your template files :-).
  7. Moderators Note Just a quick update. We've consulted and agreed that the topic remain locked as per the reasons expressed by @horst above. Thanks.
  8. I've been using this one (PHP DocBlocker? https://marketplace.visualstudio.com/items?itemName=neilbrayfield.php-docblocker
  9. Nice. Needed something like this recently but didn't have the time to make one. Are you planning to collate these somewhere gists?
  10. Shot in the dark here, what happens if you disable short tags and change your template files to use normal tags?
  11. I'm getting a 404 on that page ?
  12. Is the site online? This works as well? $blog->renderPosts("include=all,limit=$limit");
  13. If it returns nothing and the page is published (as we can see from your screenshot), the only thing left is some access control cascading down to your blog template. Do you just have the one post? Could you create a couple more and test? This one has me stumped to be honest.
  14. Just two things then. If you run the same code without the 'include=all', what do you get? If you still get something, then your post is published. Secondly, do you echo out $content; anywhere? It is unrelated and has been on my todo list :-), thanks.
  15. Strange. So, what does this return; $posts = $pages->find('template=blog-post,limit=5,include=all'); echo $posts->count; // OR asking Tracy bd($posts);
  16. I haven't read everything here comprehensively so I cannot make a decision. I've locked this thread pending review by @horst.
  17. Glad you like it. I'm not sure what's going on. The code looks OK. Do you have debug on? Any errors? Are you able to output other pages? Did you perhaps set some access control on the posts? By the way, is there any reason you are using wire() inside template files? i.e. $pages->find() and $modules->get() should work just fine without wire() in template files.
  18. He's just gone and done it again! Well done @bernhard??
  19. I need to try these two. Somebody complained that they were having problems with SSH FS working in windows. @bernhard, @elabx, is either of you in windows? Issues? ? Do you still find you need both extensions? How do you login if using SSH FS alone then?
  20. Anyone use Regex search/replace in VSC code? This little guy will cleanup after you are done with your Tracy bd dumps (I'm no Regex guru, so test carefully first!). bd\(.*\);$
  21. Clever trick with the double cursor/placeholder ?
  22. What's your use case? Why is this important? If we got a better picture, we can probably suggest an alternative. Welcome to the forums ?
  23. Although in some cases, it also depends on the 'theme' you are using that IDE ?
  24. It does, thanks!
  25. Of course, again! Sorry, am half asleep! Custom permissions are mainly used with custom modules ?
×
×
  • Create New...