Dokumentation
22.08.19
Neues Lauyout: Mobilnav | Logo | 3teilige Navigation rechts
Bietet sich bei ungeraden 3-5-7 Navigationspunkten an.
ToTo:
AJKLDFHJKADFS
24.09.
Doku - evtl. doch besser beim E-Mail-System bleiben, kein Login, bessere Suche, besseres Handling, Screenshots besser einbaubar ohne Uploads usw.
ToTo
AJKLDFHJKADFS
23.09.
Doku
Contao arbeitet jetzt mit CSS-Variablen ($maincolor) - soll ich mir diese Technik noch aneignen, oder passt die bestehende Technik.
Im Grunde ist es ja so:
- Durch den Abstand zum Contao-CSS-Framwork und die Bearbeitung externer Stylesheets (erstmalig bei neocon-consulting) hat sich schon viel verbessert
- durch das neue Format .scss ist das Arbeiten noch leichter geworden, da die CSS-Ausgabe intern bereits komprimiert und ausgegeben wird.
- Der zusätzliche Aufwand mit den CSS-Variablen scheint also durch nichts gerechtfertigt, denn die Ausgabe in HTML bleibt die gleiche
ToTo
AJKLDFHJKADFS
22.09. Alle Schriften größtenteils korrigiert, bin aber noch nicht fertig.
Die Optimierungen von heute auf "theme_2-6_schriftmuster und kontrollflächen.scss" noch nach Schriften übernehmen.
Gute Idee: alle neue kleinen Websites erstmal hier über Contao anlegen (siehe Corinna Stengl) > abstimmen mit Kunden über die Online (???) noch einrichten, dann komprimierten Quelltext kopieren und auf Kundenserver per FTP übertragen - könnte klappen, nur die Verlinkungen müssen per Hand eingegeben werden - noch testen.
wichtige Erkenntnisse:
- alles, was mit .css zu tun hat wird künftig hier gespeichert. Die alten Stile aus 2016 usw. müssen noch sauber zusammengetragen werden - Animationen usw.
- Alle neuen Entwicklungen werden zuerst auf Trekstor Windows-Explorer überprüft - danach evtl. noch auf iMac-Safari
- Es muss endlich eine saubere Situation geschaffen werden, in der ich schnell Zugriff auf alle Besonderheiten habe - und zwar gesammelt hier.
Muss mich mit der Themes-Logik noch auseinandersetzen - Beispiel DESCO - Entwicklung hier > Theme exportieren und in Ziel-Domaine importieren
Ziel ist: schneller, gesammelter und sicherer zu werden - Alle Infos Ideen usw. hier eintragen.
ToTo
- Besseres CSS-Konzept
- Kaskade HTML/Layout
- Schriften
- Navigation
- Special_content
- usw. in sinnvoller Kaskade mit schneller Ladereihenfolge abstimmen
- Flexbox wieder in den Griff bekommen, war 2016 schon mal besser
- Die Container-Strukturen kleine Breite/ volle Breite ausarbeiten
20.09. das Problem mit der CSS-Reset wenn eingeschaltet, Fonts im Footer zerhauen, wenn nicht eingeschaltet funktioniert die ul rechts oben in der Navigation nicht richtig.
16.07. mod_article_first h1 und mod_article h1 erstmals verstanden
Achtung: bei nur einem Artikel benennt sich dieser mod_article.first.last h1 - kommt aber im Moment nicht zum tragen.
14.07.
Die HTTPS-Kacke
Problem: jetzt zusätzlich eine Subdomain bewerbung.peterhirschberger.de angelegt
wird aber nicht gefunden.
Hier noch den richtigen Code einbauen ???
<IfModule mod_headers.c> # Allow access from all domains for webfonts (see contao/core-bundle#528) <FilesMatch "\.(ttf|ttc|otf|eot|woff2?|font\.css)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch></IfModule>
<IfModule mod_rewrite.c> RewriteEngine On
# Determine the RewriteBase automatically and set it as environment variable. # If you are using Apache aliases to do mass virtual hosting or installed the # project in a subdirectory, the base path will be prepended to allow proper # resolution of the app.php file and to redirect to the correct URI. It will # work in environments without path prefix as well, providing a safe, one-size # fits all solution. But as you do not need it in this case, you can comment # the following 2 lines to eliminate the overhead. RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ RewriteRule ^(.*) - [E=BASE:%1]
# Sets the HTTP_AUTHORIZATION header removed by Apache RewriteCond %{HTTP:Authorization} . RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect to URI without front controller to prevent duplicate content # (with and without `/app.php`). Only do this redirect on the initial # rewrite by Apache and not on subsequent cycles. Otherwise we would get an # endless redirect loop (request -> rewrite to front controller -> # redirect -> request -> ...). # So in case you get a "too many redirects" error or you always get redirected # to the start page because your Apache does not expose the REDIRECT_STATUS # environment variable, you have 2 choices: # - disable this feature by commenting the following 2 lines or # - use Apache >= 2.3.9 and replace all L flags by END flags and remove the # following RewriteCond (best solution) RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteRule ^app\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L]
#09.07.2018 - Umleitung auf www und https RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{HTTPS} =off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# If the requested filename exists, simply serve it. # We only want to let Apache serve files and not directories. RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^ - [L]
# Rewrite all other queries to the front controller. RewriteRule ^ %{ENV:BASE}/app.php [L]</IfModule>
<IfModule !mod_rewrite.c> <IfModule mod_alias.c> # When mod_rewrite is not available, we instruct a temporary redirect of # the start page to the front controller explicitly so that the website # and the generated links can still be used. RedirectMatch 302 ^/$ /app.php/ # RedirectTemp cannot be used instead </IfModule></IfModule>
07.07.
Die HTTPS-Kacke
Die Startseite wurde mit https markiert, die htaccess wurde erweitert (siehe unten) und es funktioniert. Wenn ich die Seite mit hhtp aufrufe, wird automatisch auf https umgeleitet.
Bauchgefühlsmaßig habe ich im Verzeichnis "web" die Original .htaccess (die Zeilen-Codes sind gegenüber früheren Anweisungen deutlich weniger) um folgenden Code erweitert:
<IfModule mod_headers.c> # Allow access from all domains for webfonts (see contao/core-bundle#528) <FilesMatch "\.(ttf|ttc|otf|eot|woff2?|font\.css)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch></IfModule>
<IfModule mod_rewrite.c> RewriteEngine On
# Determine the RewriteBase automatically and set it as environment variable. # If you are using Apache aliases to do mass virtual hosting or installed the # project in a subdirectory, the base path will be prepended to allow proper # resolution of the app.php file and to redirect to the correct URI. It will # work in environments without path prefix as well, providing a safe, one-size # fits all solution. But as you do not need it in this case, you can comment # the following 2 lines to eliminate the overhead. RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ RewriteRule ^(.*) - [E=BASE:%1]
# Sets the HTTP_AUTHORIZATION header removed by Apache RewriteCond %{HTTP:Authorization} . RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect to URI without front controller to prevent duplicate content # (with and without `/app.php`). Only do this redirect on the initial # rewrite by Apache and not on subsequent cycles. Otherwise we would get an # endless redirect loop (request -> rewrite to front controller -> # redirect -> request -> ...). # So in case you get a "too many redirects" error or you always get redirected # to the start page because your Apache does not expose the REDIRECT_STATUS # environment variable, you have 2 choices: # - disable this feature by commenting the following 2 lines or # - use Apache >= 2.3.9 and replace all L flags by END flags and remove the # following RewriteCond (best solution) RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteRule ^app\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L]
#09.07.2018 - Umleitung auf www und https RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{HTTPS} =off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# If the requested filename exists, simply serve it. # We only want to let Apache serve files and not directories. RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^ - [L]
# Rewrite all other queries to the front controller. RewriteRule ^ %{ENV:BASE}/app.php [L]</IfModule>
<IfModule !mod_rewrite.c> <IfModule mod_alias.c> # When mod_rewrite is not available, we instruct a temporary redirect of # the start page to the front controller explicitly so that the website # and the generated links can still be used. RedirectMatch 302 ^/$ /app.php/ # RedirectTemp cannot be used instead </IfModule></IfModule>
07.07.18 - Problem: svg-Logo wird nicht angezeigt - Lösung: war im falschen Ordner
07.07.
- Es zeigt sich hier - weniger ist mehr. Bisher installierte Erweiterungen DB-Backup, Frontend-Helper funktionieren wie gewohnt
- Am neuen CSS-Handling gefallen mir die Konstanten - muss ich noch verinnerlichen
- Gut am 4.4 gefällt mir das schlankere System, es wurden viele externe Erweiterungen implementiert
- Bisher läuft es eigentlich ganz gut und nach etwas Einarbeitung verstehe ich auch die neuen CSS-Strukturen besser.
07.07.18 - Problem: CSS-Backgroundimages werden nicht angezeigt - Lösung: Theme-Ordner auf "Öffentlich" gesetzt
06.07.2017
MateTheme installiert ist irgendwie da, funktioniert aber nicht
https://contao-themes.net/theme-detail/mate.html
Also das Theme finde ich sehr schön, aber die vielen Unverständnisse darüber bewegen mich, ein eigenes Theme in dieser Anmutung zu entwickeln.
06.07.2018 - Rocksolid Frontend-Editor via Composer installiert, keine Probleme
06.07.2018 - Contao 4.4 LTS via Composer installiert, keine Probleme