madeyourday / contao-rocksolid-theme-assistant Goto Github PK
View Code? Open in Web Editor NEWRockSolid Theme Assistant Contao Extension
Home Page: http://rocksolidthemes.com/de/contao/plugins/theme-assistant
License: MIT License
RockSolid Theme Assistant Contao Extension
Home Page: http://rocksolidthemes.com/de/contao/plugins/theme-assistant
License: MIT License
I woud like to watch the inputs for color values and react when the value is changed by the colorpicker (by user is no problem). Unfortunately no event gets triggered on inputs when they are changed by JavaScript, only when changed by the user.
Maybe you can trigger an event on the input when it gets changed by the colorpicker.
contao-rocksolid-theme-assistant/src/ThemeAssistant.php
Lines 470 to 472 in e266db5
Here is my code I'm working with to color the fields.
colorRSTAInputFields = function(){
var colorValueElements = $$('.tl_help.tl_tip > i');
Array.each(colorValueElements, function(item, i){
var colorValue = item.get('text').match(/#\b[0-9A-F]{6}\b/i);
if(colorValue){
var colorInput = item.getParents('.wizard.widget').getFirst('input.tl_text');
colorInput.addEvent('input', function(){
this.setStyles({
'background-image': 'linear-gradient(to right, transparent, transparent 50%, #' + this.value + ' 50%)'
});
});
colorInput.setStyles({
'background-image': 'linear-gradient(to right, transparent, transparent 50%, ' + colorValue + ' 50%)'
});
}
});
}
colorRSTAInputFields();
window.addEvent('ajax_change', colorRSTAInputFields);
Fatal error: Uncaught exception Error with message Function name must be a string thrown in system/modules/rocksolid-theme-assistant/src/MadeYourDay/Contao/ThemeAssistantDataContainer.php on line 49
Hallo Martin, ich bin hier gerade in nem BE gelandet wo so eine Datei im Template-Ordner liegt.
templates/eightytwenty/fe_page.html5.base
Die ist bei dem neuen Theme 80/20 1.8.7 für Contao 4.4/7 nicht dabei. Kann ich diese Datei einfach löschen?
ps Hatte ein paar Probleme bis ich im BE die main.css.base beim Assistant überhaupt angezeigt bekam. Nach einer Synchronisierung der Dateien ging es dann aber.
Hallo,
kann die Funktion hinzugefügt werden, dass eigene, induviduelle Einstellungen des Theme-Designers gespeichert und wieder importiert werden können.
Danke.
Der Assistent prpft auf html(5)- und css-Dateien....
Kann das nicht auch auf scss-Dateien erweitert werden, die im Prinzip wie css-Dateien geparsed werden könnten?
Soweit ich das sehe, müssten nur im onload- und onsubmit-callback eine Zeile bei der ybestimmumg des type angepasst werden:
alt:
if (substr($dc->id, -9, 4) === '.css') {
neu:
if (substr($dc->id, -9, 4) === '.css' || substr($dc->id, -10, 5) === '.scss') {
bitte für contao 3.x anpassen auf
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
As described in http://help.rocksolidthemes.com/discussions/contao/49320
tint($color, 50%)
generates the same output as shade($color, 50%)
. See http://help.rocksolidthemes.com/discussions/contao/2523
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.