tpr Posted June 2, 2016 Author Share Posted June 2, 2016 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? 1 Link to comment Share on other sites More sharing options...
bernhard Posted June 2, 2016 Share Posted June 2, 2016 Sure! Feel free to take (and improve) it 1 Link to comment Share on other sites More sharing options...
horst Posted June 2, 2016 Share Posted June 2, 2016 ... and what is about a text input filter box, like with my experiment on the croppable image input? Link to comment Share on other sites More sharing options...
tpr Posted June 2, 2016 Author Share Posted June 2, 2016 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. 5 Link to comment Share on other sites More sharing options...
horst Posted June 2, 2016 Share Posted June 2, 2016 ! 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. Link to comment Share on other sites More sharing options...
tpr Posted June 3, 2016 Author Share Posted June 3, 2016 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. 1 Link to comment Share on other sites More sharing options...
tpr Posted June 3, 2016 Author Share Posted June 3, 2016 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. 5 Link to comment Share on other sites More sharing options...
tpr Posted June 3, 2016 Author Share Posted June 3, 2016 Some improvements to the filterbox: https://github.com/rolandtoth/AdminOnSteroids/blob/master/CHANGELOG.md#013-2016-06-03 Link to comment Share on other sites More sharing options...
tpr Posted June 4, 2016 Author Share Posted June 4, 2016 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. Now it's "close to perfect" according to my set of standards 3 Link to comment Share on other sites More sharing options...
horst Posted June 6, 2016 Share Posted June 6, 2016 @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? 1 Link to comment Share on other sites More sharing options...
tpr Posted June 6, 2016 Author Share Posted June 6, 2016 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. 2 Link to comment Share on other sites More sharing options...
horst Posted June 6, 2016 Share Posted June 6, 2016 Oh! Thats perfect! I didn't know it. - Now I don't need the toggle-icon anymore. Many thanks! 2 Link to comment Share on other sites More sharing options...
tpr Posted June 6, 2016 Author Share Posted June 6, 2016 Haha that was worth the question It's 1/2 request done and I haven't even got home 1 Link to comment Share on other sites More sharing options...
tpr Posted June 6, 2016 Author Share Posted June 6, 2016 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. 3 Link to comment Share on other sites More sharing options...
horst Posted June 6, 2016 Share Posted June 6, 2016 It's me again - Thanks for the changes and new additions. The sticky header in DefaultAdminTheme is working now, but only for screens >= 960px Link to comment Share on other sites More sharing options...
tpr Posted June 7, 2016 Author Share Posted June 7, 2016 Here is perhaps one of the last additions to filterbox - datalist: 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. 2 Link to comment Share on other sites More sharing options...
bernhard Posted June 7, 2016 Share Posted June 7, 2016 maybe a silly question... how (what for) do you use this filter functionality? one other thing: i think a kind of shortcut "add this image to the ckeditor field" would be really great. like here: https://processwire.com/talk/topic/13471-better-ckeditor-image-insertion-at-least-for-me/ 1 Link to comment Share on other sites More sharing options...
tpr Posted June 7, 2016 Author Share Posted June 7, 2016 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. 2 Link to comment Share on other sites More sharing options...
bernhard Posted June 7, 2016 Share Posted June 7, 2016 i get the point for files. but i've never needed to filter images but the day will come, i'm sure Link to comment Share on other sites More sharing options...
tpr Posted June 7, 2016 Author Share Posted June 7, 2016 Maybe it makes more sense if you use image tags, or descriptions. Link to comment Share on other sites More sharing options...
tpr Posted June 7, 2016 Author Share Posted June 7, 2016 one other thing: i think a kind of shortcut "add this image to the ckeditor field" would be really great. like here: https://processwire.com/talk/topic/13471-better-ckeditor-image-insertion-at-least-for-me/ I would prefer drag-and-drop to ckeditor, but atm this is on the very end of the list 1 Link to comment Share on other sites More sharing options...
tpr Posted June 7, 2016 Author Share Posted June 7, 2016 v016 is uploaded to GitHub, containing the datalist feature for filterbox + a display bug fix reported by matjazp. 2 Link to comment Share on other sites More sharing options...
horst Posted June 7, 2016 Share Posted June 7, 2016 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. Thanks @tpr! 3 Link to comment Share on other sites More sharing options...
horst Posted June 7, 2016 Share Posted June 7, 2016 @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! Link to comment Share on other sites More sharing options...
tpr Posted June 7, 2016 Author Share Posted June 7, 2016 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; } }); }); }); 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now