Skip to content

Instantly share code, notes, and snippets.

View custom-ds
require_once TOOLKIT . '/class.datasource.php';
class datasourcerecent_comments extends SectionDatasource
public $dsParamROOTELEMENT = 'recent-comments';
public $dsParamORDER = 'desc';
public $dsParamPAGINATERESULTS = 'no';
public $dsParamLIMIT = '20';
View master.xml
<section id="1" handle="pages">Pages</section>
<entry id="1">
<title mode="formatted" word-count="1">Home</title>
<url-handle mode="formatted" handle="home" word-count="1">home</url-handle>
<entry id="2">
<title mode="formatted" word-count="2">Sample Page</title>
<url-handle mode="formatted" handle="sample-page" word-count="1">sample-page</url-handle>
jonmifsud / webticker.css
Created May 7, 2012
A css sample for the jQuery webticker
View webticker.css
.tickercontainer { /* the outer div with the black border */
width: 500px;
height: 27px;
margin: 0;
padding: 0;
overflow: hidden;
.tickercontainer .mask { /* that serves as a mask. so you get a sort of padding both left and right */
position: relative;
top: 8px;