Jump to content
tpr

AdminOnSteroids

Recommended Posts

No, I haven't noticed this. I'll check it some day, I don't understand all of it atm 🙂

Share this post


Link to post
Share on other sites

Hey @tpr

I have been seeing this a bit lately:

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /site/modules/AdminOnSteroids/AdminOnSteroids.module on line 2622

 

  • Like 1

Share this post


Link to post
Share on other sites

@adrian Probably yes, I've changed that, thanks.

Yesterday I added a "translatorModal" tweak to Misc that allows editing translations in a modal, hope you find it useful.

translatorModal.gif.588a46196af89bab6521ea3f17782940.gif

  • Like 3
  • Thanks 1

Share this post


Link to post
Share on other sites

Hey @tpr - not sure what its purpose is, but:

html.aos {
    overflow: overlay;
}

does weird things to fixed position elements. For example, when Tracy is disabled, the icon that appears in place of the debug bar (to re-enable it) is positioned under the vertical scrollbar. If I remove this overflow rule, it is positioned as expected.

image.png.e71b3c8d00f12af1e15452edabdc171e.png

Thanks!

Share this post


Link to post
Share on other sites

hey @tpr, is there a way to disable the filterbox on some admindatatables, eg via adding "nofilterbox" class to the table?

Edit: Created a PR

Share this post


Link to post
Share on other sites

All done. @bernhard I had to modify return false to true to to keep processing other tables in the loop (if any).

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

Hi @tpr,

I found an irritating behaviour when using the submodule ListerTweaks. If I make a custom selection of the Users lister columns,

Screenshot1.png

it will not be reflected in the columns selection on the Users page:
There the default selection is displayed, and trying to change it has no effect.

Screenshot2.png

Share this post


Link to post
Share on other sites

I remember seeing this bug earlier but couldn't fix it. I'll give it another try some day, thanks for bringing this up.

Share this post


Link to post
Share on other sites

Hi, @tpr and thanks you for adding this useful module.
After switching on AdminOnSteroids I noticed a small problem appearing when opening and closing the repeater, but only in Mozilla Firefox and Admi Theme Uikit. After opening the single repeater, it remains in the open position.
I'm not fluent in JS and I do not know where the error is, but the console shows me information as below.

Error: Permission denied to access property "apply"

Admin-on-steroids.thumb.gif.043b81476e905d2468529feb4f4967ba.gif

SERVER DETAILS
ProcessWire: 3.0.126
PHP: 7.3.1
Webserver: Apache/2.4.35 (Win64) OpenSSL/1.1.1a
MySQL: 5.7.24

MODULE DETAILS
AdminOnSteroids: 2.0.13
ProcessTracyAdminer: 1.0.6
TracyDebugger: 4.17.22

Share this post


Link to post
Share on other sites

I'm not sure but perhaps it's a cross-domain issue, perhaps caused by a Firefox addon, I got the idea from here:

Quote

This only happens with Firefox addons that try to insert a <script> tag that points to an external cross-domain script.

 

  • Like 2

Share this post


Link to post
Share on other sites

Thanks for the answer ...
It seems that the LastPass plugin generate error ...
After turning off the add-on LastPass  everything has returned to normal ...

  • Like 2

Share this post


Link to post
Share on other sites

What do you think about appending the field type to the Fields asmSelect list options? I often don't remember the type by the name so it would come handy. However, since it's a plain select HTML element it cannot be styled and in the rendered asmSelect the type appears twice (also at the end of the bars).

asmfieldtypes.gif

  • Like 4

Share this post


Link to post
Share on other sites
8 hours ago, tpr said:

What do you think about appending the field type to the Fields asmSelect list options?

I like it 🙂 Not beautiful but does the trick.

  • Like 1

Share this post


Link to post
Share on other sites

Actually having the field type appended to the name is quite handy when used together with the "add search box to asmSelect" feature because field types can also be searched.

So for example you can easily find CroppableImage3 image o CKEditor fields, etc, which is a huge help when there are a lot of fields.

image.png.6476b86c88f263cdfc408b4cf3af351f.png

  • Like 3
  • Thanks 1

Share this post


Link to post
Share on other sites

OK, due to the popular demand towards this feature it's been added to v2.0.14 🙂 

Some changes:

  • the new suffix contains the field type (eg. "Textarea"), and the inputfield class if it's different from it (eg. "CKEditor")
  • the optional inputfieldClass is not added if it's the language variant (to avoid situations like "excerpt - TextareaLanguage (Textarea)"
  • on the right side of the bars the original field type string is removed (before the percentage) not to display it twice

image.thumb.png.d05432f32b4e1fa2f5015653e464629e.png

  • Like 7

Share this post


Link to post
Share on other sites
12 hours ago, tpr said:

due to the popular demand

Thanks a lot for caring! I'm pretty sure that those who could not click the like button are just away for a long weekend 🙂

  • Like 1
  • Haha 1

Share this post


Link to post
Share on other sites

I've added data-attributes to field wrappers in v2.0.15 containing information about the included field. Unlike the info currently available it's not on the inputfield itself but on its wrapper, making admin CSS/JS customizations easier to apply.

https://github.com/rolandtoth/AdminOnSteroids/wiki/Misc

image.png.292388e43f5993178602837a16998464.png

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

Hello!

I'm brand new to ProcessWire (having been a Joomla! guy for many years and then adding Wordpress to my toolkit more recently). I've taken on a new client and their site uses ProcessWire. Last night I got the joy (lol) of moving their site to my large VPS and learning the ins and outs of PW. They were running PHP 7.0 and I bumped them to PHP 7.3. After fixing a bunch of front end issues with their theme, everything looks good except that in the admin, AdminOnSteroids is throwing some notices:

PHP Notice: Trying to get property 'template' of non-object in .../AdminOnSteroids/AdminOnSteroids.module:2970   
PHP Notice: Trying to get property 'name' of non-object in .../AdminOnSteroids/AdminOnSteroids.module:2970

Does anyone know how to fix this? I can hack my way around some PHP, but I'm not a programmer, so this one is a bit beyond my understanding. Any help would be appreciated.

Share this post


Link to post
Share on other sites

@Brian Peat Hello Brian,

Welcome to the forum & thank you for your first post. I hope @tpr - the author of this module - picks this up quickly for you (he's usually very responsive.) Although I'm reluctant to suggest a fix for that line in the module (I'm not wholly familiar with TPR's intention there and simply suppressing the notice might be hiding a larger issue) I do hope you end up enjoying working with ProcessWire and interacting here in the forums!

Best wishes,
Steve

Share this post


Link to post
Share on other sites

@Brian Peat welcome. One thought regarding the module: what version is the AOS module?  When going in admin under modules site adminonsteroids, there is a feature to directly check for newer versions. Maybe you are not running the latest version, where these issues are already fixed? At least there is no harm with updating AOS to the latest.  

 

Share this post


Link to post
Share on other sites

@horst I'm up to date as far as I know. It's running 2.0.15.

I may edit my hosts file so I can see their old site again and check in there. It's possible they've been ignoring the errors for a while, but I'm not sure.

Thanks!

  • Like 1

Share this post


Link to post
Share on other sites

Hi @Brian Peat,

that line fails if a template doesn't have a name

I was wrong, it's the editedPage being null, will add a check.

  • Like 1

Share this post


Link to post
Share on other sites

@tpr No, I haven't fiddled in the database. I'm thinking this template is old though, and is likely missing some things. I had to add the name space to a few files and also fix a few things that wouldn't play nice with PHP 7.3.

Share this post


Link to post
Share on other sites

Hey there. This morning I upgraded AOS for a project to latest version 2.0.15 and started noticing some issue viewing the hidden/unpublished pages in the admin. Tried to uninstall the module and grabbed a fresh copy, however the same issue appeared.

image.png.bde7d15019041782c808cedf7d7b3d1d.png

If I move my mouse over those that are not showing but only ID's are listed, they all appear fine:

image.png.483693e33aa5f9976094218a237677bb.png

Started disabling options of AOS in order to check which one would be causing the issue and it appeared that it is the PageList tweaks and more specifically: Show page IDs (SuperUser only) . I did not set any other options, however if I remove this one, the list shows properly. The issue seems to appear on both themes - default and uikit. Any ideas how could I keep the page ID's showing but keeping the hidden pages visible? Is this a feature/option I've missed or else?

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By gebeer
      I am happy to present my new fieldtype FieldtypeImageFromPage. It is made up of 2 modules:
      Fieldtype Image Reference From Another Page is a Fieldtype that stores a reference to a single image from another page. The image can be selected with the associated Inputfield.
      Inputfield Select Image From Page is an Inputfield to select a single image from images on a predefined page and it's children.
      And there also is a helper module that takes care of cleanup tasks.
      This module evolved out of a discussion about my other Module FieldtypeImagePicker.  It caters for use cases where a set of images is being reused multiple times across a site. With this fieldtype these images can be administered through a chosen page. All images uploaded to that page will be available in the inputfield.
      When to use ?
      Let editors choose an image from a set of images that is being used site-wide. Ideal for images that are being re-used across the site.
      Suited for images that are used on multiple pages throughout the site (e.g. icons).
      Other than the native ProcessWire images field, the images here are not stored per page. Only references to images on another page are stored. This has several advantages:
      one central place to organize images when images change, you only have to update them in one place. All references will be updated, too. (Provided the name of the image that has changed stays the same) Features
      Images can be manipulated like native ProcessWire images (resizing, cropping etc.) Image names are fully searchable through the API Accidental image deletion is prevented. When you want to delete an image from one of the pages that hold your site-wide images, the module searches all pages that use that image. If any page contains a reference to the image you are trying to delete, deletion will be prevented. You will get an error message to help you edit those pages and remove references there before you can finally delete the image. How to install and setup
      Download and install this module like any other modules in ProcessWire Create a page in the page tree that will hold your images. This page's template must have an images field Upload some images to the page you created in step 2 Create a new field. As type choose 'Image Reference From Another Page'. Save the field. In 'Details' Tab of the field choose the page you created in step 2 Click Save button Choose the images field name for the field that holds your images (on page template from step 2) Click Save button again Choose whether you want to include child pages of page from step 2 to supply images Add the field to any template You are now ready to use the field View of the inputfield on the page edit screen:

      View of the field settings

      The module can be installed from this github repo. Some more info in the README there, too.
      In my tests it was fairly stable. After receiving your valued feedback, I will eventually add it to the modules directory.
      My ideas for further improvement:
      - add ajax loading of thumbnails
      Happy to hear your feedback!
       
    • By gebeer
      Although the PW backend is really intuitive, ever so often my clients need some assistance. Be it they are not so tech savvy or they are not working in the backend often.
      For those cases it is nice to make some help videos available to editors. This is what this module does.
      ProcessHelpVideos Module
      A Process module to display help videos for the ProcessWire CMS. It can be used to make help videos (screencasts) available to content editors.
      This module adds a 'Help Videos" section to the ProcessWire backend. The help videos are accessible through an automatically created page in the Admin page tree. You can add your help videos as pages in the page tree. The module adds a hidden page to the page tree that acts as parent page for the help video pages. All necessary fields and templates will be installed automatically. If there are already a CKEditor field and/or a file field for mp4 files installed in the system, the module will use those. Otherwise it will create the necessary fields. Also the necessary templates for the parent help videos page and it's children are created on module install. The module installs a permission process-helpvideos. Every user role that should have access to the help video section, needs this permission. I use the help video approach on quite a few production sites. It is stable so far and well received by site owners/editors. Up until now I installed required fields, templates and pages manually and then added the module. Now I added all this logic to the install method of the module and it should be ready to share.
      The module and further description on how to use it is available on github: https://github.com/gebeer/ProcessHelpVideos
      If you like to give it a try, I am happy to receive your comments/suggestions here.
    • By Robin S
      A module created in response to the topic here:
      Page List Select Multiple Quickly
      Modifies PageListSelectMultiple to allow you to select multiple pages without the tree closing every time you select a page.
      The screencast says it all:

       
      https://github.com/Toutouwai/PageListSelectMultipleQuickly
      https://modules.processwire.com/modules/page-list-select-multiple-quickly/
    • By gebeer
      Hello all,
      sharing my new module FieldtypeImagePicker. It provides a configurable input field for choosing any type of image from a predefined folder.
      The need for it came up because a client had a custom SVG icon set and I wanted the editors to be able to choose an icon in the page editor.
      It can also be used to offer a choice of images that are used site-wide without having to upload them to individual pages.
      There are no image manipulation methods like with the native PW image field.
      Module and full description can be found on github https://github.com/gebeer/FieldtypeImagePicker
      Kudos to @Martijn Geerts. I used his module FieldTypeSelectFile as a base to build upon.
      Here's how the input field looks like in the page editor:

      Hope it can be of use to someone.
      If you like to give it a try, I'm happy to hear your comments or suggestions for improvement. Eventually this will go in the module directory soon, too.
    • By bernhard
      @Sergio asked about the pdf creation process in the showcase thread about my 360° feedback/survey tool and so I went ahead and set my little pdf helper module to public.
      Description from PW Weekly:
       
      Modules Directory: https://modules.processwire.com/modules/rock-pdf/
      Download & Docs: https://github.com/BernhardBaumrock/RockPDF
       
      You can combine it easily with RockReplacer: 
      See also a little showcase of the RockPdf module in this thread:
       
×
×
  • Create New...