-
Posts
485 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Gideon So
-
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 Is the field "year" a page reference field? If so, how do you set up the field? Gideon
-
Weekly update – 29 December 2023 – Happy New Year!
Gideon So replied to ryan's topic in News & Announcements
Thanks @ryan. Thanks everything you have done. Happy new year to you and this amazing community from afar. Gideon So -
@stefan1981 If it is possible, show us the content of home.php file. Gideon
-
Accessing $pages through API in another module (LoginRegister)
Gideon So replied to Krit65's topic in API & Templates
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 -
Accessing $pages through API in another module (LoginRegister)
Gideon So replied to Krit65's topic in API & Templates
Hi @Krit65 Try $terms = wire('pages')->find('template=term-translation'); Gideon -
Hi @webdecker Thanks. I did it with the ProcessWire way. Gideon
-
Hi @da² I am using 3.0.231. I will test again with 228. Gideon
-
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
-
i @da² Look like this only works when the page file field is set 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
-
@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
- 1 reply
-
- 1
-
This is really impressive. A very nicely done piece of art work. Great job, @bernhard. Gideon
-
Hi @Murray https://processwire.com/modules/wire-mail-smtp/ Try this module.
-
[SOLVED] Trouble Comparing id Property of PageArray Objects
Gideon So replied to Boost's topic in Getting Started
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 -
Hi @ties You don't have the right to add any field / template. Do you know the username which is a superuser or you need to contact your system administrator of the website. Gideon
-
@szabesz Can't wait to see your work with unpoly. Gideon
-
unpoly is good! I used it in some of my project and I really love it. The tailwindcss standalone CLI is another wonderful tool, too. Gideon
-
Hi @clsource I think this is a good idea. Gideon
-
[SOLVED] Error: Exception: SQLSTATE[HY000] [1045]
Gideon So replied to Boost's topic in General Support
Hi @Boost, It is very obvious that the site is failed to connect to the database. Pleaae check the database username and password and then change them in config.php accordingly. Gideon -
@cpx3 Just out of curiousity, how do you embed the formbuilder form?? Gideon
-
Displaying created dates instead of last modified dates?
Gideon So replied to Roadwolf's topic in General Support
Hi @Roadwolf Which site profile did you install?? Gideon -
Hi @Neue Rituale I will give your suggestion a try. Will report back. Gideon
- 17 replies
-
- fieldtype
- inputfield
-
(and 1 more)
Tagged with: