Jump to content

Mont

Members
  • Posts

    48
  • Joined

  • Last visited

Everything posted by Mont

  1. I have enjoyed using this site profile. I have learned a lot about processwire by using it. Thank you. When I turn on error reporting I get the following error on multiple installations. Code $browserTitle = ($homepage->seo_title)? $homepage->seo_title : $page->title; if ($page->seo_title) $browserTitle = $page->get('seo_title'); $seoMetaDescription = ($homepage->seo_meta_description)? $siteSetting->seo_meta_description : ""; if ($page->seo_meta_description) $seoMetaDescription = $page->seo_meta_description; I'm inclined to just ignore it but thought I would still ask.
  2. I feel this video covers this topic quite nice as well. Enjoy. https://www.youtube.com/watch?v=8Gv0H-vPoDc The Its vs. It's is at minute 1:20
  3. I am one who is proud of his possessive S skillz. I do have to admit that the its is a hard one. Here is a good link that explains it. http://www.businesswritingblog.com/business_writing/2006/05/its_its_or_its_.html Now let's talk about had had.
  4. I have a events_footer.inc that outputs children pages by the id number. The id number is from a pagefield id representing the event. I would like to replace with this information from the child page: $page->event->last()->title; my events_footer.inc has this code: if($page->numChildren) { echo "<ul class='nav'>"; foreach($page->children as $child) { echo "<li><p><a href='{$child->url}'>{$child->event->last()->title}</a><br /> <span class='summary'>{$child->summary}</span></p></li>"; } echo "</ul>"; } Edit: SOLVED! I am an idiot. Code was at the bottom of my template page not my footer.inc.
  5. Cyber Monday is a GREAT IDEA!!!!
  6. I camped out all week in front of his store to get Form Builder. Can't wait to use it.
  7. I am looking to display Scorecards on a rider_profile.php page. I am using a event_results.php page that has a pagetable field that generated the scorecards. The settings of the pagetable field has the pages being created under a page called scorecards. There are going to be multiple cards throughout the year for each rider depending on how many events they attend. Since there are multiple cards per rider I set the pagetable setting for Automatic Page Name Format to Ymd:His to create different folders for each scorecard. When I did that my code below doesn't work of course. How do I search the children folders? I am using $pages so I don't think I can use children() . $event_hx = $pages->get("/2014-season/scorecards/")->find("template=scorecard, Competitor~=$rider"); foreach($event_hx as $hx) echo "<li><a href='{$hx->url}'>{$hx->Event_Name}</a></li>"; Link to Dr Frankenstein's monster. EDIT: I noticed this thread suggested by the forum as related and changed the code to below and it works. $pages->get("/2014-season/scorecards/, include=all")
  8. Success!!! Thank you Nico. Sorry to hijack this thread.
  9. Worked for me also. Now I am using it as practice on how to update Processwire. Crosses fingers.
  10. When I did that, they did not show up in the drop down:
  11. I right click on the image that is on the next screen and it shows it being in /site-beginner
  12. I also cannot get it to install on a 2.5 installation. I have copied the files to site-default folder and when I go to install page the default is not showing, only the other profiles.
  13. Ivan, thank you for your great advice. It worked but I had to remember to add what Adrian had said. I also changed first to last because I wanted the latest Class the rider rode. Here is the code I ended up using, I used both examples Ivan gave to see if they worked. <table> <thead> <tr> <th>Rider Name</th> <th>Promoting Club</th> <th>Class</th> <th>M.O.T.A. Pt</th> </tr> </thead> <tbody> <?php echo "<tr>"; echo "<td>$page->title</td>"; echo "<td>".$page->promoting_club->last()->title."</td>"; echo "<td>" . $page->Classes->last()->title. "</td>"; echo "<td>$page->mota_pts</td>"; echo "</tr>"; ?> </tbody> </table> The support on this forum is great and truly appreciated. :
  14. Thanks Adrian! Worked as soon as I took it out of the <td>'s. Ivan thank you also. Great support here.
  15. I am using page fields and was getting the page_id also. I tried Ivan's suggestion and it returned the page id number and ->title. It also adds another page id when I change the selection. (example below) The code I am using is: Am I using the page field in the wrong context? I do not want to use it like the example video. I want to select a class that the rider is in e.g. Expert, Advanced, Sportsman..... and display it in the template.
  16. Looking at the search.php // Search the title and body fields for our query text. // Limit the results to 50 pages. $selector = "title|body~=$q, limit=50"; changing ~= to *= no luck to just = no luck %= Yeay it works! Woooooo Hooooo. Thanks for the idea!!!
  17. Yes I have tried them. It was originally set to *= I believe. I just noticed that this page is for admin use. Where would I look for front end?
  18. I am having issues with the search function when searching by numbers. I need to search items like: 18-29-201 201 201.1.2 I am using admin to edit /wire/modules/Process/ProcessPageSearch/ProcessPageSearch.module and have added the fields to search and also tried changing the operators to =Equals and ~= Contains all the words with no luck or success. Am I in the right area? Cache?
  19. Been using PW for a couple weeks now and this video sums up my feelings!
  20. I am looking for developer to help create an online scoring/standings system for the sport of Observed Motorcycle Trials. I am new to PW and found it based on my needs of this project. I have created one site so far with PW and I believe it is what I need using Profields and ListerPro. I have an example of a scoring system that is currently being used that uses an old version of Access. The example given is a different league and ours would be slightly different. I would like to create and events page that you could either register for or be added to by an event promotor. There would be a profile page for the competitor that would list his/her standings. Each event would have classes that riders/competitors compete in e.g. Expert, Advanced, Sportsman, Intermediate, Novice. The Rider would turn in his card at the end of the competition and the promoter would put the data into the system. An example of a competition card.(three cards on one sheet for printing) The idea of Motorcycle Trials is to complete a section without putting your foot down. Every time you put a foot down(dab) is a point. Our events usually has 10 sections in one loop and we do four loops for a total of 40 sections. The scoring is 0 for a clean(no dabs) a 1, 2, 3 or a 5 for failing due to a stall, missed marker or other reason. We then add up the scores and lowest points wins his/her class. Tie breakers are broken by the number of cleans. The sport is big in Europe but here in the states it is fairly unknown. You can PM me through this site or even call my Cell toll free in US at (888) 418-5030. Kind Regards, Mont
×
×
  • Create New...