Cyberholic Video-tutorials
Tutorials and development i uploaded to YouTube as series depending on the project i am working on, idea that i am having or knowledge i learned.

[CH v.2.1.2] - Winter CMS
Create dynamic thumbnails within Winter CMS thanks to the resize filter.
Winter CMS
gallery
image
resize
[CH v.2.1.1] - Winter CMS
How to install and use the Twig Extensions by Vojta Svoboda.
Winter CMS
twig
plugin
extension
[CH v.2.1.0] - Winter CMS
How to set up the integrated mail settings within Winter CMS.
Winter CMS
e-mail
smtp
[CH v.1.2.0] - www.inoxed.net
Introduction on how to create a skate spot website with Winter CMS
[CH v.1.1.14] - www.cyberholic.es
Adapt blog entry views depending on its category within the Winter blog plugin.
[CH v.1.1.13a] - www.cyberholic.es
How to customize the pagination for the Blog entries.
Winter CMS Fomantic UI
pagination
[CH v.1.1.13] - www.cyberholic.es
How to create a pagination of for your blog entries within Winter CMS with Fomantic UI.
Winter CMS Fomantic UI
pagination
[CH v.1.1.12] - www.cyberholic.es
How to create a gallery like overview of blog post entries with Winter CMS.
Winter CMS
blog
gallery
photos
[CH v.1.1.11a] - www.cyberholic.es
Create a minimal listing of blog posts.
Winter CMS
blog
[CH v.1.1.11] - www.cyberholic.es
How i installed the Winter blog plugin into my website.
[CH v.1.1.10a] - www.cyberholic.es
How to create a dynamic listing with Fomantic-UI in Winter CMS.
[CH v.1.1.10] - www.cyberholic.es
How to list content with a Fomantic-UI list.
[CH v.1.1.9a] - www.cyberholic.es
Solution for the last video fail.
[CH v.1.1.9] - www.cyberholic.es
How to create links to sub-pages with Winter CMS.
[CH v.1.1.8] - www.cyberholic.es
How to work with partials in Winter CMS.
[CH v.1.1.7] - www.cyberholic.es
How to add a Sidepanel and a fixed top menu to the blog.
[CH v.1.1.6] - www.cyberholic.es
Install the Agent plugin in your Winter CMS for "Mobile first"
[CH v.1.1.5b] - www.cyberholic.es
Why i did fail on the previous filter on adding Fontawesome to my Winter CMS project.
[CH v.1.1.5a] - www.cyberholic.es
Adding the Fontawesome Icons to the Fomantic-UI to be used within Winter CMS.
[CH v.1.1.4] - www.cyberholic.es
Add some META tags to the Winter CMS website and include local JS libraries.
[CH v.1.1.3] - www.cyberholic.es
How to add the Fomantic-UI CSS framework to your Winter CMS website.
[CH v.1.1.2] - www.cyberholic.es
How to create a blank Theme in Winter CMS.
HTML
theme
template
Winter CMS
[CH v.1.1.1] - www.cyberholic.es
How to create a personal blog or website with Winter CMS.
blog
news
Winter CMS
[CH v.1.1.0] - www.cyberholic.es
Introduction on how to create a blog or news website with Winter CMS.
blog
news
Winter CMS

Via Flipdown.js einen Countdown darstellen.

I used this small script on a page showing a countdown to a date with the oldschool flipclock animation. As it was a multilanguage website i also added an array with several time definitions depending on the language the user has chosen. For all of this the flipdown JS library by PButcher is used.

<script>
            document.addEventListener('DOMContentLoaded', () => {
                switch('{{ appLanguage }}') {
                    case "es":
                        theheadings= ["Días", "horas", "minutos", "segundos"];
                        break;
                    case "en":
                        theheadings= ["Days", "Hours", "Minutes", "Seconds"];
                        break;
                    case "de":
                        theheadings= ["Tage", "Stunden", "Minuten", "Sekunde...

How to detect a mobile device with JS.

Um heraus zu finden ob der Besucher einer Seite selbige mit seinem Mobiltelefon abruft, hab ich das folgende kleine Javascript entdeckt das mit dem windows.matchmedia Tag arbeitet.

<script>
$(document).ready(function(){
    if(window.matchMedia("(max-width: 767px)").matches){
        // The viewport is less than 768 pixels wide
        alert("This is a mobile device.");
    } else{
        // The viewport is at least 768 pixels wide
        alert("This is a tablet or desktop.");
    }
});
</script>

Ich hab nicht nachgeforscht ob matchMedia neben der Seitenbreite noch weitere Daten wie Browser oder device abcheckt, aber fuer eine schnel...

How to map

Get the image mime info via PHP of an manual generated object by its ID in the array with images to show them.

<?php
$tid = $_GET['id'];

$map1 = { 
    1=>'2014/2014-06-28.jpg',
    2=>'2014/2014-06-29.jpg',
    3=>'2014/2014-06-30.jpg',
    4=>'2014/hund.jpg',
    5=>'2014/katze.jpg',
    6=>'2014/maus.jpg'
}

$path = $map1[$tid];
$str = file_get_contents($path);
echo $str; 
?>