Originally I wanted to publish this article when Laravel 4.2 was only in development but it is out for a while now so I’m here to present my trait for this particular issue. Whilst the title may not be straight forward, here is the thing with more than 3 words: Multiple models sharing one table, auto-filtering queries based on column value. If you are familiar with WordPress you probably know that there is only one table with all the pages, posts, attachments and “custom post types“. This article is not about explaining all the little details, it’s for more advanced developers who can grab my code snippet. I assume you already know Laravel, Eloquent and PHP5.4.
Author Archives: József Koller
Written by József Koller on November 29, 2013 in Work
First of all GitHub is awesome, that’s what we all know so let’s get straight to the point. One of my favorite features is that link thing next to each heading, few days ago I thought it would be nice for my blog too. I’ve found many related plugins but none of them succeed to met my requirements. I wanted a small, efficient and smart plugin which will not update my database with tons of unused classes and HTML tags so I’ve made it on my own and now it’s available for anybody (for free).
Written by József Koller on November 8, 2013 in Development
The CSS specification has evolved a lot in that last five years and many long-awaited features have been implemented in the major browsers since then. This sounds great but CSS3’s brought some really hard issues while the syntax basically remained the same as it was before. I’m talking about those well-known browser prefixes, absence of nesting and so-called mixins. In this article I’ll show you my own method of css coding using the latest LESS and LESS Hat version. If you are dedicated to Sass you can skip this article but I won’t bite you if you read on.
Written by József Koller on October 20, 2013 in Development, Wordpress
I’m working on a WordPress site which was installed on a fairly slow server so I have to deal with even the slightest speed issues I find. The first thing I’ve tried was W3 Total Cache which is rather a bloatware than a performance optimization plugin (It might be good for better hosts but not for most of the shared hosts). Few more cache plugins later I’ve decided to set up the easiest and the fastest cache and compression I can imagine (via htaccess). This article is useful for WordPress owners but also for anyone who uses PHP and Apache.
Written by József Koller on October 11, 2013 in Work
Last week I finished a project with thousand images (few hundreds megabytes which is basically unimportant) when I suddenly realized that almost each image file is way larger than it is necessary. For example why I should use a 150×150 image as a 50×50 sideshow thumbnail? Plus there was one more resolution for featured images. So I decided to add those two dimensions to optimize page load speed – this was the easy part. Assuming you’ve already faced with this story you might know that adding new image resolution will not generate new images automatically.
Written by József Koller on October 10, 2013 in Blog
This is the third personal site for me and I hope it will last longer than the predecessors. As a coder I’m always seeking for better and faster ways to achieve the same goal – I cannot stop updating my stuff. So I decided to finally share my experience with others in English. (Apologies in advance for my improper grammar, I’ll do as much as I can to improve it.)
This website will be my wall in the future because 140 char is not too much (Twitter) to express my thoughts and Facebook is for “friends and family” and not for the community I really want to help. The most of the post will be about web development (tutorials, tools, plugins, news and so on) but I’ll share great music and sometimes interesting games (I’m big fan of indie developers).
I don’t know what’s coming exactly but I’m optimistic and ambitious about the future. Plus I must say a huge thank you to Unsplash for the awesome CC Zero images which will be used in post headers. Let’s get the party started!