About Pia - Pageimage Assistant

Provide alternative methods for Pageimages (crop, contain, cover, pia) to assist with $options array. Also provide GUI screen for easy and quick changes of sitewide Pageimage default-settings.

Category 1Admin Helpers
Admin helper modules are those that provide helpful tools, UI enhancements or optimizations to the admin panel (excluding Fieldtype or Inputfield modules).
Category 2Development Tools
Modules that have more to do with assisting development of a site rather than managing its content.
Category 3Photo/Video/Audio
Modules that perform some function related to media such as photos and audio/video.
Release StateStable
Should be safe for use in production environments. *
Authorhorst
Module Version1.0.0
Class NamePageimageAssistant
Compatibility2.5, 2.6, 2.7, 3.0
Date AddedNovember 22, 2014
Last UpdatedFebruary 7, 2016
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

This module's files should be placed in /site/modules/PageimageAssistant/
How to install or uninstall modules

README

Pia - Pageimage Assistant

Module for ProcessWire 2.5.0+ and 3.0+

Version 1.0.0

Documentation is in the supportforum at: https://processwire.com/talk/topic/8367-pia-pageimage-assistant/

Comments

  • Jean

    Jean 2 years ago 00

    I look forward to this, but it's not ready for prime-time, it seems. Upon installing, I got this error:

    Error: Call to undefined method stdClass::set() (line 235 of C:\Users\jean\Proj\ecd\www\site\config.php)

    which, I believe, comes from this bit of code in

    PageimageAssistant.module

    ===
    static public function getModuleConfigInputfields(array $data) {
    ...
    $config = new stdClass();
    @include($conf->paths->site . 'config.php');

    ===

    Seems like a very risky procedure to include the site's config.php instead of using the wire('config'), and to redefine a system variable... but I'm still a newbie.

  • horst

    horst 2 years ago 10

    Hi Jean, sorry I haven't seen this post.

    So I do not redifine the system $config variable because it is in the local scope of a method. What makes me wonder is what do you call with ->set() in your site/config.php at Line 235? This would be interesting to know so I can look to avoid this. If you see this post, please can you answer in the support board? (https://processwire.com/talk/topic/8367-pia-pageimage-assistant/)

  • WillyC

    WillyC 2 years ago 10

    horst i like this.pia
    work.goods

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.