Jump to content
tpr

AdminOnSteroids

Recommended Posts

You mean mark deleted all + sorting buttons?

The first one alone seems superfluous as there is already a way to do it, even if it's not that obvious (double click on trash icon). But with sorting buttons it makes more sense. So you give me permission to use your module's code?

  • Like 1

Share this post


Link to post
Share on other sites

... and what is about a text input filter box, like with my experiment on the croppable image input?

new-imagefield-and-extensions-01.gif

Share this post


Link to post
Share on other sites

I've already thought of a filter box. Here's a screencap of its current state but it's still in an early stage. It's capable of searching image names, descriptions (multilanguage) and tags, and multiple strings at once (separated by spaces).

Filtering worked fine only until name/tag/description were unchanged because filter targets were added on load. I solved this by clicking or focusing on the filter box re-adds all the filter targets. In fact all the filters are added only on the first click so if you don't use the filter it won't add too much overhead.

post-3156-0-66280600-1464901467_thumb.gi

  • Like 5

Share this post


Link to post
Share on other sites

! This sounds very good ! - Multilanguage and Descriptions and Tags and multiple Searchphrases - !

Man, you are awesome! ^-^  

I have seen some third party JS / jQuery scripts that do sorting and filtering, but the good ones wasn't OpenSource, and / or to bloated. Your solution sounds very good.

There are one thing I thought of while playing with that: would it be possible to filter for portrait and landscape oriented images? - or for the smallest / highest height or width?

And ahm, if you need beta tester, just call. :)

Share this post


Link to post
Share on other sites

Nothing extraordinary here :) I will try to polish things a bit today and upload a new version. There are a few additions I have in mind to the filter but it's main feature should work fine.

Landscape/portrait and size filters could go to the sorting buttons bernhard suggested, once I get to that.

  • Like 1

Share this post


Link to post
Share on other sites

v012 is uploaded with the new filterbox feature. I get the onleave confirmation message after using the field and tryng to leave the page, if anyone knows an easy way to solve this that would be welcomed.

post-3156-0-92713400-1464945544_thumb.gi

  • Like 5

Share this post


Link to post
Share on other sites

Another cosmetic fix for the filterbox: show only if there are at least 2 items to filter. It's evaluated dynamically on uploading images, so if the field is empty or contains only one image it will be hidden.

post-3156-0-40507400-1465045066_thumb.gi

Now it's "close to perfect" according to my set of standards :)

  • Like 3

Share this post


Link to post
Share on other sites

@tpr: I have one wish and an observation to share. :)

My wish is: "Please can we have in AdminReno-CompactHeader-view the toggle icon for the sidebar?" If one do not use autohide for the sidebar it currently is missing with the compact header view.

---

For me, on Windows 7 with Firefox, I do not have a sticky header with the default Admintheme.

The mastheads position is set to relative, I think it must be fixed. The classes of the html element are

<html class="aos_fixScrollbarJump aos_fileFieldToolbar aos_filterbox aos_stickyHeader aos_PagePreviewLink" lang="en">

Do you need more Infos?

  • Like 1

Share this post


Link to post
Share on other sites

I'll check the fixed pos, thanks.

You can toggle the sidebar with the right-left arrows in the Reno theme, isn't that suffice? I agree that it's not very obvious.

  • Like 2

Share this post


Link to post
Share on other sites

Oh! Thats perfect! I didn't know it. - Now I don't need the toggle-icon anymore. :)

Many thanks!

  • Like 2

Share this post


Link to post
Share on other sites

Haha that was worth the question :) It's 1/2 request done and I haven't even got home :)

  • Like 1

Share this post


Link to post
Share on other sites

Filterbox everywhere!

A major update to the filterbox: now available for file fields too. This was my original intention and now it's real :)

Admin theme default sticky header is also fixed. I switched to array an of classes instead simple string concat but forgot to update the default admin theme part.

  • Like 3

Share this post


Link to post
Share on other sites

It's me again :) - Thanks for the changes and new additions.

The sticky header in DefaultAdminTheme is working now, but only for screens >= 960px :)

Share this post


Link to post
Share on other sites

Here is perhaps one of the last additions to filterbox - datalist:

post-3156-0-04082600-1465295064_thumb.gi

Only image name or file name is displayed because using value+text didn't work in Firefox. Anyway, it can be a handy helper as it is.

  • Like 2

Share this post


Link to post
Share on other sites

Well, for filtering items :) E.g if you have many images or documents uploaded and you would like to find a specific one. Or if you go to the Language Translator, there can be many translation files and it can be hard finding the one you need without filtering.

  • Like 2

Share this post


Link to post
Share on other sites

i get the point for files. but i've never needed to filter images :) but the day will come, i'm sure ;)

Share this post


Link to post
Share on other sites

Maybe it makes more sense if you use image tags, or descriptions.

Share this post


Link to post
Share on other sites

v016 is uploaded to GitHub, containing the datalist feature for filterbox + a display bug fix reported by matjazp.

  • Like 2

Share this post


Link to post
Share on other sites

Filtering for filenames with images will / is be one of the most used functions of all for me. :)

If you have done the images your self and use a naming convention, this is the fasted way to find specific images / images groups out of hundreds. Also, with an own naming convention, (and knowing the images), you don't need to tag the images. :lol:

Thanks @tpr!

  • Like 3

Share this post


Link to post
Share on other sites

@tpr, maybe a new feature request:

In Editpage mode, a HotKey for saving: ctrl+s

But one that alltimes work, regardless if one are on the edit page, in a CKeditor field or another Editorfield. I know that there is a module from Soma with AdminHotkeys, but IIRR, it doesn't work when editing in a CKEditor field. But most of all, I would need it there!

Share this post


Link to post
Share on other sites

Thanks! Glad to hear you can make use of it.

Just tried the ctrl-s combo and I got it working. Here is a snippet I have atm if you can't wait:

$(document).ready(function () {

    var saveButton = $('#submit_save');

    CKEDITOR.on('instanceReady', function (evt) {

        var editor = evt.editor;

        editor.document.on('keydown', function (e) {

            if (e.data.getKeystroke() == CKEDITOR.CTRL + 83) {

                e.data.$.preventDefault();

                saveButton.trigger('click');
                return false;
            }
        });
    });
});
  • Like 3

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
      004 (current version)
      - 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...