-
Posts
11,266 -
Joined
-
Last visited
-
Days Won
374
Everything posted by adrian
-
Check out @Jonathan Lahijani's new series of PW vs WP videos: https://www.youtube.com/channel/UCAzZwO7DZ91tQmZqZwe5vuQ
-
Hi @iank - it means that it is most likely not running, but if you don't see the *confirmed off then it's not definite. It depends on how PHP is running - whether it's an apache module or not. In this case to be certain you should ssh into the server and type either: httpd -M or apache2 -M and see if it's listed.
-
I think this shows it pretty clearly: echo'ing triggers the __toString() method, but dumping returns the object.
-
Created and sent action module to @adrian via PM if he would consider including it in Admin Actions module. Thanks and sorry for not getting back to you yet - crazy deadlines here at the moment. Will try to look at it early next week.
-
module Recurme – Processwire Recurring Dates Field & Custom Calendar Module.
adrian replied to joshuag's topic in Modules/Plugins
@joshuag - while you are working on things, could you please make sure it's possible to return all events sorted by start date such that recurring and non-recurring events are returned interspersed with each other. Could you also explain what would go in the $selector part of the $recurme->find() to make this work? I haven't tested this yet, but can you please also confirm that "start" works in the selector with $recurme->find() so we can return paginated / ajax loaded events. Thanks again! -
@asilentwish - please take a look at the AdminRestrictBranch module that @bernhard mentions - it takes care of these menus and all sorts of other issues. Obviously it doesn't hide the pages you want, but you'll be able to grab the bits of code you need from that and add it to one of those gists I listed. But please also read thoroughly through that forum thread - there are issues with what you want to do - what if a parent is hidden, but the user needs access to the children?
-
Module: AIOM+ (All In One Minify) for CSS, LESS, JS and HTML
adrian replied to David Karich's topic in Modules/Plugins
@Juergen -
module Recurme – Processwire Recurring Dates Field & Custom Calendar Module.
adrian replied to joshuag's topic in Modules/Plugins
Thank you very much! -
module Recurme – Processwire Recurring Dates Field & Custom Calendar Module.
adrian replied to joshuag's topic in Modules/Plugins
Hey @joshuag - I really need to bump this find() only working on recurring dates issue. Can you please at least confirm that this is definitely the case because I need to start figuring out an alternative. I don't see how this module can be used without it. How can you generate a list of upcoming events when some are recurring and some are not if the find() method only finds the recurring ones. Thanks. -
Take a look at these: https://gist.github.com/adrianbj/e391e2e343c5620d0720 https://gist.github.com/adrianbj/e391e2e343c5620d0720 https://gist.github.com/somatonic/5595081 and this conversation: https://processwire.com/talk/topic/1176-hiding-uneditable-pages-from-users/?do=findComment&comment=84916
-
I don't, but there is this module by @horst - https://modules.processwire.com/modules/pageimage-remove-variations/
-
Hi @Juergen - I just added the option to both the master and 3.x branches. Let me know if you have any problems. @szabesz did you ever end up testing the autocomplete stuff? Also, I'd like to move 3.x to master pretty soon because it's definitely much easier to work with raw numbers that way. Does anyone have any ideas for any other improvements that might also be breaking changes so we can get these in for this new version?
-
[SOLVED] Problem while getting a custom Fieldtype to work
adrian replied to monollonom's topic in Module/Plugin Development
I would put Tracy in Strict Mode (you can toggle this via the button in the Panel Selector). This way you'll get the Tracy "bluescreen" which will show you a full stack trace so you can figure out what line in your module is causing the problem, rather than the final WireDatabasePDO.php as reported in the warning. The warning is clear that you are providing an array instead of a string, but this will help you figure out where this is happening. -
Hey @bernhard - I think it could be a very useful action actually. These are the sorts of things that I come across fairly regularly and an action makes it so much easier. Would you like to create an action and submit a PR?
-
I'm old school in this regard, but I install all the bits I need via homebrew. Here is a pretty nice guide to getting things up and running: https://getgrav.org/blog/macos-sierra-apache-mysql-vhost-apc
-
I am surprised you are seeing trashed pages returned in a find call in the first place. Are you using "include=all" in the selector as well - I think that is the only way it will return trashed items.
-
Another one for you: On the Input tab of a Page Reference field with an AsmSelect inputfield, choose custom for the label field. This enables the "Custom page label format" field, but see how it's below the "Max Limit of Items" option. On UikIt with the newish "percentage" inputfield column widths option.
-
Been meaning to report this for a while. When the ASM search box option is enabled, the width of the dropdown is too narrow and look item titles wrap which looks ugly and confusing. I am seeing this in the UikIt theme - not sure about the others. Thanks for taking a look!
-
Good to know - I haven't enabled that section in my RequestInfo panel in forever - I guess that's why I am not seeing the issue with repeater fields. Thanks for narrowing it down.
-
I guess it's a matter of figuring out what part of that panel is causing the problem. It will most likely be the "Field List & Values" section. So you could try disabling that section only in the module config settings. If everything is still fine with the panel enabled, but that section disabled, then we need to figure out what bit of code in that section is causing the problem. Here's the code for that section: https://github.com/adrianbj/TracyDebugger/blob/2689b8ccc57bd5776a21cf6413a400c68d71a555/panels/RequestInfoPanel.php#L450-L473 In particular I would recommend looking through the getFieldArray() method that it calls. If you feel up to investigating the cause, that would be greatly appreciated. Otherwise, I will need to get some more details about that repeater field, because I have many sites with lots of repeater fields and haven't noticed a problem, so would need to be able to reproduce to debug. Thanks for your help so far.
-
Hi @vmo - thanks for the hard work narrowing it down to repeaters on the homepage. I have no idea why though at this point. I think the one thing you missed in your debugging was unchecking all the debugbar panels. It would be helpful to know if that helps. If it does, try to narrow it down it a particular panel - most likely the RequestInfo panel. If that doesn't help, then sure send me the zip - I might not have time to look for a little while though.
-
Glad you like it - thanks for letting me ? @Robin S - I haven't forgotten about your request for validation - just no time at the moment - sorry!
-
Hi @vmo - sorry I don't have any idea why you'd be getting a 404. Can you try unchecking all panels via the Panel Selector and see if that helps. Also, do older versions of Tracy work any better? Is this a local or server install? What OS are you running? Apache or Nginx? Could you try another install on the same server? Could you try the Module Disabler panel to disable all other modules to see if there is a conflict?
-
How import database for wordpress ( user database )
adrian replied to Marco Ro's topic in General Support
This is when AdminActions (https://processwire.com/talk/topic/14921-admin-actions/) comes in handy: I will get around to providing this as a proof of concept action at some point, but this is what my import page looks like: This has been working great for me because I get to tweak the SQL queries (that I use to generate the CSV files that this action uses) and easily re-import. Just name the CSV files to match the template and this list is automatically generated: It also makes it easy to test with importing a few, many, all, or a selected one: I am going to use this for all my future site migrations.