-
Posts
2,321 -
Joined
-
Last visited
-
Days Won
44
Everything posted by tpr
-
Could the modules list in the Versions List be in alphabetical order? It's hard to find a given module if it's not.
-
I haven't tried this but come across with it a few times. Perhaps I could use it for a few things in my modules, I think there could be some cool usage of this
-
Nice! What did you use for copy? As I know some browsers doesn't allow interacting with the clipboard.
-
Button Module for Updating Static Information
tpr replied to berechar's topic in Module/Plugin Development
Server referer should work fine in most cases for the previous URL. -
Thanks, though I feel that some testing wouldn't hurt first
-
Just uploaded v068 which adds template edit link tooltips to the main pagelist items plus has some CSS improvements to a few CKE plugins (some seem to be written at least 10 yrs ago :)). And also see the ProcessPageList.js attached that was modified to enable opening collapsed pagelist items when hovering over them during drag-and-drop. It's still not perfect but it's still much better than the original imo - please feel free to modify the code (see line 1035, "change" property of "sortOptions"). The file's location is "/wire/modules/Process/ProcessPageList/". The main problem is that I check the next item after the placeholder (.PageListSortPlaceholder) so expand-collapse occurs only when moving the placholder above on item and not directly on it. I think this could be improved somehow. The reason I uploaded this here is because AOS v068 contains a few lines of CSS that modifies the appearance of dragging. Of course it works without AOS too. Here is what it looks now: ProcessPageList.js
-
Just to clarify: the pagelist dnd won't be in AOS but a PR. I don't think such mod could be applied from the outside.
-
-
There is a loadChildren function which works, so in theory everything is ready to be put together
-
@bernhard I think it's a good idea, I also often have hard times when moving pages though I don't do that too often. I have minimal experience with drag-and-drop but I could modify ProcessPageList.js up to the point where only a "click" is needed, but unfortunately I couldn't make this last step work so far.
-
Well it's the same functionality that is already present in image fields, of course a help text could be added to make things clearer. There could be also a Replace button. I use dnd from time to time, and it's especially handy when replacing images. Just dnd a new image over the old and save. I also maximize windows but it's easy to dnd - move the "loaded" cursor over the taskbar item, wait and drag to the destination.
-
FYI, just added an "Edit template" tooltip to pagelist items in my module AdminOnSteroids (not yet committed). It's kind of a dirty hack because there's a link inside a link but with a few lines of jQuery it works
-
ProCache omitting the body tag when minifying HTML
tpr replied to andy-jfd's topic in General Support
I agree that it should be optional. I found similar issue with input type text where "type" was removed so my CSS rules targeting input[type="text"] failed. But most cases there's a setting where you can fix such things, but of course that means you need some experience in ProCache. As a workaround if you add a class to the body it should be kept (untested). -
Weird characters in automatically created PageName
tpr replied to bernhard's topic in General Support
I haven't noticed this, perhaps only 1 or 2 times so far. I just edited my post that I made a few seconds earlier and there was no forced wait at all. -
v131 is uploaded with a fix for a bug prevented the default edit link text to be saved (spotted by @matjazp).
-
I've updated the previous post and added a gif to illustrate my idea.
-
Thanks! Image fields already have such feature as you might know, and something similar would be fine for file fields too, eg prepending an icon to serve as a draganddrop area. If the purpose of your request is on consistency, this would be perhaps better. Edit: here's what I thought:
-
Good idea, but the first round should be a feature request to Ryan.
-
Help with frontend ajax form submission on same page
tpr replied to hellomoto's topic in General Support
Here are a few things you could check: $("#inquire").submit(function(e) { Do you fire a submit event right on start? Is this by purpose? If not, it should be rather $("#inquire").on('submit', function(e) { Maybe you should change it to full url instead: $.ajax({ type: "POST", url: "./inquiries/", Here you might save the page first, set msg and save again: $p->save(); $p->message = $msg; $p->save(); -
You should also visit the module page and edit it to force updating it in the directory (you don't have to edit anything, just enter email/pw and Save): http://modules.processwire.com/edit/process-general-settings
-
v067 is up, containing the image titles for the image select dialog and other fixes/updates: new option to FileFieldTweaks: show image titles in image select dialog custom paths for admin.css, admin.js and CKEaddons assets AdminTweaks: remove max-width constraint from modals AdminTweaks & RenoTweaks: added tweak "Highlight pagelist rows on hover" fix for templateEditLink not showing up (default theme) removed ScrollFix submodule
-
I think I've fixed the issue, try v1.3.0. The error was present only if there were no parameters passed to feel(). Unfortunately on a site where I tried to reproduce I have already fixed this months before but haven't committed. The new version also uses the non-minified MagnificPopup that is available in earlier PW installs too (<2.7 I think).