Currently I have a portfolio page and it shows all the images except the most recently added page is displayed as the last image on the page. (i uses pages and call them using 'childern' in to the portfolio.) I want it so its the very first image and as you scroll down the images get older in order of when they were created.
This is how I am calling them:
PortfolioHolder.ss
<% control Children %>
<div id="port_box">
<span>$portImage</span>
<span class="port_type">
<span class="port_title_type">Client:</span> $Client</span>
<span class="port_type"><span class="port_title_type">Project:</span> $Task</span>
<span class="port_type"><span class="port_title_type">Role:</span> $Role</span>
<span class="port_type"><span class="port_title_type">Summary:</span> $Content</span>
</div>
<% end_control %>
PortfolioHolder.php
<?php
/**
* Defines the PortfolioHolder page type
*/
class PortfolioHolder extends Page {
static $db = array(
);
static $has_one = array(
);
static $allowed_children = array('PortfolioPage');
static $icon = "themes/tutorial/images/treeicons/news";
}
class PortfolioHolder_Controller extends Page_Controller {
function rss() {
$rss = new RSSFeed($this->Children(), $this->Link(), "The coolest news around");
$rss->outputToBrowser();
}
function init() {
RSSFeed::linkToFeed($this->Link() . "rss");
parent::init();
}
}
?>
can anyone help please?
Thanx in advance.