Questions tagged [contao]

Contao is a PHP based Open Source CMS which uses the MVC architecture. Contao 4 is completely refactored and built upon the symfony framework with bundles and composer compatibility. Please always add Contao version number in your question.

Contao provides the ability to create modules to extend the core functionality of the CMS and add new extensions.

Questions may relate to using or installing the CMS but more technical questions will relate to the development side of modules.

Contao development comprises of the key elements:

  1. A highly configurable back end DCA (Data Container Array)
  2. Front end modules
  3. Back end modules
  4. Widgets (Form elements)
  5. Drivers (Data sources)
  6. Libraries (Core classes)

The main contao site holds most information about the core including the developer documentation. Support can be gained at the community forums.

Extensions can be found at the official extensions catalogue or at the contao forge.


Contao is licensed under the terms of the LGPLv3. The full license text is available in the repository.

166 questions
0
votes
2 answers

Contao 4.9 on localhost - no assets loaded

I just tried a local Contao CMS 4.4 to 4.9 upgrade, and afterwards I get 404 for all assets. I started the site like this: cd web && php -S localhost:8190 For example: /assets/images/f/ReferenzenMaler-4cd0728f.jpg - I can see a…
Andreas
  • 1,691
  • 1
  • 15
  • 34
0
votes
1 answer

Contao 4 Front-end login does not work like contao 3.5

Contao 4 suggests to use form to log in to the front-end: https://docs.contao.org/manual/en/layout/module-management/user-modules/ But I am looking for a solution in my own created login module. I have a user name (email) and password. I would like…
mrana
  • 1,008
  • 3
  • 10
  • 16
0
votes
1 answer

Contao redirects main page to its translated page

The problem is, after using contao2xliff translatition extension when I load my website it would have 303 redirect and redirects to the translated english page(the website main language is Deutsch). all the other pages works fine, just the main page…
EniGma
  • 2,444
  • 4
  • 22
  • 33
0
votes
1 answer

How to edit CSS of "fine uploader" widget in Contao CMS?

I have spent many hours to search of how can I modify the fineUploader package from here https://packagist.org/packages/terminal42/contao-fineuploader . Is there any way of how can I modify the CSS of that package? I want to match it with the rest…
0
votes
1 answer

Contao 4.10: DCA metaFields with fileTree

I need the possibility to link images with audio files in the file management. I followed this tutorial and the field is created, but only as a simple input field. https://docs.contao.org/dev/reference/dca/fields/#meta-wizard-fields Then i added a…
magic.77
  • 829
  • 1
  • 11
  • 21
0
votes
0 answers

How do I use RewriteRule in Contao 4.4?

We would like to create a RewriteRule in Contao The call "https://www.test.de/jobs/tester" should redirect to the URL "https://www.test.de/jobs?id=tester". So in my understanding of htaccess the rule should look like this: RewriteEngine…
MAESTRO_DE
  • 433
  • 2
  • 17
0
votes
0 answers

Set Cookie on Button

I made a fullscreen overlay with a popup. Now when I press the button I want a popup to be set. You can also click outside the window. Then the popup disappears. I want a cookie to be set there as well. Somehow I do not understand the whole thing.…
0
votes
1 answer

Binding FontAwesome to a ::before with unicode - displays crypdo-icon

I am trying to include FontAwesome to an ::before-element. The include to the website worked (I have other Icons in an i-element on the website) but the unicode-way won't work. I've trying to add an icon for the previous-button in fontAwesome like…
Tobi Smith
  • 53
  • 2
  • 9
0
votes
1 answer

Avoid multiple redirects in contao

I have analyzed my website with the portal web.dev from Google. This told me that I have too many redirects if I call the URL without www and with http: It goes first to https and without www, then to http with www and only then to https and…
MAESTRO_DE
  • 433
  • 2
  • 17
0
votes
1 answer

Explanation regarding Contao Development

I need help regarding this issue. I'am new to Contao, and coming from Wordpress, where the file structure (folder) is quite different, I'm having troubling of where to put the front-end files (HTML) and how to work with the Contao back-end. I'm on…
0
votes
2 answers

How do I get jQuery and Mootools on the same Contao page?

I am working on a Contao site that is supposed to be upgraded from 2.11.6 to 3.5.40 because the provider will soon force a PHP upgrade from 5.6 to 7.3. The upgraded site should look and feel like the old site. I have already done the Contao upgrade,…
Timm
  • 2,488
  • 2
  • 22
  • 25
0
votes
1 answer

Database migration from Contao 2.11 to Magento 2.3 or Shopware 6.1

We have an Contao 2.11 e-shop with highly customised functionalities. Now we decided to move from contao to Magento 2.3/Shopware 6.1 but not yet sure which one will be best. For any case, we need to migrate the database. We already checked if there…
Moyen Uddin
  • 77
  • 1
  • 11
0
votes
2 answers

Why is composer install giving an errror after mac catalina update?

So I have just cloned a Contao based project on my Mac, and as I am setting it up i ran ´composer install´, before I updated to macOSX Catalina i never have this issue but now I am getting the following error, any ideas on fixing this? I am lost!
felixo
  • 1,453
  • 6
  • 33
  • 60
0
votes
1 answer

Is it possible for Contao to not redirect to home page alias?

Older Contao versions by default did not redirect to the first public page, so the front page was displayed with both domain.com and domain.com/front-page.html and neither was redirected to the other. However the newest Contao at least (4.8) does…
Simon Josef Kok
  • 745
  • 1
  • 8
  • 22
0
votes
1 answer

Class not in namespace

I am trying to create a hook extension for Contao. But Contao doesn't seem to be able to load my class from the namespace, which handles the hook. This is my file structure: I have tried changing names and added ".php" to the class, looked up…
Bladerxdxi
  • 111
  • 1
  • 8