This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chmod +x <file> | |
ls -l //check rights |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create file | |
vim <file name> | |
i // insert/edit file | |
esc // step out of edit modus | |
:wq // write (save) and quit | |
// more info | |
https://www.howtoforge.com/vim-basics |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prinzipieller Workflow bei allen D8 Seiten auf EDIS: | |
Auf der jeweiligen Seite im D8 Backend anmelden (URL ist bei D8 immer /user) | |
Beim EDIS Backend anmelden (siehe Alfred Zugangsdaten) | |
Im Menü "SSH Zugang" => Verwaltung =>> SSH Zugang erstellen | |
Sich mit dem erstellten SSH Zugang per Terminal verbinden | |
in den jeweiligen Ordner am Server gehen wo das Drupal liegt bzw. wo die composer.json Datei liegt. | |
mit git status checken ob wohl bis jetzt alles im GIT Repo commited wurde | |
falls nicht alles commiten mit einer Nachricht ähnlich wie "changes before composer update" | |
dann ein "composer update --with-dependencies --dry-run" durchführen und den Output in die jeweilige Confluence Seite kommentieren |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input[type="text"], input[type="email"], input[type="url"], | |
input[type="password"], input[type="search"], input[type="number"], | |
input[type="tel"], input[type="range"], input[type="date"], | |
input[type="month"], input[type="week"], input[type="time"], | |
input[type="datetime"], input[type="datetime-local"], input[type="color"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="c-main-header__languageswitcher"> | |
<ul class="u-no-liststyle"> | |
<?php | |
$langs = array(); | |
$languages = icl_get_languages( 'skip_missing=0' ); | |
if( 1 < count( $languages ) ) { | |
foreach( $languages as $l ) { | |
$classes = ( $l['active'] == 1 ) ? 'is-active' : ''; | |
$langs[] = '<li class="' . $classes . '"><a href="' . $l['url'] . '">' . $l['code'] . '</a></li>'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$included_files = get_included_files(); | |
foreach ($included_files as $filename) { | |
echo "$filename\n"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteCond %{ENV:HTTPS} !=on | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MASK-Template: | |
<f:translate key="label" /> | |
TYPO3-Setup: | |
plugin.tx_mask._LOCAL_LANG.de.label = Weiterlesen | |
plugin.tx_mask._LOCAL_LANG.en.label = Read more | |
https://stackoverflow.com/questions/52876865/typo3-mask-labels-based-on-language |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Place it in functions.php: | |
add_filter( 'wpcf7_autop_or_not', '__return_false' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isValidDate(dateString) | |
{ | |
// First check for the pattern | |
var regex_date = /^\d{4}\-\d{1,2}\-\d{1,2}$/; | |
if(!regex_date.test(dateString)) | |
{ | |
return false; | |
} |