WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Menubar image divider
  • Print
Pages: [1]   Go Down

Author Topic: Menubar image divider  (Read 5548 times)

Offline Kwb

  • Posts: 49
  • Gender: Male
Menubar image divider
« on: February 27, 2009, 12:10:01 PM »
I'm trying to create my own template by reading the tuts here and learning some CSS. What I can't understand is: how can I use an image to divide pages shown on the horizontal menubar ( which will be the only one, for now )? I mean, how do I say to WB that it has to "spawn" this image after each page link?

Thank you and sorry if this question has been already answered and also for my English  :-P
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: Menubar image divider
« Reply #1 on: February 27, 2009, 01:56:12 PM »
Hi,

if you use show_menu2 it's easy to "style" the menu entries to fit your needs.
For example, the parameter $aItemOpen is predifined as:
Code: [Select]
'[li][a][menu_title]</a>'if you change it to:
Code: [Select]
'[li][a][menu_title]</a><img src="your_divider_image.gif" />'You have an image behind every menu-link ...

Regards Bernd
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.

Offline Kwb

  • Posts: 49
  • Gender: Male
Re: Menubar image divider
« Reply #2 on: February 27, 2009, 04:35:30 PM »
First of all, thank you for this fast reply  :-D.
I got another question about the page links: I've understood that menu link pages must be viewed as a list, right? So for example, in HTML, with 3 pages I'll put
Code: [Select]
<ul>
<li>Page 1</li>
<li>Page 2</li>
<li>Page 3</li>
</ul>

All this 3 lines, coded in php for WB, will be:
Code: [Select]
<ul>
'[li][a][menu_title]</a><img src="your_divider_image.gif" />'
</ul>

Right?

Thanks again


Kwb
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: Menubar image divider
« Reply #3 on: February 27, 2009, 08:17:50 PM »
Hi,
it isn't a "must" to show them as a list but it's the common practice.

Your code-example is'nt right in the way you show it.
You have to use a show_men2 function-call. And set there the parameters to your needs.
Please have a look at the show_menu2 documentation, which parameters are available, what the default values are, so will get an idea what you have to do.

Regards Bernd
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.

Offline Kwb

  • Posts: 49
  • Gender: Male
Re: Menubar image divider
« Reply #4 on: February 28, 2009, 12:37:49 AM »
Quote from: BerndJM on February 27, 2009, 08:17:50 PM
Hi,
it isn't a "must" to show them as a list but it's the common practice.

Your code-example is'nt right in the way you show it.
You have to use a show_men2 function-call. And set there the parameters to your needs.
Please have a look at the show_menu2 documentation, which parameters are available, what the default values are, so will get an idea what you have to do.

Regards Bernd


Yea sorry, I knew that, I've just forgot adding the show_menu2 call...  :-P
For now I think it's everything :wink:, if I got other issues I'll ask again!
Thanks so much!

Bye   :-D


Kwb
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Menubar image divider
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2