Skip to content

Instantly share code, notes, and snippets.

@koentjuh1
koentjuh1 / DOIT CMS module naam wijzigen.md
Created January 24, 2017 11:20
DOIT CMS module naam wijzigen
  1. Database aanpassen tabel ‘module_naam’ naar gewenste naam a. Wel met koppeltekens en niet met spaties
  2. In de entitysettings (bijvoorbeeld phpincludes/classes/modules/faq/entities/faq_item/faq_itemsettings.class.php’ de velden ‘name_plural’ en ‘name_singular’ wijzigen
  3. Database aanpassen tabel ‘backendmenu’ naam en title
  4. Database eventueel aanpassen ‘backendmenu_item’ en ‘backendsubmenu’
@koentjuh1
koentjuh1 / DOIT CMS afbeelding grid galerij readme.md
Last active January 24, 2017 09:10
DOIT CMS afbeelding grid galerij toevoegen met crop

Eerst bij entity pagina een grid veld images toevoegen(zie projecthuismanuitvaart)

@koentjuh1
koentjuh1 / php content html special chars.php
Created January 19, 2017 12:59
php content html special chars.php
$content_short_project = Formatter::CleanStringLimit($object->content, 60);
echo htmlspecialchars_decode($content_short_project);
@koentjuh1
koentjuh1 / formulier in fancybox.html
Created January 18, 2017 14:02
formulier in fancybox.html
<a href="[Formulier link]" class="fancybox-ajax">Stuur een e-mail</a>
@koentjuh1
koentjuh1 / Reset filter.js
Created January 11, 2017 08:30
Reset filter, reset checkbox
//Reset filters
$(".reset-filters").click(function(){
$(".filter-inner input[type='checkbox']").prop('checked',false);
});
@koentjuh1
koentjuh1 / Check if afbeelding isset.php
Created December 9, 2016 08:29
Check if afbeelding isset
<?php
if (strlen($nieuwsbericht->afbeelding) > 0 && file_exists(PUBLIC_PATH . '/' . $nieuwsbericht->afbeelding)) {
?>
<img itemprop="image" src="<?=getCrop($nieuwsbericht->afbeelding, '389x373')?>" alt="">
<?php
} else {
?>
<img itemprop="image" src="images/nieuws-lorum.jpg" alt="">
<?php
}
@koentjuh1
koentjuh1 / Doit tekstblok module toevoegen.php
Created November 23, 2016 10:22
Doit tekstblok module toevoegen
<?php CMSFrontend::renderModule('pagina', array('type' => 'Tekstblok', 'code' => 'tekstblok_in_de_footer')); ?>
@koentjuh1
koentjuh1 / Fancybox lock.css
Created November 23, 2016 09:26
Fancybox lock
html.fancybox-lock {
overflow: visible !important;
}
@koentjuh1
koentjuh1 / Social share and Get actual link.html
Last active November 22, 2016 16:19
Social share and Get actual link