-
Posts
484 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Gideon So
-
Hi @Edward Ver Welcome to the forum and the world of ProcessWire. Please try the following code. Please note the comments to see if you get the idea. <?php $showcase = $pages->find("template=work_details") ?> <?php foreach($showcase as $showcases): ?> <div> <?php foreach($showcases->work_hero_repeater as $whr): ?> // You need to loop therough the repeater because repeater is an arrray. <p class="pb-2 text-left"><?= $whr->work_hero_subheading ?></p> // Then call the field in the repeater item as you need" <?php endforeach; ?> </div> <?php endforeach; ?> Gideon
-
Hi @DrewPH There is no such Widget API. Gideon
-
Hi @Rob(AU) Maybe you can take a look at the api doc about $database https://processwire.com/api/ref/wire-database-p-d-o/ Gideon
-
Hi @kuba2 I am running a lot of processwire sites with PHP 8.3 and have no problem at all. Do you see any error message? It helps if you provide us the error message if any. Gideon
-
@bernhard You are the best. ? Gideon
-
Hi @jeremie Then try this: <?php $items = $pages->find("template=artist")->reverse(); https://processwire.com/api/ref/wire-array/reverse/ Gideon
-
Hi @jeremie May be <?php $items = $pages->find("template=artist", "sort=-sort"); Gideon
-
page disappears in frontend when link changes (url not updated)
Gideon So replied to floko's topic in Getting Started
Hi @floko What option do you have toninstall a module? Gideon -
page disappears in frontend when link changes (url not updated)
Gideon So replied to floko's topic in Getting Started
@floko May be you can try this module https://processwire.com/modules/process-file-manager/ https://processwire.com/modules/process-file-manager/ Gideon -
This is super true. Gideon
-
My test site just printed some content: what next?
Gideon So replied to Ade's topic in Getting Started
Hi @Ade Welcome to the Processwire world. I started with the following tutorial. It help me a lot and I was no PHP developer at all at that time Gideon -
Hi @Michael Lenaghan There is no "Mark as solution" button here as far as I know. You have to edit the post title and add "Solved" or whatever you think appropriate. Gideon
-
Hi @biber I don't think the sort() function is available to pageimages because pageimages is not WireArray. The result of the below line returns nothing. $images = $page->images->sort("iname_".$order, SORT_NATURAL |SORT_FLAG_CASE); Then foreach($images as $image) Give error because the variable $images is empty. Gideon
-
Show field only if repeater matrix field has content
Gideon So replied to Tyssen's topic in General Support
Hi @Tyssen You can add a hidden field to the template and then update the field whenever the page is saved by using a saveReady hook. Then you can use this field in the showif setting. Gideon -
Show field only if repeater matrix field has content
Gideon So replied to Tyssen's topic in General Support
Hi @DV-JF Unfortunately, count is not a field. You cannot use your_reapeater.count in the showif setting. Gideon -
Me too. Very good description to Unpoly which is grestbfun to use. Gideon
-
Hi @Paschalis It will be more helpful to get help if you can post your template code here. Gideon
-
Hi @KG60 $config->debug $config->debug = true Can you add the above to the config.php file to see if there is any error show when you login? Gideon
-
Hi @KG60 Go to site/assets/logs and check the error log to see if there is any useful information for you to investigate the problem. Gideon
-
Site is down after trying to open files locally from remote server
Gideon So replied to ayz's topic in General Support
Hi @ayz Yes, Seems that the mysql server doesn't start. You need to check the mysqld error log to see if there is a clue for you to solve the problem. Maybe check if mysql has the read/write right to /var/run/mysqld ? Gideon -
Site is down after trying to open files locally from remote server
Gideon So replied to ayz's topic in General Support
Hi @ayz Just login to the Digital Ocean control panel and restart the droplet should fix the error. Gideon -
Hi @mcollean I wonder why you ask a question about installing Moodle in this forum. I don't think you will get the answer you want. Gideon
- 1 reply
-
- 1
-
Hi @JerryDi, Try the follow code: <table border=1> <thead> <tr> <th>Opponents</th> <th>Venue</th> <th>Points for</th> <th>Points against</th> <th>Result</th> </tr> </thead> <tbody> <?php $countymatch = $pages->find("template=county-match-result, year={$page->title} "); foreach($countymatch as $match): ?> <tr> <td><?php echo "<a href='$match->url'> {$match->title}</a>"; ?></td> <td> <?php if ($match->home_away->title == 'Home'){ //echo $match->home_match_venue->title("<a href='{url}'>{title}</a>"); // I don't really understand this line, so I comment it and see if you get more results } else{ echo $match->away_match_venue; }; ?> </td> <td><?php echo $match->cheshire_points; ?></td> <td><?php echo $match->opponent_points; ?></td> <td><?php echo $match->match_result->title; ?></td> </tr> <?php endforeach; ?> </tbody> </table> Gideon