1
sato-san
multiMenu in the theme.html?
  • 2006/12/22 14:32

  • sato-san

  • Quite a regular

  • Posts: 224

  • Since: 2005/7/1 1


I would like to build gladly the multi-menu into Theme.html. I would like to build a vertical menu in my Theme. Unfortunately the guidance for me is not understandable enough. Which steps have does I to go?

2
Northern
Re: multiMenu in the theme.html?
  • 2006/12/22 15:48

  • Northern

  • Just can't stay away

  • Posts: 420

  • Since: 2004/12/26


You can try out the multimenu-16 HERE
Dont be afraid of it, sence you cant realy hurt this site, youll have 120 mins, to play around till the counter hits 0.00.00 then it will remove and reset everything to the way it was befor you started.

when you get into the admins section click this Link
and then this Link

this shopuld help you out alot, if not i have a .js that will work, but its not for multimenu-8 or 16



~Marc

3
davidl2
Re: multiMenu in the theme.html?
  • 2006/12/22 16:07

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


renewehle - unfortunately its not quite as easy as in past versions, where you could use an include in your theme ... and I wish I knew why.

4
sato-san
Re: multiMenu in the theme.html?
  • 2006/12/22 16:22

  • sato-san

  • Quite a regular

  • Posts: 224

  • Since: 2005/7/1 1


Quote:
~Menu to display in theme:
This option allow you to displayone of your multiMenu directly in your theme. All you need to do is to insert that code in your current theme *:

<{include file="../modules/multiMenu/theme/multimenu.php"\}>


If I enter into the Theme, then it does not function.

5
wizanda
Re: multiMenu in the theme.html?
  • 2006/12/22 17:15

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Quote:

All taken from Multimenu instruction guide


1) Activate your menu selecting the horizontal dynamic option.
Into the bloc setting, set 'navbar' as bloc title and select column left display.

2) Edit your theme 'theme.html' file, and add the following code where you want your menu to be displayed:

<{foreach item=block from=$xoops_lblocks}>
  <{if 
$block.title == 'navbar'}>
    <{
$block.content}>
  <{/if}>
<{/foreach}>



3) Next step, spot the smarty lines used to generate your left side blocs and change it as following:

Before :

<{foreach item=block from=$xoops_lblocks}>
   <{include 
file='default/theme_blockleft.html'}>
<{/foreach}>


After:

<{foreach item=block from=$xoops_lblocks}>
  <{if 
$block.title != 'navbar'}>
   <{include 
file=='default/theme_blockleft.html'}>
  <{/if}>
<{/foreach}>



Explanation:

- 'navbar' is the name of the bloc which needs to be displayed or not.

- The first code displays the left bloc having 'navbar' as title.

- Le second one displays all the blocs except the one which has 'navbar' as title.

6
sato-san
Re: multiMenu in the theme.html?
  • 2006/12/22 19:02

  • sato-san

  • Quite a regular

  • Posts: 224

  • Since: 2005/7/1 1


Yeahhh, ist working! Thanks a lot

Login

Who's Online

327 user(s) are online (75 user(s) are browsing Support Forums)


Members: 0


Guests: 327


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits