How to use Joomla! JLayouts in your extensions

joomla-jlayout
With JLayouts you can create content elements that you can use in multiple Joomla Views. For example for sharing content between the frontend and backend, or between a component and a module. You can even share them between different extensions.  In opposite to the view they are not included in the JView(Legacy) and you can't use the cont...
Continue reading
Rate this blog entry:
1
13906 Hits
0 Comments

Which Frontend CSS Framework for Joomla 3.7 should i use?

css-framework-joomla-header

As site creators you have to choose between a large mix of available frontend templates and their frameworks for Joomla. And even extensions often bring their own CSS Framework with them.

So which one is the right for you? This follows the style of a conversation, where a new Joomla! user has a chat with his experienced friend. Inspired by "It's the future" from Circle CI.

Continue reading
Rate this blog entry:
2
16840 Hits
5 Comments

Unleash the power of the Alt key in PhpStorm

Unleash the power of the Alt key in PhpStorm
​One of my favorite shortcuts / features of PhpStorm is the alt key select mode. It offers you to select and edit multiple lines at once.  Just hold the alt key and drag your mouse down, this creates a cursor for editing multiple lines at once. And that's not all, you can also select different positions with it, just hold alt pressed and posit...
Continue reading
Rate this blog entry:
1
3371 Hits
0 Comments

Using JDatabaseQuery several times in a row

Using JDatabaseQuery several times in a row
Today I stumbled on a bug in CComment on Joomla 2.5 (we actually don't support 2.5, but that is another story) and upon investigating I discovered few interesting things and I thought that I'll share them with you. So here is the issue: in order to deliver nested comments in CComment we do 2 queries - one that fetches the parents and one that is su...
Continue reading
Rate this blog entry:
6
8130 Hits
0 Comments

JoRobo - Tools for Joomla! (Extension) Development

JoRobo - Tools for Joomla! (Extension) Development
As you maybe know Daniel and i attended to a Joomla! code sprint in Karlsruhe two weeks ago. During the four days of intensive work for Joomla, we came up with the idea to integrate our own build system (formerly jBuild) into a more general one fitting for almost every extension or even template - JoRobo . Weblinks had no real build system before (...
Continue reading
Rate this blog entry:
5
6371 Hits
3 Comments

The Observer Design Pattern in Joomla!

The Observer Design Pattern in Joomla!
Welcome to our new series on PHP Design Patterns in Joomla! Design Patterns are commonly accepted solutions for recurring problems in software development. The main goal is not only showing them, but also to learn why they are used and how to integrate them into your own Joomla! extensions. This series was planed as an preparation&nb...
Continue reading
Rate this blog entry:
7
5515 Hits
1 Comment

Update your robots.txt!

Update your robots.txt!

If you've recently updated to Joomla 3.4 you might have noticed this message:

A change to the default robots.txt files was made in Joomla! 3.3 to allow Google to access templates and media files by default to improve SEO. This change is not applied automatically on upgrades and users are recommended to review the changes in the robots.txt.dist file and implement these change in their own robots.txt file.

Continue reading
Rate this blog entry:
7
13821 Hits
3 Comments

Creating a custom error page for your Joomla site

Creating a custom error page for your Joomla site

I've decided that it was time to improve some parts of our site. I had a look at the Redirect component in Joomla and unfortunately people are landing way too often on 404 not found page. And often there is no redirect that I can make. The resource no longer exist on our site and the user has to see a 404 page. Sadly for the past few years he was presented with this:

As you know this is the default Joomla 404 page - it gets the message across, but it is anything else than pretty and relaxing. So, today I decided that it was time to improve this! Since neither Yves or I are good designers I decided to find a good 404 template, change it a little and add it to our template. After some searching I found this: http://themeforest.net/item/wordsearch-responsive-404-error-pack/6531230 - the template could be used with 400 or 500 errors, so I decided that it was a good fit for compojoom.com.

Continue reading
Tags:
Rate this blog entry:
7
9393 Hits
1 Comment

Group fields together in JForm to create html input as array

This blog post is a reply to this topic on Joomla's forum: http://forum.joomla.org/viewtopic.php?f=642&t=815225 but when I tried to post it there I got a 403 error, that is why I thought that I'll share this information here.

For the last couple of weeks I've been working on the multiple upload functionality that is going to come with the next Hotspots version. I'm about to finish this off, but as usual there are some things that pop up and need rewriting. I've decided that instead of hardcoding the generated thumbnails, I'll add an option for the user where he can define his own thumbnail dimentions.

Continue reading
Rate this blog entry:
2
4633 Hits
0 Comments

Custom filtering for JForm fields

Today I've spent an hour trying to figure out how to use custom filtering on a JForm field. I knew that it was possible, but I just didn't know how. Searching on google also didn't help much. The question was asked a year ago on stackoverflow and nobody has answered it yet.

So, I decided that I'll have to look in the code and figure this on my own. Why would you want to do custom filtering? In my case users had to submit percentages in a field. The values were stored in the database as double, so I had to make sure that values submitted for example with comma, were properly saved in the database. What I've done in the past (and I'm ashamed to acknowledge this) is overriding the controller's save function, making the changes to the form data and passing the modified data to back to JForm. Well, it works, but in this project I wanted to save time & finally do it the correct way.

Continue reading
Rate this blog entry:
4
4735 Hits
1 Comment