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 eelkenet
      Hi! I've created a small Inputfield module called InputfieldFloatRange which allows you to use an HTML5 <input type="range" ../> slider as an InputField. I needed something like this for a project where the client needs to be able to tweak this value more based on 'a feeling' than just entering a boring old number. Maybe more people can use this so I'm hereby releasing it into the wild. 
      EDIT: You can now install it directly from the Modules directory: http://modules.processwire.com/modules/inputfield-float-range/
       
      What is it?
      The missing range slider Inputfield for Processwire. 
      What does it do?
      This module extends InputfieldFloat and allows you to use HTML5 range sliders for number fields in your templates.
      It includes a visible and editable value field, to override/tweak the value if required.  
      Features
      Min/max values Precision (number of decimals) Optional step value (Read more) Optional manual override of the selected value (will still adhere to the rules above) Configurable rounding of manually entered values (floor, round, ceil, disable) Usage
      Clone / zip repo Install FieldtypeFloatRange, this automatically installs the Inputfield Create new field of type `Float (range)` or convert an existing `Float`, `Integer` or `Text` field. To render the field's value simply echo `$page->field` Demo
      A field with Min=0, Max=1, Step=0.2, Precision=2

      Field with settings Min=0, Max=200, Step=0.25, Precision=2

       
      Todo
      Make the display-field's size configurable (will use the Input Size field setting)  Hopefully become redundant  
      Changelog
      005 (current version)
      - Fix bug where the Inputfield would not work properly within repeaters / repeater matrices
      004
      - Make rounding of manually entered values configurable (floor, round, ceil or disable)
      - Fix small JS bug when the value-display field was not displayed
      - Update README
      003
      - Code cleanup, add some ModuleInfo data & LICENSE
      - Submit to PW Modules directory (http://modules.processwire.com/modules/inputfield-float-range/)
      002
      - Fix issue where setting the step value to an empty value created problem with validation
      - Make the display-field optional
      001
      - Initial release
       
      Thanks!
       
       
    • By Gadgetto
      Status update links (inside this thread) for SnipWire development will be always posted here:
      2019-10-18
      2019-08-08
      2019-06-15
      2019-06-02
      2019-05-25
      If you are interested, you can test the current state of development:
      https://github.com/gadgetto/SnipWire
      Please note that the software is not yet intended for use in a production system (alpha version).
      If you like, you can also submit feature requests and suggestions for improvement. I also accept pull requests.
      ---- INITIAL POST FROM 2019-05-25 ----
      I wanted to let you know that I am currently working on a new ProcessWire module that fully integrates the Snipcart Shopping Cart System into ProcessWire. (this is a customer project, so I had to postpone the development of my other module GroupMailer).
      The new module SnipWire offers full integration of the Snipcart Shopping Cart System into ProcessWire.
      Here are some highlights:
      simple setup with (optional) pre-installed templates, product fields, sample products (quasi a complete shop system to get started immediately) store dashboard with all data from the snipcart system (no change to the snipcart dashboard itself required) Integrated REST API for controlling and querying snipcart data webhooks to trigger events from Snipcart (new order, new customer, etc.) multi currency support self-defined/configurable tax rates etc. Development is already well advanced and I plan to release the module in the next 2-3 months.
      I'm not sure yet if this will be a "Pro" module or if it will be made available for free.
      I would be grateful for suggestions and hints!
      (please have a look at the screenshots to get an idea what I'm talking about)
       




    • By Robin S
      Another little admin helper module...
      Template Field Widths
      Adds a "Field widths" field to Edit Template that allows you to quickly set the widths of inputfields in the template.

      Why?
      When setting up a new template or trying out different field layouts I find it a bit slow and tedious to have to open each field individually in a modal just to set the width. This module speeds up the process.
      Installation
      Install the Template Field Widths module.
      Config options
      You can set the default presentation of the "Field widths" field to collapsed or open. Field widths entered into the Template Field Widths inputfield are only applied if the Edit Template form is submitted with the Template Field Widths inputfield in an opened state. "Collapsed" is the recommended setting if you think you might also use core inputs for setting field widths in a template context. You can choose Name or Label as the primary identifier shown for the field. The unchosen alternative will become the title attribute shown on hover. You can choose to show the original field width next to the template context field width.  
      https://github.com/Toutouwai/TemplateFieldWidths
      https://modules.processwire.com/modules/template-field-widths/
    • 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.
×
×
  • Create New...