Tip:
Since version 111.0.0 in Firefox, the elements in the preview are no longer highlighted in color in the Devtools Inspector. I thought this would be corrected again in version 111.0.1 but no....
Type: Posts; User: Andreas
Tip:
Since version 111.0.0 in Firefox, the elements in the preview are no longer highlighted in color in the Devtools Inspector. I thought this would be corrected again in version 111.0.1 but no....
Is relatively easy. You can find everything in the documentation.
Use
<?php
// template code
dump($this->arrData);
within your template. This will show you all available variables. With a PHP loop you then can build up your wanted lists.
Maybe this can be usefull for you
https://isotope.metafizzy.co/
I don't know a Contao extension for this.
I show you the Colorbox initialization from above linked website. Yes, you can see, that Colorbox collects links with the attribute "data-lightbox" to treat them as Colorbox links. The value of...
Me too :grin:
My pleasure. It's not necessary as long as you use d, m and Y but you should get used to using Contao methods.
No, you should use the Contao method Date::parse. Else you won't get the translated dates for example.
...
I think you need a professional. There are a lot of solutions for that. You should find a solution that exactly fits your requirements.
1. A solution with CSS requires that everything that should...
It is best to ask the developer directly. Open the gitlab link top right on this page
https://packagist.org/packages/srhinow/simple-map-bundle
Or use this extension (mostly used as alternative to...
It is better not to depend on extensions.
New template solution:
// old
<?php if ($item['isActive']): ?>
// new
<?php if ($item['isActive'] || ($this->level == 'level_1' &&...
Sorry, I think this is not enough information to help you.
In BE create a copy of template nav_default.
Rename it to nav_no-first-level-links. (nav_ is mandatory, the rest is free)
In your FE module type navigation choose this template.
Edit this...
1. By customizing your nav_ template.
2. By handling (removing) the click events on first level <a>s with JavaScript. If you use JS for your menu anyway, you simply can remove the default click...
Please do not use the media query hover as some laptops have a touchscreen.
My peripheral devices are connected to a 15" Lenovo convertible laptop with a touchscreen and so I'm working with my...
AFAIK the combiner only puts multiple files into one file eventually minifies but does not compress.
Contao 3 with auto parameters
<?php
include 'system/config/localconfig.php';
// Database credentials
$strHost = $GLOBALS['TL_CONFIG']['dbHost'].':'.$GLOBALS['TL_CONFIG']['dbPort'];...
Contao 4 with auto parameters:
<?php
$parameters = file('../app/config/parameters.yml');
$params = array();
foreach($parameters as $value)
{
if(strpos($value, ': ') === false)
Create your php files in folder /templates/. Then within contao you can include them with this insert tag (examples):
{{file::myPHP.php}}
{{file::inc-myPHP.html5}}
You also can code in...
... or by creating an .env file manually.
In short:
Copy DB
Install C4
Download and Upload (if available) of
composer.json
.env // APP_DEV_ACCESSKEY https://contao.ninja/contao-4-login-fuer-app_dev-php-setzen.html
With your script you do it twice on every table. To do it only once use this:
$result = $con->query('show tables');
while($tables = mysqli_fetch_array($result)) {
$con->query("ALTER TABLE...
Open your page with example.org/app_dev.php/my-page.html to see error messages.
With Contao you can do everything that is possible with HTML, CSS, JavaScript ...
There is no podcast extension within the core but you can e.g. use the news to create a news with an audio file....
You also can search within the issues https://github.com/contao/contao-manager/issues
To help you with this issue we need a link to the page.
Make a backup of your database. Then search for the lost entries. If they exist then try to change the parent id back to 8 manually with your DB program e.g. phpMyAdmin.
LOL. You're welcome.
Ok. As you can see the ->multiSRC variable is empty but there is a ->playerSRC variable which contains a serialized array of the file uuids. Try something like this (untested).
<?php...
Use this code to inspect if there is a variable with all selected files.
<?php $this->showTemplateVars() ?>
In your linked post fritzmg implies how to get the values of those files which are...
Yes, this is the better way for templates, but you also can use insert tags in templates. You can not use PHP code in BE.
An it needs a correction
href="<?=...
Please show a link to a page so we can see what you have done so far.
{{env::request}} is an insert tag that gets resolved from Contao with the actual page alias e.g. "contact.html". You can use...
I've recently discovered that Contao version 4.4.20 and later can no longer be downloaded as an archive.
Maybe you want to use a browser addon like https://addons.mozilla.org/de/firefox/addon/form-history-control/ so you will not lose text in a textarea again.
AFAIK you can not force TinyMCE to create invalid HTML code. If you need it fast use the CE HTML as Spooky told.
Und doch auch das Template, oder? Damit wäre es ja dann deine Erweiterung :grin:
Siehe hier: https://github.com/contao/core-bundle/pull/1348#issuecomment-396295472
@Spooky: Ich dachte immer, dass deine youtube_iframe in Contao 4 aufgenommen wurde. Ist dem nicht so? Und dann gab es doch letztens ein Ticket, wo man den Haken aus dem Layout enfernen wollte und...
Maybe you haven't selected any audio file in your content element?
https://github.com/contao/core-bundle/blob/4.5.8/src/Resources/contao/templates/elements/ce_player.html5#L13
Which Contao version are you on? In Contao 3.5 use the extension youtube_iframe. In Contao 4 this is build on. In the settings you can use e.g. 16 for width and 9 for height so that the video gets a...
You have to format your code to see your errors:
$GLOBALS['TL_DCA']['']['fields'][''] = array(
'label' =>
'exclude' => true,
'inputType' => 'checkbox',
'options_callback' => array(),...
This was only a renaming. Since version 2.9 TypoLight was renamed to Contao.
You don't need an extension. Create a new template from analytics_google.html5. Open this template for editing. Read the comments, fill in your analytics ID and save. Activate this template in your...
Maybe you can achieve this with the well known and often used extension [notification_center]
https://contao.org/en/extension-list/view/notification_center.html...
The "poor mans" cron gets triggered with the fe_page template.
<?= $this->mootools ?>
This is a JavaScript at the end of the BODY.
The checkbox "Disable the command scheduler" in...
Are you talking about users and members? I think that member is what you're talkin' about. Right?
This is not right, that you can define a default member group that is assigned to guests.
No,...
Try using the original fe_page template. The BASE tag is missing in your HEAD section.
Ask for a backup of the head group Contao page - files and DB. Set this up on your server, remove things you don't need there and fill it with your group contents.
Don't try to use the Contao...
I can not do a test on mac, but folder handling is ok. The browser builds the path form the base tag and the img src.
<base href="https://contao.org/">
...
<img...
Minify the markup is only for HTML code as explained in the help text below.
You should not activate Compress scripts as this is only for bad servers which are not able to send data gziped and...
Which Contao versions? If you update from 2 to 3 the install tool will do this for you. This is the recommended way.
I don't know an extension. From 3 to 3 you have to copy all data records form...
Install Contao with the manager as shown here https://www.youtube.com/watch?v=Ov0JTctrbSE. Don't do the rewrite to web with an htaccess. Root your domain directly to web/ from within your account...
And this behaviour is normal. In 2.11 the system/html/ folder is a temporary folder which gets managed by Contao. This is done by a pseudo cron job that gets triggered on page request in FE. Look at...
If you're talkin bout the jquery accordion:
This also has been asked and solved in the german forum...
Hello germanjen (if you speak german please go to the german forum),
search for extensions with the keyword "members". There are some extension which may help you. You also can learn how to...
Yes, there's no extension management in BE anymore. If you've installed with the contao-manager, you can install extensions with example.org/contao-manager.phar.php as you can see in one of the...
Try the videos on youtube by contao academy https://www.youtube.com/channel/UCw6f8tOd79cBPn1WbHF9niQ
And here https://www.youtube.com/watch?v=rwC8xfdO3Ao somewhere in the middle Leo Feyer shows...
This is hardly possible and thus not best practice.
Better:
Create a template "j_extended-head.html5" and include it in your page layout. Content:
<?php
$GLOBALS['TL_HEAD'][] = '<meta...
Write an extension (system/modules/my_extension/) where you load your classes.
Use a hook to modify your FE output (maybe the modifyFrontendPage hook)....
What do you like to accomplish. As I think fe_page template is the wrong place for that. Only change fe_page if it's necessary.
In every template you can check page credentials like so
<?php...
Thank you. Maybe you will find a quick fix till the ticket gets accepted and fixed. Sorry I can't help you right now. I think I would have to dig too deep into the code.