gmclelland
Members-
Posts
577 -
Joined
-
Last visited
-
Days Won
7
Everything posted by gmclelland
-
Thank you @Robin S. Sorry about that.
-
Hello, I’m trying to add a div around an input field but can’t seem to get it. Can someone see what I'm doing wrong ? I don't get any errors, but the div isn't shown either when rendered. $field = new InputfieldURL(); $field->set('name', $this->attr('name')); $field->set('value', $this->attr('value')); $field->set('class', 'InputfieldAssistedURL'); $field->prependMarkup = '<div class="InputfieldAssistedURLWrapper">'; $field->appendMarkup = '</div>';
-
@wumbo Can you publish this to the modules directory?
-
Great, thank you!
-
Off topic...Hi @Sérgio, is there a way to prefill that Google custom search engine with query parameter? Like https://cse.google.com/cse/publicurl?cx=014789015761400632609:fxrf0rj4wr4?q=some+keywords That way I can add it to Google Chrome like they do here http://www.makeuseof.com/tag/create-custom-search-engines-google-chrome/
-
I think https://github.com/horst-n/CroppableImage3 might be able to do something similar?
-
I haven't tested it on a phone/tablet, but I wonder if we can use the existing system to work better on mobile. How it could work: Click a page title in the tree - Links expand showing "Edit, View, New, Move" Click "Move" - it shows "Click another page title to show the moving options" Navigate to and click on a different page title in the tree - it shows "Move below, Move above, Set as parent" Maybe then we wouldn't need the drag and drop javascript?
-
Here is some interesting ways that the Modx CMS is AMPifying their content https://www.sepiariver.ca/blog/modx-web/amp-ify-your-modx-site/ Here is how Wordpress seems to be handling it https://code.tutsplus.com/tutorials/installing-amp-in-wordpress--cms-26272
-
Silverstripe - https://www.silverstripe.org/ also does a good job with this. Here is a quick screencast. I wonder though if these are usable on mobile / tablet? silverstripe.mp4
-
Thanks tpr, but I don't think that is obvious enough. If we rely on drag and drop we will have to explain/train our users on how to use the user interface. IMHO.. I'd rather have a simple button that pops up a modal that includes a standard file chooser input field in case the user just wants to select a file and doesn't want to drag and drop.
-
Thanks tpr, I created an issue on github for those who would like to follow along. https://github.com/ryancramerdesign/ProcessWire/issues/2047
-
Hi tpr. Feature Request: If possible one thing I would like to see is better consistency for replacing files in file and image fields. This is a task that content editors have to do constantly, so I would like to make it dead simple and obvious. Here is some quick mockups: For image fields: When the "Replace Image" Button is clicked, a modal dialog pops up. For File Fields: Same thing...It opens a dialog to replace the file Any thoughts?
-
Module: Testrun selectors + find() from admin (ProcessSelectorTest)
gmclelland replied to nik's topic in Modules/Plugins
I already had Tracy Debugger installed, but didn't know about this. Very nice, thanks szabesz! -
Module: Testrun selectors + find() from admin (ProcessSelectorTest)
gmclelland replied to nik's topic in Modules/Plugins
I just installed this on 3.0.33 devns and so far it seems to work fine. -
I see the problem... I installed the site with pwshell and didn't set a timezone. In the response there was this warning Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. As soon as I set the timezone in the config.php everything started working. Sorry for the alert
-
Heads up... I just downloaded a fresh 3.0.33 devns and the page tree was failing to load everytime I enabled TracyDebugger.
-
Works with the default theme now. Thanks tpr!
-
Just reporting...I added the snippet you provided to the module file and now the default theme has a working sticky header.
-
I added that snippet to a template file, but it didn't output anything. I also have Tracy debugger and tried using the php console, but it didn't output anything either.
-
After reading the comment in the scss file // AdminTweaks (default theme tweaks) // note: the default theme adds theme name class only to body, AOS adds to html maybe AOS isn't adding the class "AdminThemeDefault" to the html element in the default admin theme in AdminOnSteriods.module line 243?
-
Actually I bet what is happening is the AOS css is targeting the html element when it should be targeting the body element on line 2166 of AdminOnSteriods.scss
-
The default theme is missing the "AdminThemeDefault" class on the html element. After I added that manually it worked.
-
I just updated to v056 and here are my html element classes <html class=" headSticky HoverDropdown moduleCompact moduleModal" lang="en"> and <body class="id-10 template-admin hasWireTabs AdminThemeDefault ProcessPageEdit-id-1015 ProcessPageEdit-template-left-sidebar pw-ready InputfieldColumnWidthsInit"> So I have classes now, but the header still isn't sticking. Sorry... I'm trying to find the problem as well.
-
There isn't any classes on the html element.
-
Strange. It still didn't work. I clicked the clear compiled files button at /admin/module/. I also did a module refresh. I'm using the latest Google Chrome on a mac. Here are my body classes when editing a page. id-10 template-admin hasWireTabs AdminThemeDefault ProcessPageEdit-id-1002 ProcessPageEdit-template-basic-page pw-ready InputfieldColumnWidthsInit