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.

151 questions
4
votes
1 answer

How to enable CORS on Plesk 11.5?

We are hosting websites on a server with CentOS and Plesk. For one of the websites we would like to enable CORS for a partner that wants to show specific content from our website on his own website. How do I have to proceed for that and is CORS…
Timo
  • 53
  • 2
  • 6
2
votes
0 answers

How to split Contao variable into several HTML Elements

I´ve got this template from my Contao CMS: items as $item) : ?> level); …
fr3d
  • 585
  • 1
  • 4
  • 17
2
votes
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
  • 73
  • 1
  • 4
2
votes
2 answers

PHP out of memory error does not reflect memory_limit setting in php.ini

When I try to install a package to Contao using the Composer client I get an error: Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 134217728 bytes) in…
Simon Josef Kok
  • 680
  • 1
  • 8
  • 20
2
votes
0 answers

Contao intermittent 500 error

Contao 3.5.9 I am getting a 500 server error in my contao website. This occurs intermitently on every page. error_log shows the following: xxx.xxx.xxx.xxx - - [29/Apr/2016:11:08:39 +0000] "GET /news-insight/news.html HTTP/1.1" 500 - "-"…
Jez D
  • 1,391
  • 1
  • 23
  • 48
2
votes
1 answer

Locating a specific string in a column between two strings which are not always there?

Long story short, let's assume I have a field in a column called 'whyisthisalist' from 'table' which contains: {example1:"hereistext";example2:"ohlookmoretext";example3:"isthisevenreal"} How would I extract the text between example1 and example2,…
2
votes
0 answers

How to include a Photo Sphere in Contao 2?

I'm trying to embed kennydude's JavaScript Photo Sphere viewer (https://github.com/kennydude/photosphere) into a Contao CMS 2.11-based web site. I'm basically using the following code from his test.html which I adapted for the specific site:
iYassin
  • 524
  • 1
  • 10
  • 20
1
vote
1 answer
1
vote
0 answers

Contao CMS gives 404 "Page not found" Error after Installation

I'm facing a problem with an installation of Contao CMS with Isotope e-Commerce. I've followed all steps outlined in the documentation here. But accessing the storefront always leads me to a 404 error as shown. I've searched all over the place but…
1
vote
0 answers

Add class to PHP Tag

I have the following code! It renders figure > a > img. How can I get a class into the a tag? elements as $element): ?> getImageObject($element->image, [380,null,null], null,…
kontenurban
  • 997
  • 3
  • 16
  • 40
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
  • 8,610
  • 2
  • 43
  • 79
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…
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
  • 27,292
  • 13
  • 89
  • 143
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
  • 767
  • 10
  • 37
1
2 3
10 11