-
Posts
939 -
Joined
-
Last visited
-
Days Won
9
dotnetic last won the day on January 20
dotnetic had the most liked content!
Contact Methods
-
Website URL
https://dotnetic.de
-
Skype
jens.martsch
Profile Information
-
Gender
Male
-
Location
Münster, Germany
dotnetic's Achievements

Hero Member (6/6)
1.1k
Reputation
-
Yes exactly but with an easier syntax (imho), but dump is just one example. I don't know anything about the caching, and yeah it is bad that not the real file is shown in the dump
-
I used Smarty and Twig before, and have to say, that Latte feels much better, and the conditional rendering of elements is a great simplification.
-
This is just syntactic sugar and uses Tracys debug bar, similar to using `{bd ($myvar)}. Using things like tags and filters are also syntactic sugar. {$page->intro|noescape} // or <div n:if="$features"> Tags have some advantages over plain PHP in the template context. For example they are chainable and easy to read/write: {$page->intro|noescape|upper} // outputs unescaped HTML content in uppercase
-
I did not upgrade yet, I am in the process of integration Latte v3 into the TemplateEngineLatte renderer, but still need time for it. Right now I am using v2
-
dotnetic started following PW install option in docker , Why I love the Latte Template Engine , cannot see the GET variables in the url but in the developer tool. and 4 others
-
Or just use {dump $page->title} I think you can drop the parentheses after items or content. Also you might want to use a n:if clause on the ul, so the markup is discarded if there are no items. <ul n:if="$block->items"> <li n:foreach="$block->items as $item"> <a href="#">{$item->title}</a> <div>{$item->content|noescape}</div> </li> </ul> I am also using Latte in an actual project and love it so far. For the integration into ProcessWire I am using TemplateEngineFactory. It also has a Latte renderer (but with Latte 2 atm, actual version is 3).
-
cannot see the GET variables in the url but in the developer tool.
dotnetic replied to fruid's topic in General Support
Somewhere in your template where you expect the variables to appear try the following code: print_r($_GET); // or echo $_SERVER["QUERY_STRING"]; What do they output? Also you might want to take a look at this module PaymentPaypal (PaymentPaypal) - ProcessWire Module- 1 reply
-
- 1
-
-
I think you could use just $page->references('template=adebate') to get the debates that reference this speaker. See the blog post ProcessWire 3.0.107 core updates
-
MarkupSEO - The all-in-one SEO solution for ProcessWire.
dotnetic replied to Nico Knoll's topic in Modules/Plugins
Hey Adrian, can you tell why are you unhappy with SeoMaestro? I just installed it yesterday in a new site and really like it. Are you missing some features? -
The module wasn't working because the home template had a setting of "allow url segments", so the URL hook was not working. Without the setting it works fine.
-
The easiest and best way to setup this stack in my opinion is ddev. DDEV is an open source tool that makes it dead simple to get local PHP development environments up and running within minutes. It's powerful and flexible as a result of its per-project environment configurations, which can be extended, version controlled, and shared. In short, DDEV aims to allow development teams to use Docker in their workflow without the complexities of bespoke configuration. Me and @bernhard use it, and are very satisfied. I am using it on Windows 11 inside of WSL2. But it also runs on Macs and Linux machines.
-
German language pack (de_DE) with formal salutation
dotnetic replied to dotnetic's topic in ProcessWire Language Packs
Just released the new version of the german language pack for stable version 3.0.200