These are chat archives for getkirby/chat

Sep 2015
Maurice Renck
Sep 03 2015 09:01
Hey, I’ve got a question about the kirby-docs. I am currently adding some more snippets to the sublime text package. I am adding the $dimension part of the cheatsheet and found that I can check if an image ist landscape by doing: $page->image()->landscape() But to check if the image is portrait: $page->image()->dimensions()->portrait() - note the dimensions(). In the docs there is sometimes that dimensions() method in between, sometimes it isn’t. Is there something wrong in the docs or is that difference in the code correct?