taotoo
Members-
Posts
86 -
Joined
-
Days Won
1
taotoo last won the day on November 11
taotoo had the most liked content!
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
taotoo's Achievements
Full Member (4/6)
49
Reputation
-
-
This module is so handy. A minor thing, but I find myself not being able to differentiate between fields when selecting them: It would be great if there was an option to show field Names instead of Labels (or show both). Obviously I can rename my fields, but I like to keep them short for the client, and want to avoid the complication of using template overrides.
-
On Windows 11, Chrome/Firefox/Edge all looking good to me now - consistent animations and the aliasing has gone too.
-
Further to the above, on Windows the animation is different for me on Chrome vs Firefox [Chrome on left, Firefox* on right] (*The pixelation of the animation is due to it being a gif)
-
While I've never encountered that particular error, I have solved other ones by removing empty lines from beneath the closing php tag in my ready.php file.
-
Thanks for another great module Robin. Just a thought - I wonder if the icons might be inverted, e.g. so that an eye means the page is visible, and an eye with a strike through means it's hidden.
-
You can use FieldtypeConcat, or do it with a hook. https://processwire.com/modules/fieldtype-concat/ // Merge First and Surname for Title and Name if($page->template == 'some-template') { // Don't change name field if page is going to trash if(!$page->isTrash) { // If the fields that make up the title are populated if($page->first_name && $page->surname) { // Set the title $page->title = "{$page->first_name} {$page->surname}"; // Sanitize the title as a page name $name = $event->wire()->sanitizer->pageName($page->title, true); // Set the page name while making sure it auto-increments if there is a sibling page with the same title $page->name = $pages->names()->uniquePageName($name, $page); } } }
- 1 reply
-
- 2
-
-
This is the one, thank you!
-
taotoo started following PageListCustomChildren
-
Not sure if anyone has used this module yet. Example code from the module page (https://processwire.com/blog/posts/page-list-custom-children-module/): template=category >> parent=/blog/posts, categories=page.id I want to insert 'parent', as below, but it doesn't work. I'm hoping someone might know how to do it. template=category >> parent=/blog/posts, categories=parent.page.id
-
Restrict adding items to repeater by role
taotoo replied to fox_digitalanimals's topic in General Support
You could try the Limit Repeater module to set a max number of rows. Alternatively, I have a feeling you may also be able to set a min and max number of rows within the field setup, if so you could set them to the same number. Or maybe use the Admin On Steroids module, enable the setting for it to add CSS classes for each admin page, then add CSS via the same module to hide the add new button. -
[SOLVED] How to prevent users from uploading 300 dpi images?
taotoo replied to howdytom's topic in API & Templates
Dpi normally shouldn't matter. Are the problem images' px dimensions larger than the limits you have set? If using server side resize you could try client side. -
With method 2 htaccess should rewrite it from webp to jpg shouldn't it? Assuming that is what you're expecting it to do, I found the example htaccess code didn't work for me. But I found that the code below did work (of course YMMV). RewriteCond %{HTTP_ACCEPT} !image/webp RewriteRule (.+)\.webp$ $1.jpg [T=image/jpeg,E=REQUEST_image]