Jump to content

gmclelland

Members
  • Content Count

    526
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by gmclelland

  1. Hi Adrian, Just upgraded to the latest version and noticed an error in the "Request Info" panel: ErrorException: Trying to get property of non-object in /Users/glenn/websites/mysite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/panels/RequestInfoPanel.php:643 Stack trace: #0 /Users/glenn/websites/mysite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/panels/RequestInfoPanel.php(643): Tracy\Bar->Tracy\{closure}(8, 'Trying to get p...', '/Users/glenn/we...', 643, Array) #1 /Users/glenn/websites/mysite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/panels/RequestInfoPanel.php(458): RequestInfoPanel->getFieldArray(Object(ProcessWire\Page), Object(ProcessWire\Field)) #2 /Users/glenn/websites/mysite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Bar.php(159): RequestInfoPanel->getPanel() #3 /Users/glenn/websites/mysite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Bar.php(108): Tracy\Bar->renderPanels() #4 /Users/glenn/websites/mysite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Debugger.php(293): Tracy\Bar->render() #5 [internal function]: Tracy\Debugger::shutdownHandler() #6 {main} I tried refreshing the modules but it didn't make any difference. ProcessWire: 3.0.98 PHP: 7.1.12 Webserver: Apache/2.4.29 (Unix) MySQL: 5.7.10-log
  2. Thanks @Wanze, I haven't ran into any issues so far, but that's good to know. The only thing I'm currently stuck on right now is trying to figure out how to get the TwigExtensions module to work with the latest versions of TemplateEngineTwig. It was working previously before TemplateEngineTwig 1.1.0. Any help testing is appreciated. Are you using TwigExtensions library at all in your projects? If not, don't you need the date functions and text truncating functions? After I get my sites upgraded to the latest version of TemplateEngineFactory and TemplateEngineTwig, I can start checking into a possible bug I think I see with the new changes to handle Wire404Exception. Side note: I really appreciate the work you've done on this module. To me it is so much cleaner looking at Twig code than looking at a php mixed with html. I like that in Processwire, I can simply build up my variables in the template to be sent to the view. That way my views(Twig files) are very simple and contain simple logic only.
  3. Nevermind. Rookie mistake. I just needed to check if the post.template == "calendar-posting" before trying to access post.event_description.
  4. I have two templates: basic-page title body calendar-posting title event_description I'm trying to build a search page that can search for text in any of those fields. Right now my selector looks like "title|body|event_description*=support, limit=3". It correctly returns a Page Array when I perform a search. I can output the page's title just fine, but the problem happens when I try to output the event_description field. I get the following error: User Error Exception: An exception has been thrown during the rendering of a template ("Method Page::event_description does not exist or is not callable in this context") in "search.twig" at line 50. (in /Users/glenn/websites/mysite/wwwroot/site/assets/cache/FileCompiler/site/modules/TemplateEngineTwig/TemplateEngineTwig.module line 110) Note: I am using the TemplateEngineTwig and TemplateEngineFactory modules. In my search.twig {% for post in paginated_items %} <article class="card post"> <div class="card-section"> <h3> <a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> </h3> <div class="meta"> <p>{% if post.editable() %} <a href="{{ config.urls('admin') }}page/edit/?id={{ post.id }}">Edit</a> {% endif %} </p> </div> {% if post.event_description %} <div class="post-content">{{ post.event_description|striptags('<style>')|truncate(440, false, "...") }} <a class="read-more" href="{{ post.url }}" title="{{ post.title }}">{{ 'Read More' }}</a> </div> {% endif %} </div><!-- card-section --> </article> {% endfor %} Anyone have any ideas as to what could be the cause? If the returned PageArray from my find returns two items, I should be able to access and output any of those page's fields right?
  5. Although Drupal specific, https://www.chapterthree.com/blog/slice-template this explains the concept of page slices. "It’s a design structure that enables site authors to create web pages out of modular, horizontal components that span the width of the browser." Basically I was just wondering if what you were making would allow an editor to build these page slices that contain columns that contain components/widgets?
  6. In my comment, I was referring to something like this: See how the row background spans all the way to the edge of the screen? Some people call these page slices. In the example image there is two page slices that each contain their own columns. One has a white background the other has a grey background.
  7. Thanks for sharing your video @Jonathan Lahijani! In case your interested, I added your technique to my "Techniques for flexible page layouts in Processwire" document https://docs.google.com/document/d/1peY-FUpevKgy87cKOxIVz8jwcv2-3c61zbiJr3QKO6c/edit?usp=sharing
  8. 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?
  9. 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
  10. @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.
  11. 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
  12. 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?
  13. 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?
  14. 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
  15. 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?
  16. 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?
  17. 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
  18. 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.
  19. 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?
  20. 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
  21. 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?
  22. 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
  23. 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.
  24. Ya, that does sound strange. As recommended by Adrian, I would try it on kai.test/processwire/
×
×
  • Create New...