Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 12:38:50 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155557 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: page URL filename  (Read 217 times)
dimlaz

Offline Offline

Posts: 5


« on: January 16, 2012, 12:57:46 PM »

Hello all,

Is there a way I can tell webistebaker to use a filename for a page I want, for example I create a Menu called Home, insted of home.php I want the file named abc.php.

Is this possible?

Thanks in advance
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2298



WWW
« Reply #1 on: January 16, 2012, 01:17:17 PM »

By default WB (show_menu2) uses menu_title to create the menu.
You could tell show_menu2 to use the page_title instead.
So, use the menu_title for the physical filename, the page_title for the menu.
Logged

Professional WebsiteBaker Solutions
dimlaz

Offline Offline

Posts: 5


« Reply #2 on: January 16, 2012, 01:31:30 PM »

Thank you, good idea, where can I change this from, since I am new to WB. Thanks again.
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2298



WWW
« Reply #3 on: January 16, 2012, 01:44:07 PM »

You need to change the functioncall that builds the menu in your template.

By default the menu is built by calling show_menu2() with a set of parameters.
(http://www.websitebaker2.org/media/common/add-ons/README_sm2_en.txt)
Code:
<?php
show_menu2
(
        
$aMenu          0,
        
$aStart         SM2_ROOT,
        
$aMaxLevel      SM2_CURR+1,
        
$aOptions       SM2_TRIM,
        
$aItemOpen      '[li][a][menu_title]</a>',
        
$aItemClose     '</li>',
        
$aMenuOpen      '[ul]',
        
$aMenuClose     '</ul>',
        
$aTopItemOpen   false,
        
$aTopMenuOpen   false
        
)

the 5th parameter could be changed into:
Code:
'[li][a][page_title]</a>'

Logged

Professional WebsiteBaker Solutions
dimlaz

Offline Offline

Posts: 5


« Reply #4 on: January 16, 2012, 01:57:52 PM »

Thank you very much for the help!!
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!