Skip to main content
12 events
when toggle format what by license comment
S Apr 16, 2015 at 12:04 history suggested Clive Portman CC BY-SA 3.0
Updating to reflect this now works without any hacks to the core.
Apr 16, 2015 at 9:42 review Suggested edits
S Apr 16, 2015 at 12:04
Nov 7, 2014 at 10:08 vote accept Clive Portman
Jun 10, 2019 at 10:08
Nov 6, 2014 at 18:02 history edited Brad Bell CC BY-SA 3.0
added 424 characters in body
Nov 6, 2014 at 17:55 comment added Brad Bell Gah, sorry. Looks like we don't expose that to the template level. I'll update my answer.
Nov 6, 2014 at 13:30 comment added Clive Portman And have tried this on two sites on different server setups, too.
Nov 6, 2014 at 13:04 comment added Clive Portman This is strange. In a simple PHP file I can echo $_SERVER['REMOTE_ADDR'] but if I put {{ craft.request.getIpAddress() }} at the top of my layout template, nothing is output.
Nov 5, 2014 at 17:41 comment added Brad Bell If your server isn't populating $_SERVER['REMOTE_ADDR']?
Nov 5, 2014 at 16:05 comment added Clive Portman Actually, is there any reason {{ craft.request.getIpAddress() }} would be empty?
Nov 5, 2014 at 16:00 comment added Clive Portman Thanks Brad - I'd searched the docs using 'ip ' and should've used 'ipa'!
Nov 5, 2014 at 15:59 vote accept Clive Portman
Nov 6, 2014 at 13:04
Nov 5, 2014 at 15:55 history answered Brad Bell CC BY-SA 3.0