Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION I18N navigation with images or background image and text
#4
(2014-08-28, 04:04:01)GuyB Wrote: Hello Mvlcek,
Thanks for your prompt reply, I'll try it out.

Regards
Guy

Hello Mvlcek,
I've tried this and am struggling! this is what I have done..

I've created a custom field called MenuImage and set up a default image.
I've created a component called navimage with this in it:
<li class="<?php echo $item->classes; ?>">
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php echo htmlspecialchars($item->text); ?>
</a>
<?php if ($item->isOpen) { ?>
<ul><?php $item->menuimage(); ?></ul>
<?php } ?>
</li>

I've altered my template.php to this:

<ul><?php get_i18n_navigation(return_page_slug(),0,100,navimage); ?></ul>

And I keep getting error:
Notice: Use of undefined constant navimage - assumed 'navimage' in C:\vhosts

It looks I've either got the syntax wrong or the custom field isn't working correctly - any advice would be very helpful

Thanks
Guy
Reply


Messages In This Thread
RE: I18N navigation with images or background image and text - by GuyB - 2014-08-28, 05:37:34



Users browsing this thread: 2 Guest(s)