I want to use images instead of text in main menu.
I add:
class Page extends SiteTree
{
static $db = array(
);
static $has_one = array(
'MenuImg' => 'Image'
);
...
and
function getCMSFields()
{
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Images", new ImageField('MenuImg','Menu image'));
...
than attach my image for menu.
but i can't get how to use it in my template.
i use <% control Menu(1) %> to get info about menu ($Title, $Content) but there is no $MenuImg there.
how i can use $MenuImg in my templates?