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
1 answer

Difference between mod_ext_filter and mod_filter?

I installed PHP 5.6.17 on a CentOS 6.4 server using this guide. A Contao installation is running on that server. Contao comes with these directives in its default .htaccess: ## # Gzip compression # @see…
fritzmg
  • 2,494
  • 3
  • 21
  • 51
0
votes
1 answer

Debug "Could not load class" fatal error in Contao CMS

I get in my Contao 2.11.11 installation with the module MetaModels 1.0.x the error: Fatal error: Could not load class MetaModels\Attribute\TranslatedReference I could narrow the problem down to the file…
wittich
  • 2,079
  • 2
  • 27
  • 50
0
votes
0 answers

Display the content of a module in Front-end Preview

I am integrating a module in Contao CMS version 3.4.5. The module is working fine in the backend. The module is about discussions and forums and the users can create discussions and other users can answer on it. I have set up the front-end module…
prajwal_stha
  • 357
  • 3
  • 17
0
votes
2 answers

No root page found in Contao CMS

I have a web application that is running smoothly on remote server. But for enhancements, I have to run the application in local server. But when I try to load the front end preview of the application, It says 'No root page found'.
prajwal_stha
  • 357
  • 3
  • 17
0
votes
2 answers

Can't edit all the fields in an item inside a Contao module

I am having some problems with our business website that is managed with Contao. I want to edit some fields of something, that doesn't appear on the regular edit button. To make it clear, this is what I see on the edit page: And this is what I see…
Brick Top
  • 85
  • 2
  • 13
0
votes
1 answer

Check if URl get parameter exists

my CMS generates some parameter like this: domain.com/group?page_n531=2 The usual code is: if (isset($_GET["id"])) { } But my CMS changes the 'id' for every page, I just want to check, if a parameter exist, I dont need the 'id'. Can you guys help…
Lydia Maier
  • 439
  • 2
  • 12
0
votes
0 answers

TinyMCE with CDN on Contao 3.x

I have a Contao 3.x website where I use CDN for the assets. The problem that gives rise to on the backend is that TinyMCE does not work anymore. I read that there is a different cdn js for loading TinyMCE with CDN, but on a Contao (or probably the…
zarun
  • 910
  • 9
  • 26
0
votes
2 answers

Contao CMS error with https - 404 error

Morning I have a domain, www.example.com, which is a Contao 3.1.3 CMS website on Linux Apache. I have just purchased and installed SSL certificate for the domain. When I go to https://www.example.com (or https://example.com) all works fine. when I…
Jez D
  • 1,461
  • 2
  • 25
  • 52
0
votes
1 answer

Project/Reference extension

I would like to create (or find) an extension where I can fill in with projects/referneces. Actually it would be something the same like the News modul, just with some extra custom fields like categories, etc. with a list FE Modul and a Reader for…
Seer
  • 739
  • 4
  • 22
0
votes
1 answer

How to load to template language file (3.2)

How to load to template language file in Contao 3.2? In previous versions was like this: loadLanguageFile('tl_mymodule.php'); ?> But how is in Contao 3.2?
Qrczak
  • 67
  • 1
  • 1
  • 5
0
votes
1 answer

Contao: Frontend - Get theme section of another page - not the current page

I would need to reach a custom section by page id (or PageModel Object), but I don't find a way to get the FrontendTemplate. I would like to use it in a dropdown navigation to echo a custom section of the hovered (parent) page.
Seer
  • 739
  • 4
  • 22
0
votes
1 answer

How to remove a Backend Modul of the Backend Menu in Contao

I developed an modul for contao 3.0. In my config.php file i wrote this lines: $GLOBALS['BE_MOD']['content']['modultest'] = array( 'tables' => array('tl_modultest'), 'icon' => 'system/modules/modultest/time_go.png', ); Now i have the problem,…
zoom23
  • 694
  • 2
  • 10
  • 23
0
votes
2 answers

How do I add some displayable HTML to the header of every page in Contao

I have very little experience with Contao and I am in the process of redirecting users from an outdated Contao website to a new Wordpress website. I need to write some HTML that will display a clickable banner on the header of every page on the old…
Zevi Sternlicht
  • 5,399
  • 19
  • 31
0
votes
2 answers

Contao module - main screen (No Query) with subscreens

I've been following the cd_collection tutorial so far but realized that I won't be able to realize my module in a backend user friendly manner. Basically I need three tables that should be editable on their own: tl_elementType Contains all…
ProudOne
  • 333
  • 4
  • 17
0
votes
0 answers

Page width wider than html

I have a little problem on my website, alexander-pastor.de. If you resize the window to a width below 1000px, the width of the page would be more than 1000px, which is wider than the html-tag. Adding max-width:100% or overflow-x:hidden to certain…
Alex
  • 751
  • 1
  • 6
  • 34