gmclelland
Members-
Posts
571 -
Joined
-
Last visited
-
Days Won
6
Everything posted by gmclelland
-
Great work @theo! I'm interested to see how this plays out. Will you be sharing the steps/code used to make this? I added your technique to my document "Techniques for flexible page layouts in Processwire" https://docs.google.com/document/d/1peY-FUpevKgy87cKOxIVz8jwcv2-3c61zbiJr3QKO6c/edit?usp=sharing. Will this also handle the case where you have full bleed rows with contained columns on the inside?
-
Also another thing I noticed is that as of Twig 1.5 debug extension is replaced by Twig's dump function. https://github.com/twigphp/Twig-extensions/commit/5807439c9924323e202c728ceb3199635f09c7e6
-
@ak1001, Forget about home.html. You only need to use home.php and home.twig. All of your PHP stuff goes into home.php and your html stuff goes into home.twig. Example: in home.php <?php namespace ProcessWire; $view->set('mytitle', $page->title); In home.twig <h1>{{ mytitle }}</h1> <div class="body-content">{{ page.body }}</div> This code assumes your Processwire home template has a title and body field.
-
Oops... We posted at the same time.
-
Hi @ak1001, Welcome, I personally like to use home.php as my controller and home.twig as the view. Using the .twig can provide Twig syntax highlighting in some text editors. Make sure you set the .twig extension in the Template Engine Twig module settings > Template File Suffix I prefer to keep those file in the same directory. It's less context switching when your looking for files. Template Engine Twig module settings > Path to templates = templates/ In your case, I would use the following: site/templates/home.twig <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>{{ page.title }}</title> </head> <body> <h1>{{ page.title }}</h1> {{page.body}} <hr> <p>myvar:{{myvar}}</p> </body> </html> site/templates/home.php <?php $view->set("myvar", "my test var"); Hope that helps
-
Hi @justb3a, I just noticed when I upgraded to the latest version of TemplateEngineTwig that I'm now getting an error message. I think the TwigExtensions vendor library might possibly need to be upgraded in this module as well. On https://github.com/twigphp/Twig-extensions it say's it is up to 1.5.1. This module includes 1.3. TemplateEngineTwig upgraded Twig from 1.24.2 to 1.35 I just manually tried to "composer update" in the TwigExtensions module directory, but now I get a different error: Do you have any ideas as to why I'm getting these errors?
-
Thanks for doing this @adrian. I use it. To me that was the one main missing feature of this module. I think other people have also asked for multilingual support, but maybe that can be fulfilled with https://github.com/ryancramerdesign/FieldtypeURLLanguage in combination with this module?
-
Thanks @gerritvanaaken for the explanation. The "depth" feature is where your RepeaterMatrix items can be indented to be hierarchical. See https://github.com/ryancramerdesign/ProcessWire/issues/1906
-
Thanks for sharing! I would be interested to hear how you used the RepeaterMatrix fields? What types did you create? Did you use the depth feature? How did you make the mega menu with Processwire?
-
Any javascript errors in the web browser's console? Does it happen with other web browsers? Try disabling AOS Tooltips, do you still see the problem?
-
Community wise... I would like to see more examples of **How** people built their Processwire websites. It would be awesome if ever so often we could some how host a Google Hangout or use https://www.crowdcast.io/ to pick volunteers from the community to showcase their Processwire websites and do a site walk through. Here's an example of something similar https://zendev.com/2017/08/31/grids-grids-and-more-grids.html where they talk about Zurb's Foundation CSS/Javascript Framework. They called it Foundation Open Chat https://zendev.com/category/foundation-open-chat.html As you can see they can be embedded into a blog post as well. Well I just saw there is a cost to using crowdcast.io. That might not work, but maybe Google Hangouts or YouTube Live would? I believe they do something similar with CraftCms https://straightupcraft.com/hangouts During those sessions we could: ask questions about the site or Processwire? get to know more about a person behind the avatar? talk about the site's pain points and how the developer was able to work around it? cool module walk throughs or new module showcase? talk about how the site is output? does it use a template engine? Twig, Latte, Mustache, PHP, Processwire's Delay Output Method, etc.. talk about the site's tree structure? talk about the site's hosting environment? ...Just some thoughts I had
-
Here's a document I've been working on https://docs.google.com/document/d/1peY-FUpevKgy87cKOxIVz8jwcv2-3c61zbiJr3QKO6c/edit?pli=1# Flexible Page Layouts in Processwire. It's still rough, but I've been using it to help collect all my thoughts/notes on all the ways to achieve flexible layouts in Processwire. I love hearing about other ways people are structuring their websites. Here is another document that helps me wrap my head around some of the different field types in Processwire. (all on one page) https://docs.google.com/document/d/1VcSluQyjl9AhMBcJA3R4-uZb9IUYdKXGSh7Phclf34Y/edit?pli=1#heading=h.ysvx3k7ssuw7 Hope it helps someone.
- 25 replies
-
- 13
-
The upgrade schema errors should now be fixed now. I did see another problem. It looks like when you output a map on the frontend, it includes both leaflet 0.7.3 and leaflet 0.7.7 css and javascript files from unpkyg.com. I pretty sure this could cause problems. In MarkupLeafletMap.module init() line 109... If I comment out the following lines: $this->config->styles->add('https://unpkg.com/leaflet@0.7.3/dist/leaflet.css'); $this->config->styles->add($assetPath . "assets/leaflet-markercluster/MarkerCluster.css"); $this->config->styles->add($assetPath . "assets/leaflet-markercluster/MarkerCluster.Default.css"); $this->config->scripts->add('https://unpkg.com/leaflet@0.7.3/dist/leaflet.js'); $this->config->scripts->add($assetPath . 'assets/leaflet-markercluster/leaflet.markercluster.js'); $this->config->scripts->add($assetPath . 'assets/leaflet-providers/leaflet-providers.js'); $this->config->scripts->add($assetPath . 'MarkupLeafletMap.js'); then leaflet 0.7.3 no longer loads its js and css. It will only load leaflet 0.7.7 js and css. I wonder if those lines are really needed for anything?
-
Tried on another site... The exact error I get is "Fatal Error Class 'WireData' not found" I get this error directly after I click on the Upgrade link. Hope that helps
-
I just upgraded a site to the latest version of this module and ran into some problems. When I tried to upgrade the module via the ProcessWireUpgrade module, it showed a Fatal error. I think it was WireData class undefined (Can't remember exactly). It kept saying it was on a the 2.x version instead of the 3.x version. So then I proceeded to just download it from github. After I did that, the error went away. Now on one page the leaflet map loads on the frontend, but it doesn't load any pins on the map like it did before. Here is the error in Chrome's console: On another frontend page the map doesn't load at all and I see this error in the console: If I edit the page, I see the following error "WireDatabasePDO: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_cleanup_location.raw' in 'field list'". So I checked the table "field_cleanup_location" and it was missing a "raw" column. So maybe the update script didn't run correctly? PW 3.0.90, Google Chrome-Mac, I also refreshed the modules page and cleared the compiled files. Anybody have any ideas?
-
I don't think horizontal tabs inside of repeaters are supported right now. See https://github.com/processwire/processwire-requests/issues/93 and https://github.com/ryancramerdesign/ProcessWire/issues/1903#issuecomment-231403514
-
Maybe you could somehow hook into a RepeaterMatrix field to add some kind of css class like "always-open" to the RepeaterMatrix items that are of type "Text" or "Body Text?" That way those items would always be expanded while all the other items will be collapsed? Bard is nice, but I don't think it supports a hierarchy with depth like RepeaterMatrix does. Here is a discussion where they talk about adding css classes to RepeaterMatrix items.
-
Ya, that does sound strange. As recommended by Adrian, I would try it on kai.test/processwire/
-
I was able to login, but I don't have my computer right now. Can you try kai.pw/processwire/ Note the trailing slash
-
User with "user-admin-all" can't make another user an "editor"
gmclelland replied to Sergio's topic in General Support
I've never tried this before, but quickly browsing the documentation at https://processwire.com/blog/posts/new-user-admin-permissions-automatic-version-change-detection-and-more-2.6.10/#new-user-admin-permissions leads me to ask you the following: Stupid questions... Did you give the "editor" role the "user-admin" and "user-admin-editor" permission? It would probably be better to create a new dedicated role "editor-managers" and assign the "user-admin-editor" and "user-admin" permissions instead of trying to have the editor role do this all? -
I believe you are supposed to put that information in site/config.php
-
Maybe it's a browser caching issue? I wonder if a hard reload in Chrome would fix it? By that I mean hold the Shift key and click on the Reload button. When it's borked, can you open another browser and see the exact same problem? Have you configured any other static asset caching in .htaccess file or in something like cloudflare.com? Just some thoughts..
-
Does it happen if you use your browser's incognito window? That would load the browser without any extensions/addons. What modules are you using?
-
Module HelperFieldLinks - field and template edit shortcuts
gmclelland replied to Soma's topic in Modules/Plugins
@lpa - You could replace this module with https://github.com/rolandtoth/AdminOnSteroids . See https://github.com/rolandtoth/AdminOnSteroids/wiki/FieldAndTemplateEditLinks -
Thanks for sharing your solution