-
Posts
11,266 -
Joined
-
Last visited
-
Days Won
374
Everything posted by adrian
-
https://github.com/nette/tracy/issues/292
-
@bernhard - I have a temporary solution for you. Replace https://github.com/adrianbj/TracyDebugger/blob/93fe130026244fe727e5553b82183a85b78e2c9f/tracy-master/src/Tracy/Dumper.php#L460 with: return count((array) $obj->__debugInfo()) ? $obj->__debugInfo() : (array) $obj; There are other ways this could be achieved, but since this is modifying the Tracy core, I am going to ask them what they think is the best approach. Let me know if it works as expected for you.
-
Maybe - I'll see what can be done, but to make it a little easier, can you let me know what variable in RockSqlFinder you are dumping, and where?
-
Hey @bernhard - I think it should already work that way: So I am wondering if it's due to your class extending a PW class that does implement __debugInfo() Could you please let me know what you trying to dump in your module so I can reproduce what you are seeing.
-
https://jeevanism.wordpress.com/2018/03/24/processwire-cms-a-review/ On a WP.com blog no less
-
I would definitely recommend installing: http://modules.processwire.com/modules/module-release-notes/ so you can see what's changed when using the PW Upgrade module: http://modules.processwire.com/modules/process-wire-upgrade/
-
Try Tracy in Strict Mode (you can toggle from the Panel Selector). If nothing shows up there, be sure to look at the Network Response tab in the browser dev console and make sure you check Disable Cache: https://processwire.com/talk/topic/17089-images-disapear-after-uploading-and-saving/?do=findComment&comment=150139
-
I don't have any listers set up on this site, although I probably will before it is released, so glad I learned about this now
-
Thanks for the explanation on this (apparently I didn't read above). I must admit that I think LP shouldn't use $settings - it should be more specific, like $listerProSettings or similar. I actually defined a global $wire var $settings for use with Settings Factory on one of my current projects - time to change that I guess
-
Just to clarify - is it just this module, or also Settings Factory that has this issue? If it's just this module then I can't see a reason to promote/maintain this module anymore. Am I missing something?
-
-
I haven't used this module, but I have used @Macrura's Settings Factory which is awesome. Is there any reason to consider this module over Settings Factory? Genuine question because I don't know what the differences are
-
Selector arrays with page reference fields with AND, not OR
adrian replied to adrian's topic in API & Templates
$selector['amenities.title'] = $input->get->amenities; It's not surprising it results in what it did, but I'd still like an associative array approach that worked. -
Selector arrays with page reference fields with AND, not OR
adrian replied to adrian's topic in API & Templates
Ok, I ended up looking into it and from what I can tell the only way is to use the "regular arrays" option, rather than the associative approach. This seems to work: foreach($input->get->amenities as $amenity) { $selector[] = ['amenities.title', $amenity]; } It gets converted to: and the final selector ends up having this, which is what I need. amenities.title=Kitchen, amenities.title=Laundry Maybe this is the only way, but if anyone else has another solution, let me know. Otherwise, hope this helps someone else down the road, -
Selector arrays with page reference fields with AND, not OR
adrian replied to adrian's topic in API & Templates
What I am looking for is pages that have the amenities page field with Kitchen & Laundry selected, not either, hence the AND, not OR. Maybe my idea at the end doesn't make sense, but I am still looking to use the selector array to end up with the: amenities.title=Kitchen, amenities.title=Laundry which is logical. Maybe it's not possible and I need to build up a selector string like I always have? -
Selector arrays with page reference fields with AND, not OR
adrian posted a topic in API & Templates
Hi everyone, In a rush and using selector arrays for the first time and hoping someone can point me to an easy way to convert a mult-value page reference field into an AND selector. This: is getting converted into: "parent=1031, start=1, limit=6, sort=title, category=1111, amenities.title=Kitchen|Laundry, status<1024" but of course I want: "parent=1031, start=1, limit=6, sort=title, category=1111, amenities.title=Kitchen, amenities.title=Laundry, status<1024" with each selected "amenities" option expanded out so it's AND and not OR. Anyone done this with selector array? A little OT, and I probably need to look over some history here as to why it's not available, but sometimes I think it would be nice if we could just do: amenities.title=Kitchen&Laundry Thanks for any help! -
-
how to transform page selectors into sql queries?
adrian replied to bernhard's topic in General Support
I know you know about this now @bernhard but others may not and since I just stumbled across this post, I thought I post this which shows running a $pages->find in the console panel and then viewing the resulting SQL Query in the "Selector Queries" section of the Debug Mode panel (from the ajax bar). Hope that helps others who come across this thread. -
Hey @tpr - thanks for your work on this - I think it's a great addition. Not sure why, but I had to change max-height for the rolled up version from 39px to 47px, otherwise I got a scrollbar in the header. Does it look OK for you with this change (just committed). I moved the js into main.js (which is new) as a place to load all general JS (that doesn't need injected PHP vars). The last version also includes some z-index fixes (introduced recently in the Tracy core), your sticky table header, and I added the fullscreen/halfscreen button to a couple of other panels that I thought could benefit from it. Also added @gmclelland's idea of linking to fullsize version of image. In the PW admin this opens in a modal, but just same page in frontend. Thanks again!
-
Sure, I'll add to the next version. Sounds like a good idea - thanks! I think this looks awesome actually. I was kinda looking for something along these lines, but never really figured out the best approach. I went with the ESC to close all panels, but then there was no way to restore. I was going to add a Tab key option to work like tool panels in Adobe products, but you can't really make use of the tab key like that because it's needed for so many other things. I think what you have here looks like a great option for quickly getting a panel out of the way without closing it. Would appreciate some code whenever you get around to it - thanks!
-
@gmclelland - I think you're issues should be fixed in the latest version (thanks for PM help with this). @bernhard - I have modified the behavior of the large/small buttons in the Console panel to be fullscreen/halfscreen. Please take a look and let me know if you think that behavior suits your needs. I am ok with adding it to other panels as well if you think it works well, although obviously some panels would look pretty silly fullscreen As for the z-index issues - I think that's maybe an AOS conflict - @tpr was working on that yesterday. Please let me know if they persist with AOS disabled. Everyone else - while fixing the issue that @gmclelland was having, I make quite a few changes to the the Field List & Values section of the Request Info panel. It should now generally be even lighter and yet also show more depth of details. It also now shows unformatted and formatted values for each field. There is also a new Image Details column - displaying the thumbnails is optional (check config settings - you may want to disable if you have image fields with lots of images). Please let me know if you have any issues with the new version or ideas for improvements.
-
how to create non editable field to show page ID in admin form?
adrian replied to neosin's topic in Getting Started
insertBefore or prepend https://processwire.com/api/ref/wirearray/insert-before/ https://processwire.com/api/ref/wirearray/prepend/ -
how to create non editable field to show page ID in admin form?
adrian replied to neosin's topic in Getting Started
This will let you do what you want: http://modules.processwire.com/modules/fieldtype-runtime-markup/ -
Yeah - I don't think init.php and ready.php existed when I wrote this. I guess the only advantage to admin.php is that it is only called in the backend, whereas init.php and ready.php are called in frontend as well. It won't make any significant impact on performance though, so whatever works for you.
-
[Solved] Profields page table auto add chidlren?
adrian replied to neosin's topic in General Support
You could put it in your admin.php as I mentioned in that thread, or your ready.php if you prefer.