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
1
vote
2 answers

Contao > 4.3 sending emails with sendmail throw error on some providers

Older Versions of Contao (till 4.3) working like expected with sending emails via sendmail. After upgrade to Contao 4.9 I got some errors at Providers like 1u1 / ionos or mittwald. The error in the logs sound like: "Expected response code 220 but…
suther
  • 12,600
  • 4
  • 62
  • 99
1
vote
0 answers

Unable to install Contao CMS on localhost in Mac using terminal

I'm facing problem on installing Contao on my Mac. I run the command that I get from here composer create-project contao/managed-edition but I am getting this error hasnainshafqat@Hasnains-MBP project % composer create-project…
Hasnain Shafqat
  • 118
  • 2
  • 9
1
vote
1 answer

Uncaught TypeError: Argument 2 passed to Symfony\Component\EventDispatcher\EventDispatcher // Contao 4.7 & Symfony

We are using Contao 4.7.7 which depends on Symfony, for some reason we are receiving the following fatal error out of nothing, not sure how this one came up. On this event: fos_http_cache.pre_handle the Kernel passes a wrong Event How to solve this…
1
vote
1 answer

Avoid function duplication of dump function by psysh

I am developer of imi-conrun and have a problem: We use the psySh package we would like not to drop and defines the global scope function "dump" and have to initialize the Contao core which defines the global scope function "dump" as well without…
Alex
  • 32,506
  • 16
  • 106
  • 171
1
vote
0 answers

Respimage functionality not working in news Contao

Hi I need to make responsive images in contao website (https://rocksolidthemes.com/de/contao/blog/responsive-images-picture-contao). So I created an image size in theme model and add a media query . Add necessary configurations in layout . But it…
Aswathy S
  • 729
  • 1
  • 12
  • 41
1
vote
1 answer

Uninstall an extension in Contao 4

I am working with contao 4. I created an extension and I need to uninstall it. How can I uninstall an extension in contao 4? I manually deleted the extension from system/modules. What are the other steps to be done to uninstall an extension? Is…
Ques
  • 253
  • 4
  • 19
1
vote
2 answers

Opengraph image for pages in contao

I am working with the implementation of meta tags in contao. For this, I extended the fe_page template and added the meta tags there.
Ques
  • 253
  • 4
  • 19
1
vote
1 answer

How images are mapped in Contao news Extension?

I am doing a newsmigration to latest Contao 4. Can anyone please explain how the image files are related to tl_news table ? Currently for my migration I have imagepath and imagename for the respective image. When I add an image to a news in contao…
ebin mathew
  • 33
  • 1
  • 4
1
vote
1 answer

How to get actual image path in Contao template

Add an extra field for fileupload. But the data getting in template is a set of special characters. How to get the original path? My code: $GLOBALS['TL_DCA']['tl_news']['fields']['image'] = array ( 'label' =>…
Aswathy S
  • 729
  • 1
  • 12
  • 41
1
vote
1 answer

Contao CMS: Get Page Content from Page-ID in PHP-Variable

I'm using rock solid custom elements in Contao. In the BE I have a pagetree where I can pick an internal page. I can access the contao page id in PHP in my FE html5-document. What I want would be to access the h1-headline of the picked page (has…
Tom Senner
  • 548
  • 1
  • 6
  • 21
1
vote
2 answers

Contao 4.4 custom elements

I recently switched from Contao 3.X to Contao 4.4. So far so good. I like it very much. Especially working with composer. Currently, I am looking for a solution, to create custom content elements. In Contao 3.X I could do this with the extension…
Matt Backslash
  • 764
  • 1
  • 8
  • 20
1
vote
1 answer

Difference between "legacy contao module" and (just) "contao module"

Does somebody now the difference between "legacy contao module" and (just) "contao module"? Why do these two types of modules exist and what should we use (in which situation)?
Christian Michael
  • 2,128
  • 1
  • 19
  • 27
1
vote
2 answers

Contao Backend Styling / layout missing

Hi contao developer out there, Anybody knows why the styling of the whole admin backend's missing. I attach a screenshot, let me know if anyone knows something. enter image description here
Pragmaticoder
  • 81
  • 1
  • 11
1
vote
1 answer

Template Block Inheritence Contao

I am new in contao development. What i am trying to do is extend custom blocks in my templates. So, my questions is: Is it possible to create custom blocks in templates? In the Documentation…
DpEN
  • 4,216
  • 3
  • 17
  • 26
1
vote
1 answer

Https Problems with contao

Hi I just transfered a website from http development server to https production server. As a result the page shows up but without files and assets and css. Browsers-Console says that it won't load inappropriate content from http sources. Why does…
marschro
  • 791
  • 8
  • 23
1
2
3
11 12