Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/24/2022 in all areas

  1. After some tests, I found out that the above problem only occurs in fields of type "RepeaterMatrix". After the following steps, the problem now seams solved: go to "Setup > Templates" under "Filters": activate "show system templates" edit the repeater template file and ... under Tab "Access": activate view permission for the frontend user and deactivate view permission for guest
    3 points
  2. The module originated from an idea/discussion in this thread. I hope that helps to see more PRs for improving the PW backend ? https://github.com/baumrock/Scss Watch core files When working on PRs for the ProcessWire backend you'll notice that the core ships with several SCSS files and the corresponding CSS files. To make it easy to work on the SCSS files without the need of adding complicated build tools to your project you can simply install the Scss module and add the following in /site/ready.php $modules->get('Scss')->watchCore(); Now your SCSS files will be watched for changes and once you change something and reload your page you'll get the new CSS on the fly and can commit both changes ?
    1 point
  3. After a previous request for Webp support (6 years ago, times flies…) that Horst and Ryan kindly introduced in PW 3.0.132, I'm back with another request for a new image file format, AVIF, which has landed in almost all browsers. I'm actually surprised no one here in the PW community has been asking for AVIF support in ProcessWire as it seems to be provide much more consistent gains in compression and greater relative quality over Webp, and of course over good old JPEG. My experience using it definitely confirms this. I've been using Cloudinary to serve AVIF images to the browsers that support it, but of course I'd rather not use a third-party service, and use it natively in ProcessWire. Imagemagick supports AVIF if I'm not mistaken. Anyone else is interested?
    1 point
  4. hi @elabx you're completely right, and following you on the elaboration path, my savage little script is just the php way of doing what @mel47 was trying to write with any kind of array and number of columns but, honestly, nowaday, if i had to do this, as much as i love php i would probably simply iterate the array in the template inside one div/container and use css to generate the columns... ? have a nice day
    1 point
  5. Just to elaborate on another possible method, since getOptions() returns a SelectableOptionArray inheriting from WireArray, you could also do: $columns = $options->slices(3); https://processwire.com/api/ref/wire-array/slices/
    1 point
  6. @kongondo 1. yes, i just install blank profile for start usually (not sure about newest dev, if there are any profiles anymore, but it doesnt matter just a minimal pw-install with no language support) 2. in module core-modules just install/activate "Languages Support" 3. in setup-menu in addition to fields, templates and so on you now have languages with only one language (default) which is english 4. in setup for default language on the bottom there is a file field to upload core-translation files (there is also a link to the available language packs). Just upload the zip file for Deutsch right here, your backend is now translated to german. optional 5: in order to be able to navigate as you are used to you can add another language (english) just add english and dont upload a translation pack there. so it will be english as in default. You can switch in your user profile.
    1 point
  7. Was there a faulty update @Pete? Avatars no longer show up for me, Unicode emojis no longer work, and ProFields downloads don't work either. ? /edit: 24. Oct - Avatars are Working again, Profield Downloads not: <Error> <Code>InvalidObjectState</Code> <Message>The operation is not valid for the object's storage class</Message> But Some Attachments & Avatars are not working, Example: https://processwire.com/talk/topic/24189-pageviewstatistic-for-processwire/#comment-205221 /edit 25. Oct - Avatars, Attachments and Downloads are working again ? Thanks
    1 point
  8. This week we take a look at a new rich text editor for ProcessWire, why we chose it, some highlights, screenshots, and why we think you’ll like it— https://processwire.com/blog/posts/new-rte-for-pw/
    1 point
  9. @Violet Thanks for the great feedback, I appreciate it! @markus_blue_tomato Yes, I actually find TinyMCE 6 quite a bit easier to extend than CKEditor 4. For instance, here's how you could add a "hello" button to the toolbar: InputfieldTinyMCE.onSetup(function(editor) { editor.ui.registry.addButton('hello', { icon: 'user', text: 'Hello', onAction: function() { editor.insertContent('Hello World!') } }); }); Then you would edit your toolbar in the field config and type "hello" to it to any toolbars you wanted. Then every time you click the "hello" button on the toolbar, it would insert the text "Hello World" at the cursor.
    1 point
  10. Just use $urls->httpRoot https://processwire.com/api/ref/paths/
    1 point
  11. https://bluefox.studio/ What makes this project cool: We rebranded the clients logo, turning it into a 3D, Three.JS intro presentation The client can mange all aspects of the site via ProcessWire populating their impressive showcase Custom front-end design and UI and full content management across evey aspect of the site. Modular system for page content providing maximum flexibility on page construction. SEO module with global editing section across all pages. Global shared content modules.
    1 point
  12. When the need is there for separate DB configurations and something more than config-dev.php, I've done it like this in my /site/config.php file: switch($_SERVER['SERVER_NAME']) { case 'localhost': // set database settings for localhost break; case 'dev.domain.com': // set database settings for staging server break; default: // set database settings for production server } You should give preference to SERVER_NAME in this case (over HTTP_HOST) just because HTTP_HOST is coming from the client rather than the server (open to tampering). Though it doesn't really matter as long as your last "default" condition assumes the production server.
    1 point
×
×
  • Create New...