Hi all,
I wants to add links to footer of my website. I have created footerMenu.php like;
<?php
/**
* Defines the FooterMenuPage page type
*/
class FooterMenu extends Page {
static $db = array(
);
static $has_one = array(
);
static $allowed_children = array('Page');
}
class FooterMenu_Controller extends Page_Controller {
}
?>
And added footerMenu.ss in includes;
<% if FooterMenu %>
<ul id="FooterMenu">
<% control FooterMenu %>
<li class="$LinkingMode"><a href="$Link" title="Go to the $Title page">$MenuTitle</a></li>
<% end_control %>
</ul>
<% end_if %>
I also had added tab in behaviour of page like show only in footer menu and trying to call in page.ss under div footer like $footermenu but it didn’t work at all for me.
Can anyone guide me where I am making mistake? What I need to add more. Plz help me I am not too good at PHP.
Thanks in advance