Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
create template with dropdown menues
#1
Dear all,

i have question i like to adapte and existing (free css or joomla templte) to get simple.
Is the are howto exist if i like to use an "dropdown menue" with there?

I do not found any solution to do that. (I18N support too)

for examplet template like this: http://joomlathemes.co/demo3x/blue-lotus


Hope anyone can help me.

best regards,

Harald
Reply
#2
create component 'menu'
Code:
<?php
$s = array('current', 'activepath', 'currentpath', 'open');
$r = array('active', 'active', 'active', 'parent');
$c = str_replace($s, $r, $item->classes);
?>
<?php if ($item->isOpen) { ?>
<li class="<?php echo $c; ?> deeper">
    <a class="color2" href="<?php echo htmlspecialchars($item->link); ?>">
        <span class="menutitle">
            <?php echo htmlspecialchars($item->text); ?>
        </span> <span class="menudesc"></span><i class="icon-angle-down"></i>
    </a>
    <ul class="sub-menu">
        <?php $item->outputChildren(); ?>
    </ul>
</li>
<?php } else { ?>
<li class="<?php echo $c; ?>">
    <a class="color1" href="<?php echo htmlspecialchars($item->link); ?>">
        <span class="menutitle"><?php echo htmlspecialchars($item->text); ?> <span class="menudesc"></span>
    </a>
</li>
<?php } ?>
in a template, use the following code
Code:
<ul><?php get_i18n_navigation(return_page_slug(),0,99, I18N_SHOW_MENU, 'menu'); ?></ul>
Reply
#3
I think the best help is hereĀ 
http://mvlcek.bplaced.net/
Reply
#4
Hi Timbow,

i test it but i do not really understand the funktions to get visual result (css etc.)

Any sample for me that i can learn it?

Harald
Reply
#5
(2016-06-26, 16:23:08)phpman Wrote: Hi Timbow,

i test it but i do not really understand the funktions to get visual result (css etc.)

Any sample for me that i can learn it?

Harald

It is not totally simple, but look here:
http://line25.com/tutorials/how-to-creat...pdown-menu
Reply




Users browsing this thread: 2 Guest(s)