Textpattern weiter entwickeln

Links und Einsichten zu Textpattern

http://txptips.com/display-sticky-articles-first-in-an-article-list – Seitenorganisation: Gezeigt wird zunächst der Sticky article (Seitenanfang). Wenn es keinen solchen Artikel gibt zeigt txp einen Alternativtext. Ist kein sticky article gemeint, dann wird der individuelle Artikel angezeigt.

<txp:if_article_list>
<txp:variable name="stickit"><txp:article status="sticky" limit="1">dummy text</txp:article></txp:variable>
	<txp:if_variable name="stickit" value="">
		<!-- There's no sticky article ! Just fire the first live article found -->
			<txp:title />
			<txp:body />
	<txp:else />
		<!-- We have a Sticky article, just display it -->
		<txp:article status="sticky" limit="1">
		<txp:title />
		<txp:body />
		</txp:article>
	</txp:if_variable>
</txp:if_article_list>