I have the following selector:
$pages->find('template=event,timestamp!="",devicerelated.map.lat!="",devicerelated.map.lng!=""')
When i move a page with the device template under a new parent, the moved page will not be included in the selector.
This seems to be a bug to me or am i missing something here?
ProcessWire 3.0.247
ProcessWires ❤️ features
Custom Fields and templates
Selector engine
Multi language
Freedom of output
Tree hierarchy with clean urls
Permissions system
Extensibility: Modules and hooks
Image handling. Thumbnails included
Community
That sounds like an interesting module! I look forward to testing it.
I don't mind the images being duplicated as that is how ProcessWire handles images.
I think Media Lister with the proposed expansion of functionality would fill a need that seems to exist within the ProcessWire community (if you can live with duplicate images).
I want to take the opportunity to say thanks for all the phenomenal modules you share with the rest of us @Robin S!
This is such a great module, thank you @Robin S!
Would it be possible to extend this module so it could be used for adding existing images to an image field?
A button in the image field ("Add media") opens the Media lister module in a modal.
You select an image from the list, on "save/add to page" the image is copied to the image field.
I have a single image field on the user template displaying an profile image in the page header. Strange thing is that on some request the field behaves as expected but on some requests it behaves like outputformaing is false (like an array). I cant seem to find any code that would turn off the outputformating so i'm a bit baffled with what's going on (most likely something i'm doing wrong).
I'm using @teppo's wireframe, latest PW dev on the site.
Update: I commented out this:
$createdBy = $users->get("id={$fil->fil->created_users_id}");
and the user image rendered as expected.
My guess is that i get a new user without the image and that causes the error.
But how can i get one or more users without replacing the current one?
I changed the image field settings to maximum allowed files to 1 and formatted value to automatic. Now the previous page renders as expected but other pages containing the image field gets the following error:
Update: Setting the user outputformating to true right before rendering the user image fixed it. I guess i have outputformating set to false somewhere but i'm unable to find it.
I'm getting the following error on one site using Wireframe. I can't seem to find any differences from other installations so i'm at bit confused.
Fatal Error: Uncaught Error: Class "Wireframe\Hooks" not found in site/modules/Wireframe/Wireframe.module.php:245
Made a reinstall, and the error went away.
@BitPoet I tested your solution and i'm probably missing something but it's not working.
I tried this after searching the API docs:
And it seems to work.
Sets the file but doesn't change it once it's set.