Skip to content

Instantly share code, notes, and snippets.

View fritzmg's full-sized avatar

Fritz Michael Gschwantner fritzmg

View GitHub Profile
@fritzmg
fritzmg / MySurcharge.php
Created January 15, 2019 18:18
Custom Contao Isotope Surcharge
<?php
use Isotope\Model\ProductCollection;
class MySurcharge
{
public function findSurchargesForCollection(ProductCollection $collection): array
{
return [\MySurchargeModel::build()];
}
@fritzmg
fritzmg / git-context-global.reg
Created February 24, 2019 18:12
Windows scoop git global context menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Open Git Bash]
@="Open Git Bash"
"Icon"="C:\\ProgramData\\scoop\\apps\\git\\current\\git-bash.exe"
[HKEY_CLASSES_ROOT\*\shell\Open Git Bash\command]
@="\"C:\\ProgramData\\scoop\\apps\\git\\current\\git-bash.exe\" \"--cd=%1\""
; This will make it appear when you right click ON a folder

Contao News Sync

Contao extension to automatically synchronize news entries between different installations.

Configuration

Install the extension on all Contao installations involved in the news synchronisation. After installation, you will see additional options in your Contao news archives under Synchronisation. In order to enable a news archive to be a source for the synchronisation, simply activate the Source for synchronisation option.

Then, on the target news archive, enable the Target for synchronisation option. You will then see additional options. Under Source URL fill in the URL to the Contao installation, from which you want to fetch news entries. Then save the news archive. After saving you will see the available news archives from the remote Contao installation under News archives. Enable the remote news archives from which you want to fetch news entries, then save again.