Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

25 Excellent

1 Follower

About Jon

  • Rank
    Sr. Member

Profile Information

  • Gender
  • Location
    Oban, Scotland

Recent Profile Visitors

1,673 profile views
  1. Brilliant thank you that's perfect saves a lot of effort 🙂
  2. Hello, I have a live and staging site using the same database is there a way of using the live asset folder instead of uploading images to the staging and vice versa. Iam only really updating theme files so would like to keep any images rather than keep having to sync both assets folders. Cheers Jon
  3. Yes just double checked and that's enabled /news pagination work just if the year is used. Tried whitelisting the variable but getting the same results
  4. I tried this and get the same results domain.com/news/2018/page2 Just reading up on whitelist now.
  5. Hello All, Iam having a slight problem with pagination, Ive setup a news page with pagination which works fine. I have also setup a segment that list all the posts for a set year using the same template. for example news/2018 when I try and display page2 I get a 404 any idea? The code Ive used. <?php if ($input->urlSegment1) { $start = strtotime(date("{$input->urlSegment1}-01-01")); $end = strtotime(date("{$input->urlSegment1}-12-31")); $results = $pages->find("template=news-item|news-item-right-gallery|news-item-left-gallery, news_date>=$start, news_date<=$end, limit=15, sort=-news_date"); }else{ $results = $pages->find("template=news-item|news-item-right-gallery|news-item-left-gallery, limit=15, sort=-news_date"); } foreach($results as $result) {?> News template <?php } $pagination = $results->renderPager(); echo $pagination; ?> Cheers Jon
  6. Hey, Great module just wondering if you table to rename the submit button value? or do I need to do this within the module files?
  7. Jon


    Nope Iam no longer sure, turned out to be 5.6 set in cpanel and 7.2 in whm. 🤐 Thanks for your help 🙂
  8. Jon


    Hello, Iam just trying to install the module but getting the following error any ideas? :- "Parse Error: syntax error, unexpected '?' (line 50 of /home/skyewalkerhostel/public_html/site/modules/SeoMaestro/InputfieldSeoMaestro.module.php) " Using PHP7.2 & PW 3.0.128
  9. Hello Adrian, Sure does! ended up going with $page->numReferences; after updating to the latest version of PW Thanks
  10. Hello All, I'am struggling a bit (or maybe approaching this wrong). I've creating a simple events section which has a number of categories setup as pages. I've used a multiple Page Reference in the individual events to selects which categories the event may fall under I'am in the process of setting up sidebar which lists all the categories which is fine. Now i would like to have the number of events in brackets at the end. However I cant seem to check the page reference for the category page ID, Ive used the following code :- <?php $cat = $pages->find("template=event_cat, sort=title, include=hidden"); foreach ($cat as $cats) { $count = $pages->count("template=event, event_cat*={$cats->id},"); echo "<li class='uk-active'><a href='{$cats->url}'>{$cats->title} ({$count}) </a></li>"; } ?> Is it something to do with using the ID with *= Cheers Jon
  11. Jon


    Hello Ethan, Nothing in the logs I've now setup sendinblue and this has resolved the issues so I assumes its 365 like you suggested. The limit would be odd though as its not sending out that many emails Cheers Jon
  12. Jon


    Hello, Ive but using the module for a few month now (its great thanks!) Over the last couple of weeks I have been experiencing problems. Iam using a office 365 exchange account, which just randomly stops sending. If I run the test is setting it fails. After that if I deselect TLS save a then retick TLS save and test it works again. Any ideas what may be causing this?
  13. Hello, just wondering if the following is possible ive setting up a uikit menu. I have adjusted the inter_tpl to wrap the some additional DIVs around the UL. Which works fine I also need to have the inner inner UL with a different DIV around them or at the very least just default back to a UL without the additional tags. Ive tried the following code but this seems to close the the first UL of the menu after the first dropdown occurrence $menu->addHookAfter('getInnerStringOpen', null, 'customInnerString'); function customInnerString(HookEvent $event){ $item = $event->arguments('page'); if($item->numChildren(true) && count($item->parents) > 1){ $event->return = '<ul class="testtest">'; } } Iam trying to achieve this <ul> <li>Level 1 Nav</li> <li class="has-sub">Level 2 <div class="submenu"> <ul class="has-sub"> <li>Item 2.1</li> <li class="has-sub">Level 3 <div class="anothersub"> <ul> <li>Item 3.1</li> </ul> </div> </li> </ul></div> </li> </ul>
  14. Hello Bernhard, Thanks that was the issue! Didn't think of clearing the cache for that issue!!! Many Thanks Jon
  15. Hello All, Probably something simple but I cant for the life of my figure out what ive done! I have a live site set to default to HTTPS:// via .htaccess. I have taken a copy of the site defaulted the .htaccess file however the site is still adding HTTPS in front of the local path any ideas what ive missed? Iam using WAMP. I have installed a blank PW site to confirm that it related to the site rather than wamp setup Cheers Jon
  • Create New...