2013-03-24, 23:01:48
(2013-03-24, 22:56:34)mvlcek Wrote:(2013-03-24, 20:38:11)tomkop Wrote: its good solution but .. see http://caspro.esenti.eu/subdom/caspro/te...sortiment/
this show same menuicon for current page but not for each navigation item.
any solutions ? :/
<?php get_i18n_navigation('sortiment',1,9,$show=I18N_SHOW_NORMAL,$component=entrywithicons); ?>
My error: return_custom_field only returns the field for the current page. You should rather use the GetSimple caching functions, e.g.:
Code:
<li class="<?php echo $item->classes; ?>">
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php if (returnPageField($item->slug, 'menuicon')) { ?>
<img src="<?php echo htmlspecialchars(returnPageField($item->slug, 'menuicon')); ?>"/>
<?php } ?>
<?php echo htmlspecialchars($item->text); ?>
</a>
<?php if ($item->isOpen) { ?>
<ul><?php $item->outputChildren(); ?></ul>
<?php } ?>
</li>
thank you very much .. you are the best.
i donate your over your webpage .. thanx