srhinow / srlayer Goto Github PK
View Code? Open in Web Editor NEWContao 3.x Fork from campainLayer
Contao 3.x Fork from campainLayer
Hat jemand beispielsweise vor, in einem Layer ein Kontaktformular o.ä. öffnen zu lassen mit Eingabefeldern für Name oder E-Mail-Adresse etc. dann schließt sich (bei mir war es bisher immer so und ich musste erst ein wenig grübeln bis ich auf die Lösung kam ) der Layer wieder wenn man ein "x" oder ein "c" in das Eingabefeld eingibt - egal ob am Anfang oder am Ende eines Wortes. Deaktiveren von "per ESC-Taste schließen..." bzw. "Schließen des Layers per Klick..." brachte Abhilfe.
https://github.com/srhinow/srlayer/blob/master/ModuleSRLayer.php#L163
Das geht bei Contao < 3.2.0 schief uuid ist erst ab >3.2.0 vorhanden und führt zu einem Fehler
[27-Aug-2014 12:38:59] PHP Fatal error: Uncaught exception 'Exception' with message 'Query error: Unknown column 'tl_files.uuid' in 'where clause' (SELECT * FROM tl_files WHERE tl_files.uuid='0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0')' thrown in /var/www/web119/htdocs/test/system/modules/core/library/Contao/Database/Statement.php on line 282
#0 /var/www/web119/htdocs/test/system/modules/core/library/Contao/Database/Statement.php(253): Contao\Database\Statement->query()
#1 /var/www/web119/htdocs/test/system/modules/core/library/Contao/Model.php(616): Contao\Database\Statement->execute('0??????????????...')
#2 /var/www/web119/htdocs/test/system/modules/core/library/Contao/Model.php(517): Contao\Model::find(Array)
#3 [internal function]: Contao\Model::findBy('uuid', '0??????????????...')
#4 /var/www/web119/htdocs/test/system/modules/core/library/Contao/Model.php(559): call_user_func_array('static::findBy', Array)
#5 /var/www/web119/htdocs/test/system/modules/srlayer/ModuleSRLayer.php(163): Contao\Model::__callStatic('findByUuid', Array)
#6 /var/www/web119/htdocs/test/system/modules/srlayer/ModuleSRLayer.php(163): Contao\FilesModel::findByUuid('0??????????????...' )
#7 /var/www/web119/htdocs/test/system/modules/core/modules/Module.php(148): ModuleSRLayer->compile()
#8 /var/www/web119/htdocs/test/system/modules/srlayer/ModuleSRLayer.php(61): Contao\Module->generate()
#9 /var/www/web119/htdocs/test/system/modules/core/elements/ContentModule.php(63): ModuleSRLayer->generate()
#10 /var/www/web119/htdocs/test/system/modules/core/library/Contao/Controller.php(490): Contao\ContentModule->generate()
#11 /var/www/web119/htdocs/test/system/modules/core/modules/ModuleArticle.php(184): Contao\Controller->getContentElement(Object(Contao\ContentModel), 'main')
#12 /var/www/web119/htdocs/test/system/modules/core/modules/Module.php(148): Contao\ModuleArticle->compile()
#13 /var/www/web119/htdocs/test/system/modules/core/modules/ModuleArticle.php(59): Contao\Module->generate()
#14 /var/www/web119/htdocs/test/system/modules/core/library/Contao/Controller.php(405): Contao\ModuleArticle->generate(false)
#15 /var/www/web119/htdocs/test/system/modules/core/library/Contao/Controller.php(229): Contao\Controller->getArticle(Object(Contao\ArticleModel), true, false, 'main')
#16 /var/www/web119/htdocs/test/system/modules/core/pages/PageRegular.php(138): Contao\Controller->getFrontendModule('0', 'main')
#17 /var/www/web119/htdocs/test/index.php(239): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#18 /var/www/web119/htdocs/test/index.php(407): Index->run()
#19 {main}```
Im Backend lassen sich unter "Javascript-Einstellungen bearbeiten" die Felder "Overlay-ID", "Layer-ID", "Schließen-Button-ID" sowie "Schließen-Link-Klasse" nicht editieren. Auch die Hilfetexte werden nicht komplett angezeigt bei Mous-Hover.
Das <h3> von "Einblend-Geschwindigkeit" (ctrl_srl_set_duration) scheint hier die obigen Felder mit seinem oberen Abstand zu überdecken.
Es fehlt hier beim "<div class="widget" von "Einblend-Geschwindigkeit" (ctrl_srl_set_duration) das "w50", korrekt wäre: "<div class="w50 widget".
Ich mache dazu einen Pull-Request mit dem Fix in der srlayer/dca/tl_module.php
Even if you select a custom template (instead of srl_default), it will not be used, because of this small error in ModuleSRLayer:
if($this->srl_template != '') $strTemplate = $this->srl_template;
It should instead say:
if($this->srl_template != '') $this->strTemplate = $this->srl_template;
Hi,
erstmal danke für die Erweiterung. Ist sehr schön und bequem einzusetzen.
Eine kleine Sache empfinde ich aber als unpraktisch: Feste Pixelwerte für die Größendefinitionen sind in Hinblick auf responsive Design eher unvorteilhaft. Ist es möglich, hier auch %-Werte zu verwenden, so wie es bsp. bei colorbox auch möglich ist?
Isn't this causing problems ever?
typolight/main.php
https://github.com/srhinow/srlayer/blob/master/ModuleSRLayer.php#L55
The timestamp appending on the CSS and JavaScript files that are included by the module
...'?'.time();
(ModuleSRLayer.php#L189 and ModuleSRLayer.php#L193) are causing problems when using Theme+:
[26-Feb-2015 15:02:58 Europe/Vienna] PHP Fatal error: Uncaught exception 'RuntimeException' with message 'The source file "[...]/system/modules/srlayer/assets/css/srl_default.css?1424959378" does not exist.' thrown in [...]/system/modules/assetic/classes/vendor/kriswallsmith/assetic/src/Assetic/Asset/FileAsset.php on line 73
#0 [...]/system/modules/theme-plus/classes/src/ThemePlus/ThemePlus.php(242): Assetic\Asset\FileAsset->getLastModified()
#1 [...]/system/modules/theme-plus/classes/src/ThemePlus/ThemePlus.php(1232): ThemePlus\ThemePlus::getAssetPath(Object(Assetic\Asset\FileAsset), 'css')
#2 [...]/system/modules/theme-plus/classes/src/ThemePlus/ThemePlus.php(797): ThemePlus\ThemePlus->addAssetsToCollectionFromArray(Array, 'css', true, Object(Assetic\Asset\AssetCollection), Array, Object(Assetic\Filter\FilterCollection))
#3 [...]/system/modules/theme-plus/classes/src/ThemePlus/ThemePlus.php(623): ThemePlus\ThemePlus->parseStylesheets(Object(Contao\LayoutModel), Array)
#4 [...]/system/modules/core/library/Contao/Controller.php(1819): ThemePlus\ThemePlus->hookReplaceDynamicScriptTags('<!DOCTYPE html>...')
#5 [...]/system/modules/core/classes/FrontendTemplate.php(147): Contao\Controller::replaceDynamicScriptTags('<!DOCTYPE html>...')
#6 [...]/system/modules/core/pages/PageRegular.php(174): Contao\FrontendTemplate->output(true)
#7 [...]/index.php(248): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#8 [...]/index.php(431): Index->run()
#9 {main}
Theme+/Assetic interprets the appendix as a regular path and thus it fails to load the file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.