Snippet: quickly switch between databases

In one of my recent projects I had to get some data from the external database, in this case it was a Sugar CRM database. So I had to write a little function, which I will share with you now.

In one of my recent projects I had to get some data from the external database, in this case it was a Sugar CRM database. So I had to write a little function, which I will share with you now.

I want to dedicate this post to all Contao module developers, which are either novice or messy programmers. I have recently checked quite a number of extensions in the official repository, and it becomes a real challenge if you woud like to adjust some of them to your needs.

Today I will present you how to improve our CD Collection module, by adding the templates system similar to one in the News module, and displaying a wildcard in the backend. Furthermore, we will add a selectable list of CD categories in modules’ options, so you can choose which categories should be displayed in the FE. (more…)

Beside methods that are provided by various parts of the system, Contao also offers several additional functions that may improve your developer work. They solve common problems like standardizing a string or scanning a directory for files and folders.

In the previous part of the tutorial we have created the Data Container Array for our module. Now when we got our backend section ready, we can create a frontend module that will display our collection on the website. We already have got C, U and D out of CRUD – now it’s time to develop the Read section. (more…)