Jump to content

kongondo

PW-Moderators
  • Posts

    7,480
  • Joined

  • Last visited

  • Days Won

    146

Everything posted by kongondo

  1. Sorting the results of a selector Limiting the number of results returned by a selector
  2. Quick answer will be in a template file. I am assuming your next question will be, what is a template file? If I am not wrong, I would encourage you to first read up on ProcessWire, at least get to know the basics. As for a windows server, I have zero experience but IIRC, some people have had success running ProcessWire on such. Welcome to the forums.
  3. @gmazanakis, Is your site a ProcessWire website?
  4. Sorted, then. Excellent. Please amend title of thread to reflect issue has been resolved.
  5. Did you see @Robin S's post above about max_input_vars? Did you try that? Do you have $config->debug set to true for debugging? Error messages? Error message in the dev console?
  6. Update: Multi Sites Sites Manager Version 0.0.3. Multi Sites is dead! Long live Multi Sites!! Happy to announce Beta Release of Sites Manager. Please note, no upgrade path from versions 001 or 002 of Multi Sites. I have updated the first post. Download: GitHub Demo: Remote server single site install (PW 3.x + AdminThemeUIKit). YouTube Documentation: GitHub Changelog Changed name to Sites Manager (formerly Multi Sites). Thanks to @szabesz for suggestion. Fixed bugs in Type or Paste method (key=value pairs must now be separated by new line). Beta release.
  7. Just wondering, since this is a dev site, is it a new site? If yes, was there a reason to install ProcessWire 2.3 or that's how the site was handed over to you? Edit: Welcome to the forums and ProcessWire.. .
  8. Regarding your no URL issue, most like you image field $image is set to hold multiple images (hence returns an array - whether it has only one image or or more). If that's the case, you will need to loop through it.
  9. Thanks for clarifying. I thought you were saying Process module's configs cannot be accessed in the frontend which confused me because I have been able to access a Process module's configs in the frontend as a non-superuser using getModuleConfigData(). , for instance, in Blog's demo template files.
  10. Please clarify this. Were you not able to access configs data of a Process module?
  11. Maybe test for this then? Loosen perms and see if it works?
  12. The following topic is old and some of the stuff is probably out of date but well worth reading.
  13. I think you must have misunderstood the tutorial. The pw-* classes are just placeholder tags that ProcessWire parses at render. They are removed in the final markup. There's a very tiny note about it on that page (I'm not sure why it had to be a note and not just in the text proper ) just above Benefits and drawbacks section.
  14. Try $typoSettingsConfigs = $modules->getModuleConfigData('TypoSettings'); Edit: Oops..just noticed you are in PW3...so, not sure my suggestion would work. Edit 2: Hmm, it should work. OK, I don't know what's going on. I'm having one of those mornings...ignore me, please .
  15. Haven't thoroughly read everything written above. Quick suggestions: $config is your friend For paths, (and other stuff), $config is your friend. Rather than entering paths yourself, let it to the donkey work. For instance, if you have an includes folder in /site/templates/includes/ you can get to that easily using: $path = $config->paths->templates . 'includes/'; Delayed Output If you are not already, I recommend you use this approach. Makes it easy to pass and change variables if needed. See the Automatic Inclusions section (the $config->prependTemplateFile). Your files do not have to be named .inc. They could be .php or even .tpl.
  16. Hmm. Felix is the author and maintainer of the PHP IntelliSense extension I referred to. I do not use the VSC code in-built one. Works for me too in VSC. IntelliSense I have noticed that if I do this: $animals = new Animals(); $traits = $animals->getTraits(); PHP IntelliSense works fine. However, if I do this... public $animals $this->animals = new Animals(); $traits = $this->animals->getTraits(); It doesn't work...I have been meaning to file a 'bug' report. I've tried the other IntelliSense but they don't work as well as Felix's.
  17. Ivan, what exactly? HTML IntelliSense? The extensions I use provide HTML auto-completion, tag matching (and changing) and CSS IntelliSense. I'll post my list of extensions later.
  18. Install: Modules > Core > System Notifications Adjust settings as you wish.
  19. @adrian, Yes, the PHP IntelliSense is not the best. What extension are you using? This PHP IntelliSense one? That's the one I use. I have never had any luck with auto-completion for PW. Seems you are doing better than me. I suppose the reason is that I don't have the wire folder included as a source in my projects. Are you including wire? Maybe with the new-ish Multi-root workspace implementation I should be able to add wire in my projects in order to get to at least where you are. I'll have a play with this and post back. Whenever I get the time, I will also post tips and tricks I've gathered so far.
  20. @adrian, @bernhard, sorry, I didn't respond to your posts. I have started a new VSC-only topic here. Let's take the discussion there.
  21. Visual Studio Code for PW Devs This thread is a place for ProcessWire developers who use Visual Studio Code (aka VSC or Code) to share their experience, tips, frustrations , solutions, code snippets and generally discuss all things VSC. From Wikipedia:
  22. I get you. However, UI in NativeScript is made using just XML and CSS. XML is quite simple, especially if you already know HTML. In return you get the speed that comes with native apps. Onsen looks neat though, so I have one eye on it .
  23. Thanks for the purchase @Robin S, I'll have a look at the issues you've raised and respond here later.
×
×
  • Create New...