I'm trying to design a footer-sitemap area to show up on the bottom of all my pages. Here is a quick layout:
Home(themes/template/Page.ss)
Articles(themes/template/layout/ArticleHolder)
->Article 1(themes/template/layout/ArticlePage)
->article 2(themes/template/layout/ArticlePage)
->article 3(themes/template/layout/ArticlePage)
Services(themes/template/layout/ServicesHolder)
->Service 1(themes/template/layout/ServicesPage)
->Service 2(themes/template/layout/ServicesPage)
In my themes/template/Page.ss file I'm calling on
<% control Page(ArticleHolder) %>$Title<% end_control %>
to start off by inserting the ArticleHolder page title (which is also the subject of the list); Returning the word "Articles". Yet doing this, nothing comes up.
Exact code in the themes/template/Page.ss template file:
<li><% control Page(ArticlePage) %>$Title<% end_control %></li>
Exact code in the ArticleHolder.php:
<?php
/**
* Defines the ArticleHolder page type
*/
class ArticleHolder extends Page {
static $db = array(
);
static $has_one = array(
);
static $allowed_children = array('ArticlePage');
static $icon = "themes/tutorial/images/treeicons/news";
}
class ArticleHolder_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();
}
}
?>
I read that this type of control is done with the DataObjectControler, hence why I posted in this forum. Any suggestions on how to go about making this work?