Jump to content
tpr

AdminOnSteroids

Recommended Posts

The search inputfield starts to cover the System Notification indicator under 1040px, and yes, below 960px the search inputfiled is gone. I think it is just quite ok if you focus on a viewport wider than 959px, however, it would be nice to have an easy to access (toggle-) button which can be clicked on mobile to disable/enable the module "temporarily". It can even be useful on a desktop, in order to quickly check out the unmodified admin or vice versa.

Share this post


Link to post
Share on other sites

I've made a quick toggle button that enables/disables the CSS (unreleased), but that's not really helpful because all the php and js stuff are in effect. Do you think a full module enable/disable button is needed? Otoh this toggle wouldn't help you much with the disappearing search field, that comes from the Reno theme as I see.

I have made a little tweak that fixes the issues you mentioned with the search field from about page width above 960px (it's available if you update the module).

  • Like 1

Share this post


Link to post
Share on other sites

In v044 I replaced the field edit link appearance to tooltips. In some cases the field names were overlapped by other items but in tooltip this doesn't occur.

There's also a tooltip for edit page template when hovering on the page title. In fact, the FieldEditLinks tweak was renamedt to FieldAndTemplateEditLinks as they share the same settings. The template edit feature is available for the default theme too.

aos-fieldtemplateeditlinks.gif

  • Like 3

Share this post


Link to post
Share on other sites

I was about to report/ask for these. You saved me some typing :D Thanks a lot!

  • Like 1

Share this post


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

I've made a quick toggle button that enables/disables the CSS (unreleased), but that's not really helpful because all the php and js stuff are in effect. Do you think a full module enable/disable button is needed?

Yes, that was the basic idea. I'm relatively new to PW, so sometimes I just cannot remember what the original admin looks like :) but as I mentioned before, if you "do not support" mobile viewports then it can be problematic if we cannot somehow disable the module in that case. Sure, one can always go to module settings, but it might be possible to speed things up...

6 hours ago, tpr said:

I have made a little tweak that fixes the issues you mentioned with the search field from about page width above 960px (it's available if you update the module).

Thanks. I did not realize it was a Reno bug(?).

Share this post


Link to post
Share on other sites

On mobile screen size AOS is simply not active, so you can see the original theme, at least for the CSS tweaks.

  • Like 1

Share this post


Link to post
Share on other sites

One more thing: when AOS is used to heavily customize the admin, one can easily see that it is enabled. But what if it's not so prominent? A globally accessible enable/disable button would also indicate in what state the admin is. Is it on steroids or not? It is an especially important question during the Summer Olympics :P

  • Like 1

Share this post


Link to post
Share on other sites

Not as fast as Bolt but here it is: enable/disable toggle in the footer (v045, SuperUsers only).

aos_toggle.png

  • Like 4

Share this post


Link to post
Share on other sites

You deserve the gold medal anyway! Works fine. Now I can easily create screenshots for forum support too, should I feel the need to :) (With AOS on it might generate some confusion to demo the admin... so this is just another case to justify the need of this feature...)

  • Like 3

Share this post


Link to post
Share on other sites
11 minutes ago, szabesz said:

so this is just another case to justify the need of this feature...)

Finally there's one :)

  • Like 1

Share this post


Link to post
Share on other sites

Version 046 is sponsored by @bernhard! :)

I got envy of his PageListSelectUnselectButton module so I decided to add something very similar to AOS :)

While the main functionality ("unselect") is the same it also adds a "Restore" button in case someone needs it.

 

aos_pagelistunselect.gif

 

Thanks again @bernhard!

  • Like 3

Share this post


Link to post
Share on other sites

Just added a few CSS tweaks to the Pagelistunselect tweak: less prominent Clear button appearance and when hovering on it the selected page name gets a line-through, which makes clearer what will happen on click. See the screencap above.

  • Like 1

Share this post


Link to post
Share on other sites

does it also support ajax fields?

ps: @Pete can you PLEASE set the limit for "short time frame for new posts" to zero for experienced forum members?

Share this post


Link to post
Share on other sites

It should - the screencap was filmed using a repeater field that is ajax-loaded. Otherwise, the markup is added by PHP so it's always there, plus the events are binded to $(document) so they should fire always.

  • Like 2

Share this post


Link to post
Share on other sites

v047 is up with improvements to the Pagelist thumbs submodule. Thumbnails can be aligned to the right so they don't create ragged lines of the page titles if there's no image or the images are of different widths:

aos_thumbs-left-right.png

 

Of course this partly could be eliminated if using the "circle" or "square" styles:

aos_thumbs-square-circle.png

 

You can set the thumbnails to link to the edit page if you wish.

Another addition is that if a multi-image field is specified as the image source, its first image will be used.

  • Like 2

Share this post


Link to post
Share on other sites

got this error when trying the thumbnails. guess there's a check missing if the field is empty?

2016-08-18 09_35_38-DB Backups • ProcessWire • mustangs2016.dev.png

Share this post


Link to post
Share on other sites

Great tweaks for the Pagelist thumbs! Although I have not yet found the time to try it out, I will surely do it one day :)

I have an issue to report too: one thing I use a lot is FieldAndTemplateEditLinks. Template links work, but Field links do not. The tooltip appears on hover, but nothing happens on click. It used to work, maybe two versions ago, I'm not really sure when though.

Share this post


Link to post
Share on other sites

2016-08-18 09_40_24-Mistelbach Mustangs Basketball.png

my field edit links look like this (not only in modal) on newest devns and default theme

Share this post


Link to post
Share on other sites

@szabesz 

That was a bug, thanks. Grab v048 to fix.

@bernhard 

I couldn't duplicate these issues. Try reinstalling the module (make sure to backup your settings for PageThumbs first).
Perhaps clearing compiled files would also help (bottom at Modules page).

There's a whole lot of check to ensure there's an image to show but of course it may fail somewhere. I tried all combinations at Detais -> Formatted value for image field settings but still wasn't able to show the error.

For the field appearance issue, try hard reload to get rid of cache.

  • Like 1

Share this post


Link to post
Share on other sites

regarding the error: still there. no time to investigate, i dont need it for now.

regarding field tooltips: they appear as they should now, but a click doesn't do anything?!

Share this post


Link to post
Share on other sites

I guess you haven't updated for v048, see above. I'll try to find out the thumbs issue. Could you post your settings for it (the contents of the textarea)?

Share this post


Link to post
Share on other sites

What a great module!

Small feature wish (if this is possible): Can the url helper also handle URL fields within table fields?

  • Like 1

Share this post


Link to post
Share on other sites

Thanks! You mean the profields table, right?

Just checked it and there's a problem: the markup doesn't tell anything about the field type so IUC doesn't fired. I'll see if I can hook and add a class.

  • Like 1

Share this post


Link to post
Share on other sites

v049 is uploaded, featuring centered login page for RenoTweak and some modal Module edit fixes/improvements.

aos_login.png

  • Like 2

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 adrian
      Tracy Debugger for ProcessWire
      The ultimate “swiss army knife” debugging and development tool for the ProcessWire CMF/CMS

       
      Integrates and extends Nette's Tracy debugging tool and adds 35+ custom tools designed for effective ProcessWire debugging and lightning fast development
      The most comprehensive set of instructions and examples is available at: https://adrianbj.github.io/TracyDebugger
      Modules Directory: http://modules.processwire.com/modules/tracy-debugger/
      Github: https://github.com/adrianbj/TracyDebugger
      A big thanks to @tpr for introducing me to Tracy and for the idea for this module and for significant feedback, testing, and feature suggestions.
    • By adrian
      This module allows you to automatically rename file (including image) uploads according to a configurable format
      This module lets you define as many rules as you need to determine how uploaded files will be named and you can have different rules for different pages, templates, fields, and file extensions, or one rule for all uploads. Renaming works for files uploaded via the admin interface and also via the API, including images added from remote URLs.   Github: https://github.com/adrianbj/CustomUploadNames
      Modules Directory: http://modules.processwire.com/modules/process-custom-upload-names/
      Renaming Rules
      The module config allows you to set an unlimited number of Rename Rules. You can define rules to specific fields, templates, pages, and file extensions. If a rule option is left blank, the rule with be applied to all fields/templates/pages/extensions. Leave Filename Format blank to prevent renaming for a specific field/template/page combo, overriding a more general rule. Rules are processed in order, so put more specific rules before more general ones. You can drag to change the order of rules as needed. The following variables can be used in the filename format: $page, $template, $field, and $file. For some of these (eg. $field->description), if they haven't been filled out and saved prior to uploading the image, renaming won't occur on upload, but will happen on page save (could be an issue if image has already been inserted into RTE/HTML field before page save). Some examples: $page->title mysite-{$template->name}-images $field->label $file->description {$page->name}-{$file->filesize}-kb prefix-[Y-m-d_H-i-s]-suffix (anything inside square brackets is is considered to be a PHP date format for the current date/time) randstring[n] (where n is the number of characters you want in the string) ### (custom number mask, eg. 001 if more than one image with same name on a page. This is an enhanced version of the automatic addition of numbers if required) If 'Rename on Save' is checked files will be renamed again each time a page is saved (admin or front-end via API). WARNING: this setting will break any direct links to the old filename, which is particularly relevant for images inserted into RTE/HTML fields. The Filename Format can be defined using plain text and PW $page variable, for example: mysite-{$page->path} You can preserve the uploaded filename for certain rules. This will allow you to set a general renaming rule for your entire site, but then add a rule for a specific page/template/field that does not rename the uploaded file. Just simply build the rule, but leave the Filename Format field empty. You can specify an optional character limit (to nearest whole word) for the length of the filename - useful if you are using $page->path, $path->name etc and have very long page names - eg. news articles, publication titles etc. NOTE - if you are using ProcessWire's webp features, be sure to use the useSrcExt because if you have jpg and png files on the same page and your rename rules result in the same name, you need to maintain the src extension so they are kept as separate files.
      $config->webpOptions = array(     'useSrcExt' => false, // Use source file extension in webp filename? (file.jpg.webp rather than file.webp) ); Acknowledgments
      The module config settings make use of code from Pete's EmailToPage module and the renaming function is based on this code from Ryan: http://processwire.com/talk/topic/3299-ability-to-define-convention-for-image-and-file-upload-names/?p=32623 (also see this post for his thoughts on file renaming and why it is the lazy way out - worth a read before deciding to use this module). 
       
       
      NOTE:
      This should not be needed on most sites, but I work with lots of sites that host PDFs and photos/vectors that are available for download and I have always renamed the files on upload because clients will often upload files with horrible meaningless filenames like:
      Final ReportV6 web version for John Feb 23.PDF

    • By Mike Rockett
      Jumplinks for ProcessWire
      Release: 1.5.56
      Composer: rockett/jumplinks
      Jumplinks is an enhanced version of the original ProcessRedirects by Antti Peisa.
      The Process module manages your permanent and temporary redirects (we'll call these "jumplinks" from now on, unless in reference to redirects from another module), useful for when you're migrating over to ProcessWire from another system/platform. Each jumplink supports wildcards, shortening the time needed to create them.
      Unlike similar modules for other platforms, wildcards in Jumplinks are much easier to work with, as Regular Expressions are not fully exposed. Instead, parameters wrapped in curly braces are used - these are described in the documentation.
      Under Development: 2.0, to be powered by FastRoute
      As of version 1.5.0, Jumplinks requires at least ProcessWire 2.6.1 to run.
      View on GitLab
      Download via the Modules Directory
      Read the docs
      Features
      The most prominent features include:
      Basic jumplinks (from one fixed route to another) Parameter-based wildcards with "Smart" equivalents Mapping Collections (for converting ID-based routes to their named-equivalents without the need to create multiple jumplinks) Destination Selectors (for finding and redirecting to pages containing legacy location information) Timed Activation (activate and/or deactivate jumplinks at specific times) 404-Monitor (for creating jumplinks based on 404 hits) Additionally, the following features may come in handy:
      Stale jumplink management Legacy domain support for slow migrations An importer (from CSV or ProcessRedirects) Feedback & Feature Requests
      I’d love to know what you think of this module. Please provide some feedback on the module as a whole, or even regarding smaller things that make it whole. Also, please feel free to submit feature requests and their use-cases.
      Note: Features requested so far have been added to the to-do list, and will be added to 2.0, and not the current dev/master branches.
      Open Source

      Jumplinks is an open-source project, and is free to use. In fact, Jumplinks will always be open-source, and will always remain free to use. Forever. If you would like to support the development of Jumplinks, please consider making a small donation via PayPal.
      Enjoy! :)
×
×
  • Create New...