modx:aktuelles
Inhaltsverzeichnis
Codebeispiel für den Bereich Aktuelles
Aktuelles Startseite
[[!getPage? &elementClass=`modSnippet` &element=`getResources` &parents=`12` &depth=`0` &limit=`15` &pageVarKey=`page` &sortbyTV=`date` &sortdirTV=`ASC` &showHidden=`true` &includeTVs=`1` &tpl=`newsRowTpl` &pageFirstTpl = `<li class="control"><a[[+classes]][[+title]] href="[[+href]]">Erste</a></li>` &pageLastTpl = `<li class="control"><a[[+classes]][[+title]] href="[[+href]]">Letzte</a></li>` ]] <div class="paging"> <ul class="pagination"> [[!+page.nav]] </ul> </div>
Einzelne Items
<article> <h1><a href="/[[~[[+id]]]]" title="[[+pagetitle]]">[[+pagetitle]]</a></h1> <div class="white teaser"> <div class="row"> <div class="eight columns"> <h2>[[+longtitle]]</h2> <p><span class="hide-on-desktops">[[+publishedon:strtotime:date=`%d.%m.%Y` ]]</span>[[+introtext]] <a href="/[[~[[+id]]]]" title="[[+pagetitle]]">[<span>mehr...</span>]</a></p> </div> <div class="four columns hide-on-phones"> <ul itemscope="itemscope" itemtype="http://schema.org/Article" class="tools"> <li itemprop="datePublished" content="[[+publishedon:strtotime:date=`%d.%m.%Y` ]]" class="date"> [[+publishedon:strtotime:date=`%d.%m.%Y` ]]</li> </ul> </div> </div> </div> </article>
modx/aktuelles.txt · Zuletzt geändert: 2016-04-26 10:35 von t.schuermann