2013-03-19, 01:57:09
(2013-03-18, 07:59:49)tomkop Wrote: i need add image(s) to navigation item. Its possible ? for example combinate with I18N customfields ?
You can store the image name or full link in a I18N Custom Field of each page and use custom rendering to display the menu, e.g. with the following component (assuming you have the full link to the image in the custom field menuicon):
Code:
<li class="<?php echo $item->classes; ?>">
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php if (return_custom_field('menuicon')) { ?>
<img src="<?php echo htmlspecialchars(return_custom_field('menuicon')); ?>"/>
<?php } ?>
<?php echo htmlspecialchars($item->text); ?>
</a>
<?php if ($item->isOpen) { ?>
<ul><?php $item->outputChildren(); ?></ul>
<?php } ?>
</li>