LOGIC Library

This site is the Logic involvement in sharing expertise and skills acquired in daily work. The goal is to create a solid knowledge base and share best practices in software development and systems management.

More info about us can be found on logicsistemi.it.

Joomla! 3: a different layout or style for the front page

In the last years, web site front pages left their specifity giving way to a look similar to other pages. According to TheNextWeb article on web design trends for 2014, it seems that hero pages are one of the most common features in new websites, requiring a front page slightly different from the others.

Let's see how we can accoomplish this work in Joomla!

Joomla! 3: how to add custom fields to user registration form

More than a year ago I wrote a tutorial that explained how to write a plugin to add fields to the Joomla! 2.5 user registration form.

A year later the Joomla! 3 version is widely used and it's time to update my tutorial to make it work with the new version.

A redirect plugin for Joomla! 2.5

In this post we'll take a look to content plugins and we'll write a very simple plugin that allows to create a redirect page in our Joomla! Site.

By doing this we will discover how to use a plugin to modify article test or add Javascript code to it.

Joomla! 2.5 user plugin: adding validation

In a previous post we have learned how to extend users' data with custom fields during a Joomla! user registration. In the example we have left the new fields without any validation.

In this post we will add 3 types of validation to the new fields: client side validation, server side validation and a complex server side validation.

To undestand every passage of this post I suggest you to read the Joomla! form validation tutorial and the last part of the Joomla! MVC component tutorial. They both have information about validation we will use in this example.

A simple calendar for Joomla! articles

Searching internet for a solution to display a calendar with link and tooltips for every published Joomla! article, you probably come accross JEvents.

This extension is the most popular for displaying events and it has some nice calendar modules you can add in your site, but it has a lot of functionalities and it's sometimes hard to configure.

In this post we explain an alternate solution that allows to add an articles calendar to your site without installing additional modules.

Joomla! 2.5 user plugin: preserving values during validation

In a previous post I've explained how to add fields to the user registration by creating a user plugin. We come back to it to solve a problem recently appeared on Stackoverflow.

The problem exposed there was caused by a wrong template that, creating an error in the Javascript code, blocked the client side validation, causing the form to be submitted with wrong fields.

Server side validation worked great and the user was not created and the wrong fields listed, but the values inserted in additional fields were lost.

We try to modify our plugin to preserve these values. This could be some sort of pedantry, but we use it to explore some other aspect of the Joomla! engine.

Page 1 of 2