Skip to content

Instantly share code, notes, and snippets.

View wdebusschere's full-sized avatar
💭
Laravel / Kirby CMS

Wannes Debusschere wdebusschere

💭
Laravel / Kirby CMS
View GitHub Profile
@wdebusschere
wdebusschere / copyfield.html
Last active October 31, 2018 12:04
When you need to copy the value of a field in another field
<!--
Usecase example: You have a section and you want to replace a textbox field with a number field.
1. Create a datasource which loads the section and the oldfield
2. Add the datasource to a page with this html
3. Create an event with allow multiple
Tip: you can use paging 500 records {$url-page} in your datasource and ?page=1 in your url.
-->
<form method="post" action="{$current-url}/?debug" enctype="multipart/form-data">
<input name="MAX_FILE_SIZE" type="hidden" value="5242880000" />
@wdebusschere
wdebusschere / event.event1.php
Last active October 31, 2018 13:08
Custom event for multiple events
<?php
class eventevent1 extends SectionEvent
{
public $ROOTELEMENT = 'event1';
public $eParamFILTERS = array(
);
public function priority(){
<!-- Test -->