Web Basics II
Total Page:16
File Type:pdf, Size:1020Kb
CMS – kirby 16. Juni 2014 Content Management System Inhalte (Text und andere Medien) verwalten. Template + Datenbank. Verschiedene CMS TYPO3, Drupal, Joomla, Magento, Contao, LightCMS, Shopify, ProcessWire, MediaWiki, Cloud CMS, CouchCMS, MODX, Magnolia CMS, Squarespace, ExpressioneEngine, Wordpress. Pico, Stacey, Kirby. Template — Datenbank Front-End — Back-End kirby relativ einfach Flexibel 30 Euro Erinnerung PHP <?php $text = 'Hallo Welt'; echo $text; ?> Erinnerung PHP <?php $text = 'Hallo Welt'; ?> ! <?= $text ?> Struktur kirby <?php home $pages->visible() 01-ueber-uns foreach($pages->visible() AS $page) : site.txt […] Title: Über uns endforeach ?> Text: Das sind wir… 02-blog blog.txt Title: Über uns 01-hallo-welt blog.txt Title: Hallo Welt! Text: Der erste … home 01-ueber-uns site.txt Title: Über uns <?php Text: Das sind wir… $pages->visible() foreach($pages->visible() AS $page) : 02-blog […] blog.txt endforeach Title: Über uns ?> 01-hallo-welt blog.txt Title: Hallo Welt! Text: Der erste … 03-kontakt <?php home $pages->visible() 01-ueber-uns foreach($pages->visible() AS $page) : site.txt […] Title: Über uns endforeach Text: Das sind wir… ?> 02-blog blog.txt Title: Über uns 01-hallo-welt blog.txt Title: Hallo Welt! Text: Der erste … 03-kontakt <?php home $pages->visible() 01-ueber-uns foreach($pages->visible() AS $page) : site.txt $title = $page->title(); Title: Über uns $url = $page->url(); Text: Das sind wir… endforeach 02-blog ?> blog.txt Title: Über uns 01-hallo-welt blog.txt Title: Hallo Welt! Text: Der erste … 03-kontakt <?php home $pages->visible() 01-ueber-uns foreach($pages->visible() AS $page) : site.txt $title = $page->title(); Title: Über uns $url = $page->url(); Text: Das sind wir… if ($page->isActive()) { 02-blog $isActive = true; blog.txt } else { Title: Über uns $isActive = false; 01-hallo-welt } blog.txt endforeach Title: Hallo Welt! ?> Text: Der erste … 03-kontakt <?php $pages->visible() foreach($pages->visible() AS $page) : $title = $page->title(); $url = $page->url(); if ($page->isActive()) { $isActive = true; } else { $isActive = false; } $isActive = $page->isActive() ? true : false; endforeach ?> <?php $pages->visible() foreach($pages->visible() AS $page) : $title = $page->title(); $url = $page->url(); $isActive = $page->isActive() ? true : false; endforeach ?> <?php $pages->visible() foreach($pages->visible() AS $page) : $title = $page->title(); $url = $page->url(); $isActive = $page->isActive() ? true : false; ?> [HTML] <?php endforeach ?> <?php $pages->visible() foreach($pages->visible() AS $page) : $title = $page->title(); $url = $page->url(); $isActive = $page->isActive() ? true : false; ?> <a href="<?=$url?>"><?=$title?><a> <?php endforeach ?>.