Peter Knight

  • Content count

  • Joined

  • Last visited

  • Days Won


Peter Knight last won the day on May 16 2016

Peter Knight had the most liked content!

Community Reputation

771 Excellent

About Peter Knight

  • Rank
    Hero Member

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    Dublin, Ireland.
  1. Hey I just checked and it doesn't seem like that's possible right now. If you're referring to the paid FormBuilder module, you might want to ask on the official VIP FormBuilder Support area?
  2. I have the following code which creates a 2 column div. In the first I check to see if there are any images present and only echo an image if there is. If I don't do this, I get an error. But I was wondering if there was a more efficient way to do this? I don't know the proper terminology but I suspect breaking the code into three parts as I have done ... First - the first <div class='uk-width-1-2@s'> Second - the image check Third - the final div somewhat more verbose than it needs to be with more modern PHP <?php $imgoptions = array('quality' => 100,'upscaling' => false); $products = $page->siblings("id!=$page"); foreach ($products as $prod){ echo" <div class='uk-width-1-2@s'> "; if(count($prod->images)){ echo" <a href='$prod->url'> <img class='lazyload prod-thumb-ov' src='{$prod->images->first()->height(300, $imgoptions)->url}' data-src='{$prod->images->first()->height(300, $imgoptions)->url}' data-srcset=' {$prod->images->first()->width(414)->url} 414w, {$prod->images->first()->width(320)->url} 320w' data-sizes='auto' alt='{$prod->images->first()->description}'> </a> ";} echo " </div> <div class='uk-width-1-2@s'> {$prod->title} </div> ";} ?> Thanks
  3. Nice site. Funny coincidence but the day before your post I picked up a nice bottle of Cloudy Bay Pelorus here in Sydney.
  4. That's my mistake. Thanks
  5. Is the template name a value which I can display? I've read the API docs re. template names and tried a few things including below but nothing works so far. Template is: {$page->$template->name} FYI I'm building a small 'helper' section in a footer which is only visible to admins and it will display page ID, template name and a link to edit the page. Everything working apart from displaying the template name.
  6. More GoDaddy weirdness. Clicking many of the links within ProcessWire admin results in a 500 error. For example, Modules > Refresh does this as does the Upgrades link. The only way I can get the site to work again is to reimport a backed up database. I'm going to move this site asap but thought I'd add it to the list of reasons not to use this service.
  7. Thanks @BitPoet Good to know. I think some DNS settings (CNAME and alias) were confusing things. I worked around it.
  8. I have a single Processwire install with two domains pointing to it. There's which is the "proper domain" and won't be live for a few months which needs to go live immediately but just point to a sub-page Is there a way with .htaccess to know when the site is being accessed through, keep that address is the browser bar and redirect to To give a little context, a part of the in-progress needs to be accessible immediately and we've registered that temporary and pointed it at the same site. The key here is to only do that redirect when is the source request. Otherwise I guess I'd use Jumplinks etc
  9. Good approach. Same here on the authentication etc. I just verified a single domain - one of my own and send in all responses to clients as "". They're pretty ok with that as they recognise them immediately.
  10. Snap here on the PostMarkApp part. It may have been you who pointed me to them. Do you verify all your individual domains via SPF and DKIM verified authentication? P
  11. I have about 50 pages which are just containers for their child pages. What's the most efficient way to exclude these parent pages from Searches? I'm using Ryan's code here I guess I have a few options but is number 2 here the best way or is there anything I haven't considered which would be better? 1. Mark as 'Hidden: Exclude from lists and searches" Isn't an option because it hides from lists which I use. 2. Tell the selector to ignore a particular template(s) Sounds like a good approach 3. Create my own checkbox called "Search Ignore" and add it into a selector Could work but it seems like a ton of work to manually edit all the pages I want to ignore Cheers
  12. BTW in above statement I should clarify that you should try building a blog yourself as opposed to building a Module.
  13. I wouldn't start by installing a Module such as Blog etc. I believe for you, a better approach would be to gradually build your own from scratch. You'll learn a lot more that way. Start with a few individual pages based on a template called "blog-post" and add a few basic fields. Just title, summary and body would be fine. Once you can make and view them then try to create a blog overview or homepage displaying the title and summary of each and a link to each full post. Lets say that template is called blog-posts (plural) You'll get a real kick out of just being able to do that and you're just echoing simple tags and getting to know "foreach" statements. Then try to add a date field to each blog post and add that to both templates. Later you can try adding a main image, maybe even an author and then move onto tags and categories. I think you'll get much more enjoyment out of building your own and a better understanding of the fundamentals.
  14. Can you drop your own sample into a CodePen or similar? Anytime I've had margin or padding issues with UI kit it's because I was missing a uk-grid or had my own CSS interfering with the flow.
  15. Reinstalling did the trick.