Code Monkey home page Code Monkey logo

core's Introduction

Contao-Bootstrap Core

Version GitHub issues License Build Status Downloads

This extension provides Bootstrap 4 integration into Contao.

Contao-Bootstrap is a modular integration. The core components provides the infrastructure for other components.

Features

  • Bootstrap environment
  • Config system
  • Template pre and post render filters

Changelog

See changelog

Requirements

  • PHP ^7.4 || ^8.0
  • Contao ^4.9

Install

Managed edition

When using the managed edition it's pretty simple to install the package. Just search for the package in the Contao Manager and install it. Alternatively you can use the CLI.

# Using the contao manager
$ php contao-manager.phar.php composer require contao-bootstrap/core~2.0

# Using composer directly
$ php composer.phar require contao-bootstrap/core~2.0

Symfony application

If you use Contao in a symfony application without contao/manager-bundle, you have to register following bundles manually:

class AppKernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle('metapalettes', $this->getRootDir()),
            new ContaoBootstrap\Core\ContaoBootstrapCoreBundle(),
        ];
    }
}

core's People

Contributors

a-kehr avatar dmolineus avatar lucasgehin avatar sebj54 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

core's Issues

Class 'MetaPalettes' not found

Bei der Installation bekomme ich die Meldung
Class 'MetaPalettes' not found in xxx/boottraptest/system/modules/bootstrap-core/dca/tl_settings.php on line 10

im Forum wurde gesagt ich soll ein Ticket erstellen - hoffe es passt.

Gruß Alex

Data too long for column 'bootstrap_toggleableSize'

Sobald ich ein FE-Modul anlege erhalte ich (unter Win) diesen Internal Server Error:

An exception occurred while executing 'INSERT INTO tl_module (type, cols, queryType, contextLength, totalLength, perPage, searchType, inColumn, source, rss_cache, rss_template, numberOfItems, cal_startDay, cal_format, cal_order, cal_template, cal_ctemplate, com_order, com_template, list_layout, list_info_layout, news_featured, news_metaFields, news_template, news_format, news_startDay, news_order, nl_template, bootstrap_isResponsive, bootstrap_navbarBrandTemplate, bootstrap_toggleableSize, pid, tstamp) VALUES ('navigation', '2cl', 'and', 48, 1000, 0, 'simple', 'main', 'internal', 3600, 'rss_default', 3, 1, 'cal_month', 'ascending', 'event_full', 'cal_default', 'ascending', 'com_default', 'list_default', 'info_default', 'all_items', 'a:2:{i:0;s:4:\"date\";i:1;s:6:\"author\";}', 'news_latest', 'news_month', 0, 'descending', 'nl_simple', 1, 'mod_navbar', 'mod_navbar', '1', 0)': SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'bootstrap_toggleableSize' at row 1

Layoutbuilder CSS werden nicht deaktiviert

Wenn man ein Layout hat wo das 12er Grid, der Layoutbilder und Reset angeschaltet ist, dann bei der "Typ das Layouts" auf Bootstrap umstellt, werden die CSS z.B. vom Layoutbuilder trotzdem noch eingebunden was dann dafür sorgt dass #left und #right z.B. gefloatet werden.
Man muss den Layouttyp erst wieder umschalten, die Haken raus machen und wieder umstellen damit man das deaktivieren kann.

Recoverable error: Argument 1 passed to Netzmacht\Bootstrap\Core\Event\InitializeEnvironmentEvent::__construct()

Hello,
I have added my own exstension with this hook :

$GLOBALS['TL_HOOKS'] = array
(
    'addCustomRegexp' => array
    (
       array('bsn_class', 'myBSNcheck')
    )
 );

on my localhost (without composer reposorie and without bootstrap) it works fine no problem,
But wen i upload it to my system/modules/ directory i get this error :

Recoverable error: Argument 1 passed to    Netzmacht\Bootstrap\Core\Event\InitializeEnvironmentEvent::__construct() must be an instance of Netzmacht\Bootstrap\Core\Environment, null given, called in /composer/vendor/contao-bootstrap/core/src/Contao/Hooks.php on line 87 and defined in composer/vendor/contao-bootstrap/core/src/Event/InitializeEnvironmentEvent.php on line 36
#0 composer/vendor/contao-bootstrap/core/src/Event/InitializeEnvironmentEvent.php(36): __error(4096, 'Argument 1 pass...', '/www/ftpstorage...', 36, Array)
#1 composer/vendor/contao-bootstrap/core/src/Contao/Hooks.php(87): Netzmacht\Bootstrap\Core\Event\InitializeEnvironmentEvent->__construct(NULL)
#2 composer/vendor/contao-bootstrap/core/src/Contao/Hooks.php(76): Netzmacht\Bootstrap\Core\Contao\Hooks->initializeEnvironment()
#3 system/initialize.php(243): Netzmacht\Bootstrap\Core\Contao\Hooks->initializeSystem()
#4 contao/main.php(16): require('/www/ftpstorage...')
#5 {main}

Fatal error: Call to a member function dispatch() on a non-object in /composer/vendor/contao-bootstrap/core/src/Contao/Hooks.php on line 88

What am i doing wrong.

Installations-Probleme mit Contao 3.5.12

Beim Versuch das Core-Package, sowie das Grid-Package zu installieren erhalte ich im Composer eine Fehlermeldung die besagt, dass das Paket nur bis 3.5.9 zulässig ist.

contao-bootstrap with php 7

for compatibility with PHP7, the wrapper.php needs brackets around $callback -> line 358:

[29.01.2017 22:12:19] PHP Fatal error: Uncaught exception 'Error' with message 'Function name must be a string' thrown in /is/htdocs/xx/www/xx/composer/vendor/contao-bootstrap/core/src/Contao/DataContainer/Wrapper.php on line 360

$callback = $config['count-existing'];
$instance = \Controller::importStatic($callback[0]);
$existing = $instance->**{$callback[1]}**($record, $wrapper);

$callback = $config['count-required'];
$instance = \Controller::importStatic($callback[0]);
$required = $instance->**{$callback[1]}**($record, $wrapper);

Contao >4.12 und Symfony 5.2

Eine stolle Extension. Leider gibt es ab 4.12 Probleme:

Es gibt einen Fehler beim Eventdispatcher. Eventclass wurde geändert.
Ab Symfony 5 ist sie Symfony*Contracts*\EventDispatcher\Event;

Nach der (manuellen) Änderungen kommt dann der nächste Error:
Argument 1 passed to Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::dispatch() must be an object, string given, called in /www/htdocs/w0175fba/hpvermittlung/vendor/contao-bootstrap/core/src/Listener/HookListener.php on line 76

Herzliche Grüße
Hjue

Improve icon set configuration

Instead of requiring loading an php file of the icon set configuration an an ini configuration right in the backend could be used.

[category_a]
icon-class
icon-class

[category_b]
icon-class
icon-class

Fehler beim Erstellen von Inhaltselement / Issue: creating content elements

Unter Contao 3.4.5, bei Installation per Composer und in Verbindung mit Subcolumns kann es zu Problemen kommen. Beim erstellen von Inhaltselementen wird folgender Fehler ausgegeben:

Warning: Invalid argument supplied for foreach() in composer/vendor/contao-bootstrap/core/src/Contao/ContentElement/Wrapper/Helper.php on line 83

Lösung: unter systen/config/initconfig.php folgendes eintragen:

if (!Netzmacht\Bootstrap\Core\Bootstrap::getConfigVar('wrappers')) {
    Netzmacht\Bootstrap\Core\Bootstrap::setConfigVar('wrappers', array());
}

PHP 8.0

Existiert ein Plan die contao-bootstrap packages für PHP 8 zu veröffentlichen?

Bootstrap Menü Dropdown Icon Code ändern

Hallo,
kannst Du bitte in der config/contao-bootstrap.php das 'toggle' => '< b class="caret"></ b >', in 'toggle' => '< span class="caret"></ span >', ändern.

Weil hier < b > Tags genommen werden wird das als Fehler bei SEO Tools angezeigt, da es als leerer Boldtag gesehen wird. Besser ist da einen < span > einzusetzten.

Danke

Drop leftover fields

Currently tl_content.bootstrap_dataAttributes is still defined but not supported. Drop it in the next minor relase.

Contao 4: Update auf 4.4.5 führt zum Fehler im Bootstrap Core

Hallo, ich habe mir eine Testumgebung für Bootstrap und Contao 4 eingerichtet. Heute wollte ich die Contao 4 Management Edition auf 4.4.5 via Composer aktualisieren. Dabei kam es zu folgendem Fehler während:

Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-update-cmd event terminated with an exception

[RuntimeException]
An error occurred while executing the "contao:install-web-dir" command: PHP Fatal error:

Fatal error: Uncaught TypeError: Return value of ContaoBootstrap\Core\DependencyInjection\ConfigPass::setConfigTypesArgument() must be an instance of ContaoBootstrap\Core\DependencyInjection\void, none returned in vendor/contao-bootstrap/core/src/DependencyInjection/ConfigPass.php:71 Stack trace: 
#0 vendor/contao-bootstrap/core/src/DependencyInjection/ConfigPass.php(34): ContaoBootstrap\Core\DependencyInjection\ConfigPass->setConfigTypesArgument(Object(Contao\ManagerPlugin\Config\ContainerBuilder)) 
#1 vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php(143): ContaoBootstrap\Core\DependencyInjection\ConfigPass->process(Object(Contao\ManagerPlugin\Config\ContainerBuilder)) 
#2 vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php(746): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object in vendor/contao-bootstrap/core/src/DependencyInjection/ConfigPass.php on line 71

Vielen Dank für die super Extension!

Edit: Das Problem betrifft scheinbar alle Vorgänge mit Composer. Selbst bei eine Neuinstallation kommt der Fehler. Scheinbar ist im DI Container wohl der contao_bootstrap.config.type_manager Service nicht registriert...

Installation mit 4.10

Hi,

habe gerade versucht das aktuelle Release via Composer zu installieren:
composer require contao-bootstrap/bundle:~2.1.0 -o

Leider bekomme ich im Anschluss folgende Fehlermeldung:
`
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Conclusion: don't install contao-bootstrap/bundle 2.1.1
- Conclusion: remove doctrine/doctrine-bundle 2.1.2
- Installation request for contao-bootstrap/bundle ~2.1.0 -> satisfiable by contao-bootstrap/bundle[2.1.0, 2.1.1].
- Conclusion: don't install doctrine/doctrine-bundle 2.1.2
- contao-bootstrap/bundle 2.1.0 requires contao-bootstrap/core ~2.0 -> satisfiable by contao-bootstrap/core[2.0.0, 2.0.1, 2.0.2, 2.0.3].
- contao-bootstrap/core 2.0.0 requires doctrine/doctrine-bundle ~1.6 -> satisfiable by doctrine/doctrine-bundle[1.10.0, 1.10.1, 1.10.2, 1.10.3, 1.11.0, 1.11.1, 1.11.2, 1.12.0, 1.12.1, 1.12.10, 1.12.2, 1.12.3, 1.12.4, 1.12.5, 1.12.6, 1.12.7, 1.12.8, 1.12.9, 1.6.0, 1.6.1, 1.6.10, 1.6.11, 1.6.12, 1.6.13, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.8, 1.6.9, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.9.0, 1.9.1].
- contao-bootstrap/core 2.0.1 requires doctrine/doctrine-bundle ~1.6 -> satisfiable by doctrine/doctrine-bundle[1.10.0, 1.10.1, 1.10.2, 1.10.3, 1.11.0, 1.11.1, 1.11.2, 1.12.0, 1.12.1, 1.12.10, 1.12.2, 1.12.3, 1.12.4, 1.12.5, 1.12.6, 1.12.7, 1.12.8, 1.12.9, 1.6.0, 1.6.1, 1.6.10, 1.6.11, 1.6.12, 1.6.13, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.8, 1.6.9, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.9.0, 1.9.1].
- contao-bootstrap/core 2.0.2 requires doctrine/doctrine-bundle ~1.6 -> satisfiable by doctrine/doctrine-bundle[1.10.0, 1.10.1, 1.10.2, 1.10.3, 1.11.0, 1.11.1, 1.11.2, 1.12.0, 1.12.1, 1.12.10, 1.12.2, 1.12.3, 1.12.4, 1.12.5, 1.12.6, 1.12.7, 1.12.8, 1.12.9, 1.6.0, 1.6.1, 1.6.10, 1.6.11, 1.6.12, 1.6.13, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.8, 1.6.9, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.9.0, 1.9.1].
- contao-bootstrap/core 2.0.3 requires doctrine/doctrine-bundle ~1.6 -> satisfiable by doctrine/doctrine-bundle[1.10.0, 1.10.1, 1.10.2, 1.10.3, 1.11.0, 1.11.1, 1.11.2, 1.12.0, 1.12.1, 1.12.10, 1.12.2, 1.12.3, 1.12.4, 1.12.5, 1.12.6, 1.12.7, 1.12.8, 1.12.9, 1.6.0, 1.6.1, 1.6.10, 1.6.11, 1.6.12, 1.6.13, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.8, 1.6.9, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.9.0, 1.9.1].
- Can only install one of: doctrine/doctrine-bundle[1.10.0, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.10.1, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.10.2, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.10.3, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.11.0, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.11.1, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.11.2, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.12.0, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.12.1, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.12.10, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.12.2, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.12.3, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.12.4, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.12.5, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.12.6, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.12.7, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.12.8, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.12.9, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.8.0, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.8.1, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.9.0, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.9.1, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.6.0, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.6.1, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.6.10, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.6.11, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.6.12, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.6.13, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.6.2, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.6.3, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.6.4, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.6.5, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.6.6, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.6.7, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.6.8, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.6.9, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.7.0, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.7.1, 2.1.2].
- Can only install one of: doctrine/doctrine-bundle[1.7.2, 2.1.2].
- Installation request for doctrine/doctrine-bundle (locked at 2.1.2) -> satisfiable by doctrine/doctrine-bundle[2.1.2].
`

Wie muss ich die composer.json modifizieren, damit es sich installieren lässt? Ich schätze es wird ein noconflict-Eintrag sein? Sorry, bin nich sooo fit was Composer angeht :-)

contao_bootstrap.core.dca.wrapper

Ich nutze gerade die Version dev-contao4#292b96e8

Internal Server Error
Was ist das Problem?

Attempted to load class "contao_bootstrap.core.dca.wrapper" from the global namespace. Did you forget a "use" statement?

Dies kommt wenn ich einen Artikel bearbeiten will.

FR || Bug? 1.0.0-b1: Auswahl der globalen Icon-Sets

Issue by xantippe
Friday Oct 31, 2014 at 07:48 GMT
Originally opened as https://github.com/netzmacht/contao-bootstrap/issues/72


ich hatte als Name in der Icon-Set-Definition als Name "glyphicons" eingetragen - wenn man das macht, gibt es bei System>Einstellungen>Bootstrap im Pull-Down keine zwei Einträge sondern nur 1x "glyphicons"; ggf. wäre die Angabe des Theme - in Klammern - z.B. wie beim Layoutbuilder ganz gut

siehe https://community.contao.org/de/showthread.php?53663-Fragen-zur-Installation-und-Start-(C-3-3-5-C-BS-1-0-0b)&p=346398&viewfull=1#post346398

Grid content-element erstellt <div class="">

Ich verwende Contao 4.4 Managed Edition + contao-bootstrap/grid 2.0.0-beta2
Wenn ich dort im Artikel ein "Grid Start Element" anlege, legt er mir verschiedene Separatoren an. Soweit so gut.
Nur legt er im ersten Separator ein bezugsloses <div class=""></div> an.

Contao Backend:
bildschirmfoto 2017-12-05 um 10 17 26

HTML Output
bildschirmfoto 2017-12-05 um 10 17 03

Could not find package contao-bootstrap/core~2.0@beta

Beim Ausführen der folgenden Zeile:
composer require contao-bootstrap/core~2.0@beta

erhalte die folgende Fehlermeldung:

[InvalidArgumentException]
Could not find package contao-bootstrap/core~2.0@beta at any version for your minimum-stability (beta). Check the package spelling or your minimum-stability

Was mache ich falsch?

Falsche Größe im Frontend bei Spaltensets

Leider etwas schwer zu reproduzieren, beim ersten angelegten Spaltenset (50/50) wurde im Frontend col-lg-6 ausgeben, obwohl col-sm-6 definiert war. Beim zweiten Spaltenset und den darauffolgenden funktionierte es.

Bootstrap-Konfiguration für Themes abschaltbar

Wird contao-bootstrap installiert, werden automatisch bestimmte JS- und CSS-Sachen im Template geladen - bei einer Multi-Domain-Installation kann es dabei zu unschönen Effekten kommen

Daher wäre es schön, wenn BS im Backend für Themes und für Formulare abschaltbar wäre.

stable version

Hi guys,

is there a plan when the new version will leave the beta status?
We have already used the extension on some installations and have not encountered any problems so far. If you need help somewhere, just let me know.

We would like to provide a new Contao Theme for Christmas, where we use your extension. Unfortunately, then every user would have to downgrade the stability to install the theme.

Thank you for your work
regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.