
gmclelland
Members-
Posts
577 -
Joined
-
Last visited
-
Days Won
7
Everything posted by gmclelland
-
I came across this and thought it was cool. https://deepwiki.com/processwire/processwire
- 1 reply
-
- 12
-
-
-
Using DDEV for local ProcessWire development (tips & tricks)
gmclelland replied to bernhard's topic in Dev Talk
Great video by the DDEV creator that shows how to troubleshoot problems in your codebase by using DDEV with xdebug and breakpoints in his PHP editor. Then he shows how to go deeper by using DDEV and git bisect with a known good git point in the past when everything was working correctly and the current git commit where everything is broken. Then he shows how to take it further and automate all the manual steps he took and instead use a bash script that does the same thing but much faster. -
I had just upgraded to the latest dev version.
- 31 replies
-
- module
- appearance
-
(and 2 more)
Tagged with:
-
Hi @benbyf, just wanted to let you know that it looks like a newer version of Processwire might have broken this module a little. It still outputs the names of the templates in the page tree, but they aren't floated to the right anymore. I think it just needs the following added to the module's css: .align_right{ float: right; margin: 0 0 0.5em 1em; } since it looks like this css was removed from Processwire: .pw-align-right, .align_right, .align-right { float: right; margin: 0 0 0.5em 1em; } Though it might be safer to include a css class just for this module instead of just using a generic class of .align_right? Also the comments at the top of the .module still show DeferredPublish Kind regards
- 31 replies
-
- module
- appearance
-
(and 2 more)
Tagged with:
-
Let AI self-improve your coding prompts with AI rules
gmclelland replied to gebeer's topic in Dev Talk
Ah yes, that tool is probably only useful when using the online services like Google’s Gemini -
Let AI self-improve your coding prompts with AI rules
gmclelland replied to gebeer's topic in Dev Talk
Interesting topic…have you seen https://gitingest.com to pull in specific code from a repo to give your chat more context? -
Thanks @erikvanberkum! How were the mega menus modeled in the backend of ProcessWire?
-
Great write up gebeer! Very nice looking pdfs. I would also be interested to see how the mega menu was created on that site.
-
Thoughts on Image Usage: Summarise sizes, types, etc.
gmclelland replied to strandoo's topic in General Support
How about this? https://processwire.com/modules/process-media-lister/ -
@ryan while reading through https://processwire.com/blog/posts/text-blocks, I noticed the examples aren’t being shown: Example of using Text Block template files Here are processwire.com we use a Text Block template file for our ProcessWire download links. Below we've typed show_download and this in turn loads the file /site/templates/text-blocks/download.php. That file connects to GitHub, grabs the latest version information, and then generates these buttons you see below: reveal_download I think the reveal_download text should show the download buttons. I also noticed that the Requirements listing isn’t showing. Anyways, just thought you would like to know. Have a great weekend!
-
Enhancing Security and Efficiency in ProcessWire Installations
gmclelland replied to AswinC's topic in General Support
Here's one place this was talked about in the past: https://github.com/processwire/processwire-requests/issues/142 -
@kaz I posted a link to a tutorial in my post above. The difference is in that tutorial the templates exists in a “fields” directory and not in a views directory. Rendering fields template files are also described here https://processwire.com/blog/posts/processwire-3.0.7-expands-field-rendering-page-path-history-and-more/#field-rendering-with-template-files
-
This tutorial might help? https://processwire.com/talk/topic/27499-something-like-gutenbergdrupal-paragraphs/#comment-226306
-
Thanks for sharing BitPoet! I did notice a couple of typos as well: * echo "<div class='year'><h2>$year</h3>" . PHP_EOL; and <div class='year'><h2>2016</h3> Notice the h2 and h3 don't match up?
-
Here's an article that talks about hot-reloading in Craft CMS using Alpine.js: https://aaronmbushnell.com/hot-reloading-content-in-craft-cms-live-preview/ It also references an article about Statamic's live preview as well: https://jacksleight.dev/posts/hot-reloading-statamic-s-live-preview-in-a-traditonal-mpa Just thought I would share in case it is relevant?
-
Using DDEV for local ProcessWire development (tips & tricks)
gmclelland replied to bernhard's topic in Dev Talk
Found this recently. Thought I would share. It provides a GUI in VSCode for DDEV. https://marketplace.visualstudio.com/items?itemName=biati.ddev-manager -
Using DDEV for local ProcessWire development (tips & tricks)
gmclelland replied to bernhard's topic in Dev Talk
In case anyone runs into the same issue... After I upgraded Docker Desktop for Mac to the latest version, I started getting errors in DDEV on all of my DDEV projects. @rfay from DDEV - pointed me to the fix at https://github.com/docker/for-mac/issues/6677 Error response from daemon: Ports are not available: exposing port TCP 127.0.0.1:443 -> 0.0.0.0:0: failed to connect to /var/run/com.docker.vmnetd.sock: is vmnetd running? The fix for me was to run these two commands: /Applications/Docker.app/Contents/MacOS/install remove-vmnetd sudo /Applications/Docker.app/Contents/MacOS/install vmnetd -
See this...
-
PW 3.0.215 – Core updates (jQuery upgrades)
gmclelland replied to ryan's topic in News & Announcements
Haven’t tried it yet, but it looks like there is a new fork of selectize at https://tom-select.js.org I just saw this and thought I would report it here in case it is relevant? -
Sorry, I just realized https://processwire.com/modules/files-rename-replace/ is only for file fields, not image fields.
-
I'm not sure if it will work with MM, but I like to use https://processwire.com/modules/files-rename-replace/ for that type of functionality.
-
Using DDEV for local ProcessWire development (tips & tricks)
gmclelland replied to bernhard's topic in Dev Talk
I haven't tried Colima, but it looks like ddev recommends Colima over Docker Desktop: https://ddev.readthedocs.io/en/stable/users/basics/faq/#why-do-you-recommend-colima-over-docker-desktop-on-macos -
Using DDEV for local ProcessWire development (tips & tricks)
gmclelland replied to bernhard's topic in Dev Talk
Just tried out ddev for the first time and it looks like it is working really well. Thanks @bernhard and others for contributing to this thread. Ddev looks way easier then my previous setup based on homebrew https://getgrav.org/blog/macos-monterey-apache-multiple-php-versions. Here's the steps I had to take to get started with ddev. I'm writing it here so that other people don't have to spend much time with this. `ddev config` - Choose `php` project. Docroot location = `wwwroot` and let it create the folder `git clone --branch dev https://github.com/processwire/processwire.git wwwroot` - Downloads the latest PW dev branch into the 'wwwroot' directory `ddev start` and open the site's url. It will look something like https://pwtest.ddev.site/ Go through Processwire Installer and enter the configurations The Processwire installer might complain about " Unable to determine if Apache mod_rewrite (required by ProcessWire) is installed. On some servers, we may not be able to detect it until your .htaccess file is place. Please click the 'check again' button at the bottom of this screen, if you haven't already." - Just click the "Continue to Next Step" button `ddev describe` - Shows the name, urls, and ports of the running servers Enter the following in the Processwire Installer DB Name = db DB User = db DB Pass = db DB Host = db DB Port = 3306 Character Set = utf8mb4 - if you want emojis? DB Engine = InnoDB Done. Just follow the rest of the prompts to access your site Maybe it could automatically create a site/config-ddev.php that gets automatically included into site/config.php? https://ddev.readthedocs.io/en/stable/users/topics/cms_specific_help/ and https://ddev.readthedocs.io/en/stable/developers/project-types/. Something like: // Automatically generated include for settings managed by ddev. if (file_exists(__DIR__ . '/config-ddev.php') && getenv('IS_DDEV_PROJECT') == 'true') { include __DIR__ . '/config-ddev.php'; } Looks like all of the custom CMS projects are located at https://github.com/drud/ddev/tree/master/pkg/ddevapp After looking at some of the .go files, it looks like it can get a little complex? https://github.com/drud/ddev/blob/master/pkg/ddevapp/drupal.go Oh well. Now it's time to have some fun with ddev and Processwire!