Jump to content

Gideon So

Members
  • Posts

    468
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Gideon So

  1. 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
  2. Hi @DV-JF Unfortunately, count is not a field. You cannot use your_reapeater.count in the showif setting. Gideon
  3. Me too. Very good description to Unpoly which is grestbfun to use. Gideon
  4. Hi @Paschalis It will be more helpful to get help if you can post your template code here. Gideon
  5. 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
  6. 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
  7. 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
  8. Hi @ayz Just login to the Digital Ocean control panel and restart the droplet should fix the error. Gideon
  9. 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
  10. 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
  11. Hi @JerryDi Is the field "year" a page reference field? If so, how do you set up the field? Gideon
  12. Hi @François Lacruche, Just move the processwire-master out of the webroot folder of https://www.domain-name.com. Then move EVERYTHING inside the processwire-master folder to the webroot folder of https://www.domain-name.com. This should work. Gideon
  13. Thanks @ryan. Thanks everything you have done. Happy new year to you and this amazing community from afar. Gideon So
  14. @stefan1981 If it is possible, show us the content of home.php file. Gideon
  15. Hi @Krit65 I don't use LoginRegister module but if you want to translate a string in your template file. You can try: <?php echo __("Your String"); ?> And then find the file in the backend translate tool (setup --> Languages --> Your Language --> Find file to translate --> find your template file) to transfer the string to other language. Gideon
  16. Hi @Krit65 Try $terms = wire('pages')->find('template=term-translation'); Gideon
  17. Hi @webdecker Thanks. I did it with the ProcessWire way. Gideon
  18. Hi @da² I am using 3.0.231. I will test again with 228. Gideon
  19. Hi @da² I don't know what is the difference between your settings and mine. The selector returns nothing at all even I set the file field to single file. Gideon
  20. i @da² Look like this only works when the page file field is set to single file. Gideon
  21. Hi all, Just come up to this need. Is it possible to find a page or pages by pagefile uploadName? Seems this is not working: $pages->find("file_field.uploadName%=sometext") Error: Exception: Property 'uploadName' not recognized in file_field Gideon
  22. @Robin S Wow!! What can I say. How great is this community and how helpful everyone here is. Thanks Robin. I can wait longer until the final solution comes. Gideon
  23. This is really impressive. A very nicely done piece of art work. Great job, @bernhard. Gideon
  24. Hi @Murray https://processwire.com/modules/wire-mail-smtp/ Try this module.
  25. Hi @Boost What is the setting of the author field in the current psge. I suppose it is a page reference field. How do you set up the field? Single select or asm select? Gideon
×
×
  • Create New...