-
Posts
468 -
Joined
-
Last visited
-
Days Won
1
Posts posted by Gideon So
-
-
Hi @DV-JF
Unfortunately, count is not a field. You cannot use your_reapeater.count in the showif setting.
Gideon
-
21 hours ago, szabesz said:
I am also a big fan of Unpoly, which (to me) IS "ProcessWire" but in the JavaScript world.
Me too. Very good description to Unpoly which is grestbfun to use.
Gideon
- 1
-
- 1
-
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
-
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
-
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
-
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
-
Hi @JerryDi
On 1/9/2024 at 2:53 AM, JerryDi said:$countymatch = $pages->find("template=county-match-result, year={$page->id} ");
Is the field "year" a page reference field? If so, how do you set up the field?
Gideon
-
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
- 1
-
Thanks @ryan.
Thanks everything you have done. Happy new year to you and this amazing community from afar.
Gideon So
- 4
-
-
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
- 1
-
-
-
-
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
-
-
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
-
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
- 1
-
This is really impressive. A very nicely done piece of art work. Great job, @bernhard.
Gideon
- 1
-
-
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
Show field only if repeater matrix field has content
in General Support
Posted
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