Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 08:58:06 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155553 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: pages with the same PAGE_TITLE  (Read 2691 times)
Matze
Guest
« on: January 20, 2005, 11:51:06 AM »

Hi,
another question...
Isn't it possible to create pages with the same PAGE_TITLE?
Because I wanna have several news pages which have the same PAGE_TITLE.
Logged
fienieg
Guest
« Reply #1 on: January 20, 2005, 07:53:43 PM »

no you cant create pages that are called the same...
But you can use the feature WEBSITE_TITLE for that purpose, so all the pages have the same website title... Huh

but that depends on the template that you're using
Logged
Ryan

Offline Offline

Posts: 2048



WWW
« Reply #2 on: January 21, 2005, 02:03:41 AM »

In theory you could use the same page title, but not same menu title (because menu title is used in the filename to access the page), but it is just a code thing. If you edited the DB directly using phpMyAdmin, or something like it, then you could overcome any checks WB has. Cool
Logged

Website Baker Project Founder
www.websitebaker.or g

To contact me via email, visit:
www.ryandjurovich.c om
Matze
Guest
« Reply #3 on: January 22, 2005, 09:17:54 AM »

I have an idea, but I don't understand much of php.
Couldn't I name the pages Page_1, Page_2,...
And then in the menu I say that only the string before the '_' should be shown but the filename is still Page_1.php and so on.
This must be possible! How to do this?
Logged
Stefan
Guest
« Reply #4 on: January 22, 2005, 10:13:50 AM »

One way would be the following:
In your template index.php, locate the line where it says:
Code:
echo stripslashes($page['menu_title']);

and change it to
Code:
$text=stripslashes($page['menu_title']);
$a=strpos($text,"_");
if ($a>0)
    $text=substr($text,0,$a);
echo $text;


This searches for underscores in your menu_title, prints out the part before the first occurrence of "_" or, if none found, the full string.
Logged
Matze
Guest
« Reply #5 on: January 22, 2005, 12:47:28 PM »

Hi Stefan,
thank you for your answer, but if I use this code the output is following:
Page_1Page
Page_2Page
...
instead of 'Page'
Logged
Stefan
Guest
« Reply #6 on: January 22, 2005, 01:12:34 PM »

You have to delete the original line.
Logged
Matze
Guest
« Reply #7 on: January 22, 2005, 03:42:58 PM »

I deleted the original line!
Logged
Matze
Guest
« Reply #8 on: January 22, 2005, 04:26:18 PM »

I found my mistake, I forgot to remove the 'echo' at the beginning... rolleyes
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!