tpr

Module
AdminOnSteroids

848 posts in this topic

one thing i'm missing sometimes on the template editor is a shortcut for editing field widths. a slider from 10 - 100% instantly changing the fields width would be a great addition in my opinion :) often changing one field's width makes it necessary to change the other field's width as well (eg adding a field to a row of 4 fields with 25% makes it necessary to change all fields to 20%

it would be great to add the field and drag all field's width from 25 to 20 without the need to open each fields settings, clicking on the display tab, changing value, saving field, closing modal...

all other settings are fine being available behind one click.

1 person likes this

Share this post


Link to post
Share on other sites

Forget the drag and drop idea , a link, fe next to the page title, that opens the template editor in a modal window to show all the fields of the template, would fit the requirements.:)

Screenshot_6.jpg

Share this post


Link to post
Share on other sites

By not reading the manual? :)

Field width changing would be great, provided that a good and simple GUI could be found. My first idea was to change the asm fields width according to the field widths, that would allow instant visual feedback, and allow field width change by dragging their right side. I haven't used such Js library so I don't know how hard that would be to implement.

Share this post


Link to post
Share on other sites

i think the most simple solution would be to make the status text on the right edge of asm select clickable and link directly to the second tab:

<span class="asmListItemStatus">Text 33%</span> --> editurl#inputfieldConfig

would that work? it would save 1 click per field and would still need 1 click to save. maybe 1 inputfield per field directly inside the asm select would be even better? then it would be really easy to change multiple fields in a very short time...

btw: has anyone ever kind of a "newline"-field? for example if you have different number of fields in one line depending on field dependencies. if you have 2 lines with columns < 100% that can lead to wrong field orders. workaround is to put those fields inside a fieldset, but i think there could be a better solution...

Share this post


Link to post
Share on other sites

v117 contains @bernhard's idea (see above). I've also managed to add the "100%" text on full-width fields because this makes percentages align nicer.

asmWidths.gif

3 people like this

Share this post


Link to post
Share on other sites
On ‎27‎/‎12‎/‎2016 at 2:24 PM, bernhard said:

btw: has anyone ever kind of a "newline"-field? for example if you have different number of fields in one line depending on field dependencies. if you have 2 lines with columns < 100% that can lead to wrong field orders. workaround is to put those fields inside a fieldset, but i think there could be a better solution...

I dont think there is such field, I would perhaps add some CSS to fix (clear or before-after pseudos).

1 person likes this

Share this post


Link to post
Share on other sites

thank you tpr for the new update :) also thank you for the css fix. didn't think about that!

what do you think of adding often used widths as a clickable shortcut to the form? clicking it could also save + close the modal :)

2017-01-02 18_52_11-Edit Template_ rockproject • hrd.baumrock.com.png

 

shortcuts could be

  • 20
  • 25
  • 33
  • 34
  • 40
  • 50
  • 60
  • 75
  • 80
  • 100

 

1 person likes this

Share this post


Link to post
Share on other sites

Not sure about this, it wouldn't save too much time imo. Auto save would be also an issue because users could have edited other fields and perhaps they wouldn't like to save.

2 people like this

Share this post


Link to post
Share on other sites

I've added simple svg backgrounds to show values as guidelines. It's not 100% perfect but close :)

aos-columwidth-scale.gif

3 people like this

Share this post


Link to post
Share on other sites
On 12/21/2016 at 3:29 PM, tpr said:

I tried it on two servers (livehost), in a subdir and in the root.

You could try to uncomment the series of bd() calls in line 913 and further down in 961 to see what paths/urls AOS tries to use (requires Tracy Debugger).

You can update the module from the directory as it contains these fixes.

Sorry for delay in respond, Just returned home from out of town during holiday.  Pardon for my ignorance, Tracy Debugger? Is that PW modules? Plugin? I have looked into this https://processwire.com/blog/posts/introducing-tracy-debugger/ and still not yet sure understand how or where I can preform debugging. Can you explain? 

Share this post


Link to post
Share on other sites

Yes, Tracy Debugger is a module which can help you find problems with your code or in others code as in this case too.

Once you install it and see the "Debugger bar" (refer to the introduction post you linked above) then if you uncomment those lines I mentioned you should see the values if you click on the bar. This way you can see why the path/url differs.

1 person likes this

Share this post


Link to post
Share on other sites

Okay, Tracy Debugger module is installed, I 've uncomment  line :913 bd($ckeCSS);  and :961 bd($adminCSS); on AdminOnSteroids.module inside .AdminOnSteroids directory.I have read and followed carefully, I understand am supposed to look for debug bar once debugger is installed. Apparently, its not show any bar. I use chrome browser with firelogger installed. Yes, I've confirmed debugger is enabled, The bar to display at front and back is checked, the uncommented, line 913 and 961 and cleared cache after Tracy debugger module is installed. 

Tracy1.JPG

Tracy2.JPG

Now I am getting confused... what am I missing?

Share this post


Link to post
Share on other sites

@Speed - if this is on a non local server, you will either need to force to "Development" mode (change from Detect), or check the "Force superuser development mode" button.

Tracy must be in development mode to show the debug bar. If it's a remote server, DETECT will determine that it should be in PRODUCTION mode.

1 person likes this

Share this post


Link to post
Share on other sites
9 minutes ago, adrian said:

if this is on a non local server, you will either need to force to "Development" mode (change from Detect), or check the "Force superuser development mode" button.

@adrian - Enabling 'Development' mode got debugger bar to show up. (PW in livehost) Thank you. 

@tpr - let me guess, is that what I should look for??

Tracy3.JPG

 

Share this post


Link to post
Share on other sites
Just now, Speed said:

let me guess, is that what I should look for??

You want to look at the Dumps Recorder panel - the icon looks like a dump truck :)

Share this post


Link to post
Share on other sites

So it contains no dumps? Did you uncomment those bd() calls that @tpr pointed out?

Share this post


Link to post
Share on other sites

yes...Confirmed,  I have commented it out.  (This line was commented out in live server with editor.)

Share this post


Link to post
Share on other sites

v119 comes with a new "Apply to all" button to update all dropdowns with the selected option on the "Add field to templates" page (see the screen capture below), requested by @gmclelland

I've also updated the "Remove all" button on the field deletion confirmation page. Now it reads "Check all" and the default submit button can be used for deletion instead. The same "Check all" button is added to the other field deletion confirmation page (accessed from the Field edit page, Actions tab).

All these are under the "Misc" submodule. Please re-check the checkbox "Add helper buttons to batch field add/remove confirmation pages" because it was renamed.

aos-field-batch-actions.gif

5 people like this

Share this post


Link to post
Share on other sites

Just committed a small update to GitHub which expands the select box if there's only one of it (field add confirmation page):

aos-expand-select.png

2 people like this

Share this post


Link to post
Share on other sites

v123 is up, and here are the latest additions:

1.2.3
- Hotkeys: focus filterbox on alt+s

1.2.2
- title change case button improvements

1.2.1 
- Misc: option to move empty trash confirmation checkbox above trash items

2 people like this

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By benbyf
      HELLO!
      I've been working on a user messaging module which I am nearly ready to release as version 1.
      Currently I have the below functionality and I'm looking for feedback to what other things may be useful for people looking to add user to user messaging on their sites.
      compose message to one or more users known to PW js to enable tag based UI display of user names input on compose message form display all message threads with reply forms reply to message thread displaying each user name by each message in the thread display "unread" when a thread has new content that hasnt been seen by current user delete or unpublish message thread (configurable) display total message thread count display total unread threads (threads that have new replies that the current user has not seen) delete all message threads and associated data (not meant for the users to have access to) road map
      send email to user on new message to a thread they are included in
    • By louisstephens
      So I was working on a module and trying to include a library (so I could use it across the site) using $modules->get('myModule'); . However, When I go to include the library folder (modeled after the LibFlourish module created some time ago). I keep getting: 
      site/modules/MyModule/libraryName/ProcessWire\filetoinclude.php This comes with an error notifying that "failed to open stream: No such file or directory in ...".. Is ProcessWire supposed to be in the include url, or is there a way around this? Sorry, I am quite new to working with my own modules.
       
      I just noticed the sub forum regarding Development, if someone could move this to the correct area I would appreciate it.
    • By louisstephens
      I wasn't quite sure where to post this, as this is a question regarding the module (sorry if it is in the wrong place). I was wondering if anyone has used the Email to Page module and figured out a way to "move" incoming css to another field, or how to render the css so the message just renders utilizing the css. 
      Right now all of the message contents get dropped into a textarea field and display in a template as a jumbled mess. Perhaps I am missing a formatting option in the text area field to render the css and html.
    • By blynx
      Hej,
      just finished the first working version of my photoswipe bundle. https://github.com/blynx/MarkupProcesswirePhotoswipe
      Haven't published it to the module directory, yet. Wanted to wait for some feedback.
      You can add a photoswipe enabled thumbnail gallery / lightbox to your site like this. Just pass an image field to the renderGallery method:
      <?php $pwpswp = $modules->get('Pwpswp'); echo $pwpswp->renderGallery($page->nicePictures); Options are provided like so:
      <?php $galleryOptions = [ 'imageResizerOptions' => [ 'size' => '500x500' 'quality' => 70, 'upscaling' => false, 'cropping' => false ], 'loresResizerOptions' => [ 'size' => '500x500' 'quality' => 20, 'upscaling' => false, 'cropping' => false ], 'pswpOptions' => (object) [ 'shareEl' => false, 'indexIndicatorSep' => ' von ', 'closeOnScroll' => false ] ]; echo $pswp->renderGallery($page->images, $galleryOptions); More info about all that is in the readme: https://github.com/blynx/MarkupProcesswirePhotoswipe
      It is possible to customize pretty much anything by providing your own templates and scripts.
      What do you think? Any ideas, bugs, critique, requests?
      cheers
      Steffen
    • By kixe
      FieldtypeColor is on github

      Fieldtype stores a 32bit integer value reflecting a RGBA value.
      Input
      4 types of Inputfields provided
      Html5 Inputfield of type='color' (if supported by browser)    Inputfield type='text' expecting a 24bit hexcode string (RGB). Input format: '#4496dd'.
      The background color of the input field shows selected color Inputfield of type='text' expecting 32bit hexcode strings (RGB + alpha channel) Input format: '#fa4496dd' Inputfield with Spectrum Color Picker
      (Options modifiable) Inputfield type='text' with custom JavaScript and/or CSS (since version 1.0.3) Output
      Define output format under 'Details' tab in field settings. Select from the following 8 options
      string 6-digit hex color. Example: '#4496dd' string 8-digit hex color (limited browser support).  Example: '#fa4496dd' string CSS color value RGB. Example: 'rgb(68, 100, 221)' string CSS color value RGB. Example: 'rgba(68, 100, 221, 0.98)' string CSS color value RGB. Example: 'hsl(227, 69.2%, 56.7%)' string CSS color value RGB. Example: 'hsla(227, 69.2%, 56.7%, 0.98)' string 32bit raw hex value. Example: 'fa4496dd' int 32bit. Example: '4198799069' (unformatted storage value) The Fieldtype includes
      Spectrum Color Picker by Brian Grinstead

      SCREENSHOTS
      Input type=text with changing background and font color (for better contrast)

      Input type=color (in Firefox)


      Javascript based input (Spectrum Color Picker)


      Settings Output

       
      Settings Input