1
karedokx
Not displaying a (certain) Block Title
  • 2004/8/3 12:39

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


Dear all,
How can i remove/not displaying a block title (only a certain block title, not the whole block title, of a section of the XOOPS portal)? I want to add an image, linking to certain section of my website, on the left side of my XOOPS portal. I tried to use Custom Block/TinyContent, to establish the simple image with a href/link, however the image is always wrapped by (my template/theme) block box and title.

For example, from the following website of mine (ss_xoops), I want to have the New Members block, for example, without the standard box and title.

How can I do that?

Thanks in advance.

2
Herko
Re: Not displaying a (certain) Block Title
  • 2004/8/3 12:49

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


You can do this by adding a conditional statement to the block theme code:

<{if $block.title !="">}> //meaning if the block title variable isn't empty.
<show block header markup><{$block.title}></block header markup>
<{/if}>

This means that this is only shown when you have filled in a block title, otherwise it is not shown.

Using this, you can put anything in this conditional statement: if $block.title != "Login" or whatever...

Herko

3
karedokx
Re: Not displaying a (certain) Block Title
  • 2004/8/4 9:55

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


herko, thanks! i understand more on the theme logic (and just read the smarty documentation). case close

once i master this xoops, i hope i can contribute and support the others too.

Login

Who's Online

148 user(s) are online (74 user(s) are browsing Support Forums)


Members: 0


Guests: 148


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