Developer (PHP + front-end)
4 jaar MODX ervaring
modmore
@mark_hamstra
mrkh.co
De keuze voor een CMS is niet makkelijk. Er zijn enorm veel opties.
WordPress is een veel gemaakte keuze.
... maar is het wel de juiste keuze? (zie mrkh.co/wp)
... naar bijvoorbeeld MODX!
@maaike @eising @mark_hamstra Jajaja, ik ken die CMS-handelaren!
— Vasilis (@vasilis) April 17, 2013
<!doctype html>
<html lang="nl-NL">
<head>
<meta charset="[[++modx_charset]]">
<title>[[*pagetitle]] :: [[++site_name]]</title>
</head>
<body>
<h1>[[*longtitle]]</h1>
[[*content]]
</body>
</html>
<!doctype html>
<html lang="nl-NL">
<head>
<meta charset="UTF-8">
<title>Over :: Mijn Awesome Site</title>
</head>
<body>
<h1>Over mijn website</h1>
<p>Mijn site is super awesome!</p>
</body>
</html>
<h1>Onze Diensten</h1>
[[Wayfinder?
&startId=`0`
]]
<h1>Onze Diensten</h1>
<ul>
<li>
<a href="diensten/">Onze Diensten</a>
<ul>
<li><a href="diensten/design.html">Web Design</a></li>
<li><a href="diensten/modx.html">MODX Development</a></li>
</ul>
</li>
<li><a href="contact.html">Contact</a></li>
</ul>
<h1>[[*pagetitle]]</h1>
[[getResources?
&parents=`1`
&tpl=`blogposts`
]]
<h2>[[+pagetitle]]</h2>
<p>[[+introtext:limit=`500`]]</p>
<p><a href="[[~[[+id]]]]">Lees meer</a></p>
<h1>Onze Diensten</h1>
<h2>Web Design</h2>
<p>Onze designers maken voor jou de allermooiste websites die er bestaan.</p>
<p><a href=”diensten/design.html”>Lees meer</a></p>
<h2>MODX Development</h2>
<p>Wij bouwen alles in MODX. Super makkelijk, snel en gebruiksvriendelijk voor u, de klant.</p>
<p><a href=”diensten/modx.html”>Lees meer</a></p>
<ul>
<li><a href="http://nerd.vasilis.nl/"
lang="en" hreflang="en">
<span>blog</span></a>
<li><a href="http://wasstra.at/">
<span>de wasstraat</span></a>
<li><a href="http://fronteers.nl/">
<span>fronteers</span></a>
<li><a href="http://dailynerd.nl/"
lang="en"><span>daily nerd</span></a>
</ul>
<ul>
[[getResources?
&parents=`0`
&tpl=`vasilis_lijst`
&limit=`0`
&sortby=`menuindex`
&sortdir=`asc`
&context=`vasilis.nl`
]]
</ul>
<li><a href="[[~[[+id]]]]" [[+link_attributes]]>
<span>[[+pagetitle]]</span>
</a>
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>[[*pagetitle]]</title>
<link>[[~[[*id]]? &scheme=`full`]]</link>
<description>[[*introtext:cdata]]</description>
<language>[[++cultureKey]]</language>
<ttl>120</ttl>
<atom:link href="[[~[[*id]]? &scheme=`full`]]" rel="self" type="application/rss+xml" />
[[getResources? &tpl=`rssItem` &parents=`29,41`
&depth=`5` &limit=`10` &includeContent=`1`
&includeTVs=`1` &showHidden=`0` &hideContainers=`1`
]]
</channel>
</rss>
<item>
<title>[[+pagetitle:htmlent]]</title>
<link>[[~[[+id]]? &scheme=`full`]]</link>
<description>
[[+introtext:default=`[[+content:ellipsis=`600`]]`:cdata]]
</description>
<pubDate>[[+publishedon:strtotime:date=`%a, %d %b %Y %H:%M:%S %z`]]</pubDate>
<guid isPermaLink="false">[[~[[+id]]? &scheme=`full`]]</guid>
<dc:creator>
[[+createdby:userinfo=`fullname`]]
</dc:creator>
</item>
<?php
$c = $modx->newQuery('modResource');
$c->where(array(
'deleted' => false,
'published' => true,
));
$filter = $modx->getOption('filter', $scriptProperties, '');
if (!empty($filter)) {
$c->andCondition(array(
'pagetitle:LIKE' => "%{$filter}%",
));
}
foreach ($modx->getIterator('modResource', $c) as $resource) {
echo 'Gevonden: '.$resource->pagetitle.' met ID '.$resource->id;
}
[[zoekResource? &filter=`home`]]
... en nog 100.000-en andere websites.
Site Gallery @ mrkh.co/modxsites
Download @ modx.com/download
Documentatie @ rtfm.modx.com
Community Support @ forums.modx.com
Download @ modx.com/download
Documentatie @ rtfm.modx.com
Community Support @ forums.modx.com
Tweet @mark_hamstra • mrkh.co • modmo.re
Download MODX @ modx.com/download
Documentatie @ rtfm.modx.com
Community Support @ forums.modx.com
(Slides komen op mrkh.co/talknerdy)