Jump to content

Gideon So

Members
  • Posts

    484
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Gideon So

  1. 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
  2. Hi @MarcC A very wild guess with only not much info from you. Do you check the html syntax? Gideon
  3. Hi @DrewPH There is no such Widget API. Gideon
  4. 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
  5. 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
  6. @bernhard You are the best. ? Gideon
  7. Hi @jeremie Then try this: <?php $items = $pages->find("template=artist")->reverse(); https://processwire.com/api/ref/wire-array/reverse/ Gideon
  8. Hi @jeremie May be <?php $items = $pages->find("template=artist", "sort=-sort"); Gideon
  9. Hi @floko What option do you have toninstall a module? Gideon
  10. @floko May be you can try this module https://processwire.com/modules/process-file-manager/ https://processwire.com/modules/process-file-manager/ Gideon
  11. 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
  12. Long time Linux user here. Over 20 years since Fedora Core 1. I am using fedora 40 now. Very happy.
  13. 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
  14. 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
  15. 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
  16. Hi @DV-JF Unfortunately, count is not a field. You cannot use your_reapeater.count in the showif setting. Gideon
  17. Me too. Very good description to Unpoly which is grestbfun to use. Gideon
  18. Hi @Paschalis It will be more helpful to get help if you can post your template code here. Gideon
  19. 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
  20. 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
  21. 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
  22. Hi @ayz Just login to the Digital Ocean control panel and restart the droplet should fix the error. Gideon
  23. 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
  24. 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
×
×
  • Create New...