1
huba01
hiding multimenu name
  • 2005/5/15 9:34

  • huba01

  • Just popping in

  • Posts: 19

  • Since: 2005/4/30


How can I hide the name of the multimenu or user menu, so that only menus are visible not the address.

2
Anonymous
Re: hiding multimenu name
  • 2005/5/15 9:45

  • Anonymous

  • Posts: 0

  • Since:


You can make an if-statement in theme_blockleft.html or theme_blockright.html to filter the block-titles. Perhaps like this:

<{if $block.title != 'Multimenu'}>
<
div class="blockTitle"><{$block.title}></div>
<
div class="blockContent"><{$block.content}></div>
<{else}>
<
div class="blockContent"><{$block.content}></div>
<{/if}>

3
huba01
Re: hiding multimenu name
  • 2005/5/15 9:51

  • huba01

  • Just popping in

  • Posts: 19

  • Since: 2005/4/30


But, I want to hide only the multimenu name, not all.

4
huba01
Re: hiding multimenu name
  • 2005/5/15 9:54

  • huba01

  • Just popping in

  • Posts: 19

  • Since: 2005/4/30


sorry, but nothing has changed.

5
Anonymous
Re: hiding multimenu name
  • 2005/5/15 9:58

  • Anonymous

  • Posts: 0

  • Since:


The smarty-if-statement does ONLY hide the blocktitle for multimenu. Others will be displayed.

Perhaps you renamed the modules name or the title of block in module- or block-administration? Make sure that themes and templates will be automatically updated (to be set in system preferences).

6
huba01
Re: hiding multimenu name
  • 2005/5/15 13:20

  • huba01

  • Just popping in

  • Posts: 19

  • Since: 2005/4/30


when I do this all menus are duplicaded.

7
WarDick
Re: hiding multimenu name
  • 2005/5/15 19:02

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


Hi huba01,

I use this solution. It is similiar to the one used by francis however it will work with any menu title.
Quote:

<{foreach item=block from=$xoops_lblocks}>
<{if $block.title|regex_replace:"/.*none/":"none" ne "none"}>
<div class="blockTitle"><{$block.title}></div>
<{/if}>


To use it simply insert the if statement into the left blocks loop and add the word none after the block title i.e. multimenu01 none. This solution will not print the block title or the block title background. It works perfectly for me.

8
mrvibes
Re: hiding multimenu name
  • 2006/3/20 15:53

  • mrvibes

  • Just popping in

  • Posts: 19

  • Since: 2004/10/14


Hi,

I have trawled through XOOPS and these posts seem to be getting close to what I want to do but need more specific direction.


I would like to be able to hide the titles and background of block titles - i.e. when I don't put a title in the name of the block the a little bit of background colour is still there.

I have tried pasting the above code - but to no avail.

I want to do this for centre, centre right and centre left blocks.

can you show me a whole example of WHERE to past code and what to change specifically??

many thanks in advance

jake

Login

Who's Online

168 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 168


more...

Donat-O-Meter

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

Latest GitHub Commits