Recently Updated Topics
Showing topics posted in for the last 7 days.
- Today
-
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
PWaddict replied to ryan's topic in Modules/Plugins
Adding the native lazy load loading='lazy' on the 381 line of TextformatterVideoEmbed.module doesn't seem to lazy load the iframe. I can see the attribute on the page's code that is injected but all the YouTube scripts are loading on the initial page load even through the embed video is about 2000+ pixels from top. What am I missing??? - Yesterday
-
☁️ Duplicator: Backup and move sites
herr rilke replied to flydev's topic in Module/Plugin Development
@BigRed - same problem here. did you find a way to handle? can't find anything in the logs, working on 1256 MB memory, 120 sek execution time, set FLUSH to 500MB, pw 3.0.240, duplicator v1.5.4 -
How do I restrict viewing custom admin pages. I followed this tutorial and added a new page. It's also visible in the header in the backend. This is my code and I also created the permission and added to a role. As superuser I'm able to view this custom admin page, but as non-superuser with the permission eventbrite-import you don't see it in the backend header menu <?php namespace ProcessWire; class EventBriteImport extends Process { public static function getModuleinfo() { return [ 'title' => 'Eventbrite', 'summary' => 'Triggers eventbrite import and display an overview', 'author' => 'me', 'version' => '0.1', 'permission' => 'eventbrite-import', 'page' => [ 'name' => 'eventbrite', 'title' => 'Eventbrite', ], ]; } …
-
Larger files uploads are not compleating
Mark_invisu replied to Mark_invisu's topic in General Support
Hello FireWire, I set allowExceptions to true the developer tools after the timeout returns the following error: JQMIGRATE: Migrate is installed, version 1.4.1 InputfieldFile.min.js?v=129-3.0.246:1 POST https://poeshappyplace.co.uk/control/page/edit/?id=1&InputfieldFileAjax=1 504 (Gateway Timeout) uploadFile @ InputfieldFile.min.js?v=129-3.0.246:1 traverseFiles @ InputfieldFile.min.js?v=129-3.0.246:1 (anonymous) @ InputfieldFile.min.js?v=129-3.0.246:1Understand this error VM220:1 Uncaught SyntaxError: Unexpected token '<', "<html> <h"... is not valid JSON at JSON.parse (<anonymous>) at XMLHttpRequest.<anonymous> (InputfieldFile.min.js?v=129-3.0.246:1:6460) (anonymous) @ InputfieldFile.min.js?v=129-3.0.246:1 XMLHttpRequest.send uploadFile @ InputfieldFile.min.js?v=129-3.0.246:1 traverseFiles @ InputfieldFile.min.js?v=129-3.0.246:1 (anonymous) @ InputfieldFile.min.js?v=129-3.0.246:1Understand this error Thanks, Mark -
How to add Excerpt or truncate a textarea in search page result
psy replied to Edward Ver's topic in General Support
There are several ways to truncate text. In CSS, see https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow In PHP, https://www.php.net/manual/en/function.substr.php In ProcessWire, https://processwire.com/api/ref/sanitizer/truncate/ Number 3 is my choice -
Thank you all for clarification. I am doing some tests atm with phpDocumentor to see if it can give decent results. Guess the PWDOC parser is custom magic inside https://processwire.com/store/pro-dev-tools/api-explorer/ Let's see if we can do without or reengineer it...
- Last week
-
Correct. You have to test everything with your setup, workflow, and everything. Even between projects I have to tweak lots of things. I guess in total about 5 different variations of setup are in that repo. Test it. Tweak it. Even feel free to raise a PR.
-
Existing Processwire website. I am in need of a Processwire genius with assistance in updating and making changes on an ongoing basis market changes in lead development and social media specifically the Automotive Industry. I am located just outside Vancouver BC Canada, PST and would like to find someone local I can colab with that understands the company needs, loves Processwire platform and can make it work to the best of its ability. This is an existing website and its functioning pretty good but would love to find the right person to help make it better. Feel free to message me back here with your experience, availability and where your from with your contact info and I will reach out to you. Alternatively I can be reached at taniamheighton@gmail.com TY in advance, Tania
-
I just wanted to add something for anyone who searches and lands here. With the host I'm on, even if the PHP timezone is set to (in my case) 'Australia/Sydney' and the PW installer matches that, the dates are still out. The only way for me to install PW without modding the config each and every time is to set the PW installer to UTC. I don't know if this is the right or wrong way to go about it but it seems to work.
-
[SOLVED] Define blocks once, share across RPB fields
FireWire replied to FireWire's topic in RockPageBuilder
@bernhard I saw that but didn't click. I wasn't sure if that would clone everything and I should have tried it out. -
I need to set up monitoring on my servers to detect this. I didn't realize DigitalOcean has a metrics tool. Going to set that up now. I will look into MariaDB using too much memory in general though. Thanks for the tip.
-
Answer: set this in site/config.php as PHP 7.4 doesn't support it and PHP 8.3 respects it and the default is false which will lead to different responses than what is expected. $config->dbOptions = [ \PDO::ATTR_STRINGIFY_FETCHES => true ];
- 1 reply
-
- 3
-
-
solved ajax, $pages->find, current language results
olafgleba replied to olafgleba's topic in Multi-Language Support
Moin @bernhard, so good! :-). The last sentence got me going. I overlooked to adjust the js ajax endpoint url on language switch. Next beer on me, please 😉 -
Interestingly, since I think something in my example should work, I noticed that in my Setup > Templates admin page, my field-image template is reporting that it contains zero pages. I'm not sure if that should be the case since I do use images that have custom fields assigned. Maybe that's why I'm not getting any matches? I'm unsure. I would think Robin's module does something similar to the built-in core functionality, but if that works for you, I'm glad to hear it!
-
A custom Fieldtype and Inputfield for ProcessWire that allows you to store a Twitch username on a page and view its live stream status. The module currently uses TailwindCSS for styling (but future versions may make the styles configurable). Inlcuded modules: FieldtypeTwitch: Stores the Twitch username. InputfieldTwitch: Input field with live status preview in admin. MarkupTwitchStream: For rendering Twitch information on the frontend. Github: https://github.com/TwoWheelDev/MarkupTwitchStream Module Listing: https://processwire.com/modules/markup-twitch-stream/ (Currently pending approval)
-
Version 1 is here! https://github.com/orgs/NativePHP/discussions/547 Mobile apps capability in the works: Not surprised; given that Caleb Porzio also wrote Alpine.JS 😊.
-
Submenus in admin menu not created or working correctly
bernhard replied to douwe's topic in Module/Plugin Development
I'm not sure in which cases specifically, but the menu sometimes needs a cookie/cache reset as well. I'm always using Tracy Debugger for that: -
Hi, i'm working on a website wieth pages using a lot of page reference fields as tags/categories adding those fields to the search index works very well but i wonder in it's possible to get only the references title in the serach_index field currntly i get two arrays one with the reference field title and the ids of the referenced pages [field: xxxx, field2: xxxx...] and an other one with the names of the pages [field1: page-name, field2; page-name...] and i wonder if there is a config otion to get only the pages title (array or not) without the field name i.e refpage1 title refpage2 title have a nice day