&maxElements
// Maximum number of times to display a repeating element
// This setting will be overridden by any limit values in the template
// Use the colon replacement value for element names which include colons
// Syntax: ELEMENT_NAME(x) where x is the maximum number of times to display
// Multiple elements can be defined and must be separated by a colon
// Example: `CHANNEL(5):ITEM(10)`
&startElements
// Define the start (offset) for the displaying of elements
// This setting will be overridden by any offset values in the template
// Syntax: ELEMENT_NAME(x) where x is the offset integer
// Multiple elements can be defined and must be separated by a colon
// Example: `CHANNEL(1):ITEM(5)`
&sortElements
// Specify a field to perform a natural sort on, if %RAND% is specified the elements will be randomized
// ASC and DESC can be optionally be added to modify the order in which the elements are sorted
// Syntax: ELEMENT_NAME(fieldName)
// Multiple elements can be defined and must be separated by a colon
// Example: `ITEM(pub_date DESC)`
&oddElements
// If $outerChunk is defined the snippet will call a chunk, if not,
// the snippet will attempt to use a file of the given name within the preset directory
// Syntax: ELEMENT_NAME->calledChunk
// Multiple elements can be defiend and must be separated by a colon
// Example: `ITEM->oddChunk`
&evenElements
// Syntax: ELEMENT_NAME->calledChunk
// Multiple elements can be defiend and must be separated by a colon
// Example: `ITEM->evenChunk`
&firstElement
// Syntax: ELEMENT_NAME->calledChunk
// Multiple elements can be defiend and must be separated by a colon
// Example: `ITEM->firstChunk`
&lastElement
// Syntax: ELEMENT_NAME->calledChunk
// Multiple elements can be defiend and must be separated by a colon
// Example: `ITEM->lastChunk`
<?php $feedx = new FeedX($config); $feedx->getData(); $myData = $feedx->elements[0]['children'][0]['children']; sortNodes($myData, $element, $child, $sortOrder); print_r($myData); ?>
[!FeedX? &url=`http://feeds.feedburner.com/tapestrydilbert` &tplPreset=`rss`!]
<strong><a href="http://www.dilbert.com/">Dilbert</a></strong> <ul> <li><a href="http://www.dilbert.com/comics/dilbert/archive/dilbert-20070305.html" title="Posted on Mon, 05 Mar 2007 00:01:00 -0500">Comic for 05 Mar 2007</a></li> <li><a href="http://www.dilbert.com/comics/dilbert/archive/dilbert-20070304.html" title="Posted on Sun, 04 Mar 2007 00:01:00 -0500">Comic for 04 Mar 2007</a></li> <li><a href="http://www.dilbert.com/comics/dilbert/archive/dilbert-20070303.html" title="Posted on Sat, 03 Mar 2007 00:01:00 -0500">Comic for 03 Mar 2007</a></li> <li><a href="http://www.dilbert.com/comics/dilbert/archive/dilbert-20070302.html" title="Posted on Fri, 02 Mar 2007 00:01:00 -0500">Comic for 02 Mar 2007</a></li> <li><a href="http://www.dilbert.com/comics/dilbert/archive/dilbert-20070301.html" title="Posted on Thu, 01 Mar 2007 00:01:00 -0500">Comic for 01 Mar 2007</a></li> </ul>


{{RSS->inner}}{{CHANNEL->channel}}<strong><a href="[+LINK+]">[+TITLE+]</a></strong>
<ul>
{{ITEM(1)->firstItem}}
{{ITEM(10,1)->restItems}}
</ul><li class="first"><a href="[+LINK+]" title="Posted on [+PUBDATE+]">[+TITLE+]</a></li>
<li><a href="[+LINK+]" title="Posted on [+PUBDATE+]">[+TITLE+]</a></li>
[!FeedX? &url=`http://feeds.feedburner.com/tapestrydilbert` &outerChunk=`outer`!]
<strong><a href="[+LINK+]">[+TITLE+]</a></strong>
<div id="comic">
<span id="stripimage">
{{ITEM(1)->firstItem}}
</span>
<span id="striplinks">
{{ITEM(4,1)->restItems}}
</span>
</div>
<b>[+TITLE+]</b><br /> <a href="[+LINK+]"><img src="[+ENCLOSURE.URL+]" alt="[+TITLE+]" /></a><br />
<a href="" onclick="document.getElementById('stripimage').innerHTML = '<b>[+TITLE+]</b><br />
<a href="[+LINK+]"><img src="[+ENCLOSURE.URL+]" alt="[+TITLE+],posted on [+PUBDATE+]" /></a><br />
'">[+TITLE+]</a>
<a href="" onclick="document.getElementById('stripimage').innerHTML = '<img src=[+ENCLOSURE.URL+]'">[+TITLE+]</a> 
<a href="javascript:document.getElementById('stripimage').innerHTML = '<img src=[+ENCLOSURE.URL+]';return false">[+TITLE+]</a> &firstElement=`ITEM->firstItem`

{{ITEM->restItems}}