Skip to content

Instantly share code, notes, and snippets.

View goldhat's full-sized avatar

Joel Milne goldhat

View GitHub Profile
use \Concrete\Core\Page\PageList;
$pageList = new PageList();
$pageList->filterByPageTypeHandle('product');
$pages = $pageList->getResults();
@goldhat
goldhat / gist:562acab85b0b1fd9b662
Created September 29, 2014 09:57
Git Store Credentials
git config --global credential.helper 'cache --timeout 3600'
@goldhat
goldhat / page_list_template.php
Created January 9, 2014 00:16
Concrete5 Page List template that loads all blocks from the pages in the list and displays them.
defined('C5_EXECUTE') or die("Access Denied.");
$rssUrl = $showRss ? $controller->getRssUrl($b) : '';
$th = Loader::helper('text');
//$ih = Loader::helper('image'); //<--uncomment this line if displaying image attributes (see below)
//$dh = Loader::helper('date'); //<--uncomment this line if displaying dates (see below)
//Note that $nh (navigation helper) is already loaded for us by the controller (for legacy reasons)
?>
<div class="sixteen columns ccm-page-list testimonials">