-
Posts
436 -
Joined
-
Last visited
-
Days Won
2
Everything posted by zoeck
-
When you look at the "_uikit.php" file at line 822, it's this code snippet: $categories = $page->get('categories')->each($categoryIcon . "<a class='uk-button uk-button-text' href='{url}'>{title}</a> " ); PW is looking for a "categories" field (page reference or something?) on your page (or template ? ), and apparently you don't have that or it's not filled in ("Call to a member function each() on null")
-
I'm not sure... never used this profile ? But have a look at this line: https://github.com/processwire/site-regular/blob/c2660b076b7413493b0c44d3057968066bd9236d/templates/_uikit.php#L175 Just change it to the "normal nav item class"?
-
I'm not sure, but i think you can add the "header" with: 'header' => true, // - `header` (string|Page|bool): Nav header string, Page object, or boolean true to use Parent for header (default=''). Just have a look at the _uikit.php file: https://github.com/processwire/site-regular/blob/c2660b076b7413493b0c44d3057968066bd9236d/templates/_uikit.php#L50
-
inside a selector you have to use a timestamp ? Just use strtotime without date(), i think it should work ? <?php $today = strtotime('tomorrow'); $pages->find("template=page, sort=datetime, datetime<=$tomorrow");
-
Hello, yes, it's called ImportPagesCSV: https://processwire.com/modules/import-pages-csv/
-
There is a relatively new official solution ? https://processwire.com/blog/posts/language-field-export-import/
-
There's also a paid pro module "FormBuilder": https://processwire.com/store/form-builder/
-
RockFrontend 🔥🚀 The Powerful Toolbox for ProcessWire Frontend Development
zoeck replied to bernhard's topic in RockFrontend
When I have a good example ? But it is significantly less code You mean {var $site->color = 'blue'} ? I forgot the var yesterday and wondered why it does not work ? Thanks for the infos! -
RockFrontend 🔥🚀 The Powerful Toolbox for ProcessWire Frontend Development
zoeck replied to bernhard's topic in RockFrontend
I am currently reworking some old templates, and there's some PHP code in it ? I was just surprised that the php code is not executed... But I initially thought I did something wrong ? -
RockFrontend 🔥🚀 The Powerful Toolbox for ProcessWire Frontend Development
zoeck replied to bernhard's topic in RockFrontend
I want to use RockFrontend and Latte in my first "real" Project, but now I have a question about RockFrontend/Latte: If I use $rockfrontend->render() with a .latte file, is it no longer possible to use "normal" PHP inside of the .latte file? -
There's no "ready to use" export function in processwire, but you can easily create one like described in the posts of AndZyk. But I think you have not understood how Processwire works ? a simple introduction can be found here https://processwire.com/docs/tutorials/hello-worlds/ The important thing is that you understand that the export must be programmed by you via php. The module "BatchChildEditor" simplifies the whole thing only a little. In the module description there is also a simple example: https://processwire.com/modules/batch-child-editor/ But you need an understanding of how PW is structured (Everything is a page, every page has a template, every template has fields, every field has a certain type).
-
How to save a page after other page becomes hidden?
zoeck replied to Clarity's topic in General Support
I think the statusChanged hook is the right one for this ? (or statusChangeReady) Then check if the status is changed to hidden... -
Do the child pages also have the custom page class? So in your example the template "overview"? Because the child pages are pages of their own.
-
@bernhard This is the function in the module file: <?php /** * Get changed watchfiles * @return array */ public function getChangedFiles() { $changed = []; foreach ($this->watchlist as $file) { // remove the hash from file path // hashes are needed for multiple callbacks living on the same file $path = explode(":", $file->path)[0]; $m = filemtime($path); /////////// LINE 1282 if ($m > $this->lastrun) { $changed[] = $file->path; $file->changed = true; } } return $changed; } It's this Line: $path = explode(":", $file->path)[0]; Explode the Path -> it's just C (should be "'C:/apache2/htdocs/site/migrate.php'") When i remove the explode the "C" Error is gone, but the repeater error remains.
-
I have a problem with the latest version. When I use the shortcuts with external links, I always get the following error: I think the check doesn't fit that way (line 226): if (!$page || !$page->url) { Because if "$page" does not exist, then "$page->url" will cause an error. Also added an issue on github ?https://github.com/daun/processwire-dashboard/issues/41 /edit: the new version 1.5.2 fixed this bug ? thanks!
-
Really? I think the api search function is good ? Just search for „save field value“ and the First result is setAndSave… https://processwire.com/search/?q=save+field+value&t=API https://processwire.com/api/ref/page/set-and-save/
-
Just install the less Module ? https://processwire.com/modules/less/
-
Just delete the php file? FTP, Explorer, Finder, SSH, … there are many options ?
- 2 replies
-
- template
- templatefile
-
(and 1 more)
Tagged with:
-
Another German Processwire „Review“ “When web development has to be quick“: https://www.golem.de/news/processwire-wenn-webentwicklung-schnell-gehen-muss-2209-167784.html
-
RockFrontend 🔥🚀 The Powerful Toolbox for ProcessWire Frontend Development
zoeck replied to bernhard's topic in RockFrontend
I had problems with the latest RockFrontend version also under laragon/Windows. But could not analyze it yet exactly what it is (Corona, vacation, etc. ? ). But the topic paths has always been a problem under Windows ? @bernhard But on my Mac it works without problems under DDEV.