Jump to content

JerryDi

Members
  • Posts

    42
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

JerryDi's Achievements

Jr. Member

Jr. Member (3/6)

11

Reputation

  1. Thanks, I have resolved the layout issue now by changing: <link rel="stylesheet" href="css/style.css"> to <link rel="stylesheet" type="text/css" media="all" href="<?php echo $config->urls->templates; ?>css/style.css" /> and similar for plugins
  2. Hi, I am running on PW ver 3.0.229 with site-blank default I want to implement a fairly simple blog-style template using 2 columns incl a right hand sidebar Creating a template using my html and css does not work properly (sidebar content shows below main content) although I know the html is valid Should I be approaching this in a different way? Eg change site profile first Thanks Jerry
  3. have fixed it now 🙂 thanks for your help, v much appreciated!
  4. thank you! I have done this and can see from the home page that the migrated database can be seen by PW Just one problem....for some reason my admin login doesn't work on the new server. I've only changed the database name in the config.php file Any idea how I can resolve that? Many thanks
  5. I have tried to use the Duplicator module, however despite my PHP ver 8.2 showing that the zip extension is enabled, Duplicator says it's not present and won't create a package. As it stands I am faced with being totally unable to move to a new server. Any guidance would be much appreciated
  6. Hi yes, I've changed the setting for the new database and also the tableSalt settings I installed Processwire first, then swapped out the Site folder as per the process at the top of this topic thanks Jerry
  7. I've followed the process meticulously to manually move to a new server I now find that my login won't work despite replacing the config file from the original install Any advice please? thanks J
  8. I am using cPanel, PHP 8.2 with php_zip enabled. PW 3.0.229 However, when running Duplicator I see this and it won't create a package. Would appreciate some advice....thanks
  9. thanks, I've done that and have installed Duplicator
  10. I need to move my site to a new server and have installed Duplicator However, when I Refresh modules I get error message as below meaning I can't access Duplicator. Any advice welcome Parse Error: syntax error, unexpected '''' (T_CONSTANT_ENCAPSED_STRING) (line 486 of /site/modules/Media Lister/ProcessMediaLister.module)
  11. thank you, very useful.
  12. I would appreciate some guidance on how to manage images. My project is a county golf archive. It has (currently) around 1000 player records, 500 championship records, 1000 match records. I have about 2,200 images, and this will increase by at least 200 per year. These images might be of a single player, so these are relevant to that player's page and maybe also a championship page or match he/she was playing in. But I also have many images that include multiple players eg team photo, relevant to multiple players and a match or championship. I would like pages for players, championships and matches to show related images for that player. What would be the best way to structure this? I have considered creating a separate template for all images utilising page reference fields to link to players, championships etc, but I don't know if this would impose a heavy overhead on the database and impact performance as the archive grows. Or should I simply have image fields in players, matches, championships templates, and put tag data into image fields to create the links? Many thanks Jerry
  13. Thank you everyone, your help is much appreciated. It is working now apart from one of the columns [venue] where I have an if / else statement. I will look into that later. Jerry
  14. I've used your syntax but it's produced error messages again: Notice: Undefined variable: countymatch in /home/w5j4zigjq498/public_html/processwire/site/templates/year-summary.php on line 176 Warning: Invalid argument supplied for foreach() in /home/w5j4zigjq498/public_html/processwire/site/templates/year-summary.php on line 176 line 176 is: <?php foreach($countymatch as $match): ?>
  15. This is my code that attempts to output results to a table: <table border=1> <thead> <tr> <th>Opponents</th> <th>Venue</th> <th>Points for</th> <th>Points against</th> <th>Result</th> </tr> </thead> <?php $countymatch = $pages->find("template=county-match-result, year={$page->title} "); ?> <tbody> <tr> <?php foreach($countymatch as $match) ?> <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>"); } 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> </tbody> </table> and this is the code which I used to output to a list. This delivers all 11 matches perfectly, whereas I only get one with the table code <?php $countymatch = $pages->find("template=county-match-result, year={$page->title}"); foreach($countymatch as $match) { echo "<li><a href='$match->url'> $match->title</a></li>"; } ?>
×
×
  • Create New...