Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 02:20:11 AM

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.
149700 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: special sites and using breadcrumbs  (Read 2413 times)
jimmy.barnes

Offline Offline

Posts: 29


« on: September 30, 2006, 02:47:58 PM »

Hi,

would like use breadcrumbs on my website and search this forum to get help about this. I found the following thread http://forum.websitebaker.org/index.php/topic,2452.msg15331.html and insert the code of the function to my template index.php.

All pages, except the two pages of type sitemap and search, working correct. The sitemap and search page does not show the breadcrumbs at top of site.

I modified some rows at the WB_URL/search/search.php:

Code:
...
...
...
// Check if search is enabled
if(SHOW_SEARCH != true) {
echo $TEXT['SEARCH'].' '.$TEXT['DISABLED'];
} else {
?>
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="header_title">Suchen</td>
</tr>
</table>
<br><br>

<?php
// Make pages_listed and items_listed blank arrays
$pages_listed = array();
$items_listed = array();
...
...
...

I think the modification is not the reason for the problem i describe at top. What can i do?

Thanks.

Stefan
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6823


WWW
« Reply #1 on: September 30, 2006, 05:42:09 PM »

the reason for this is, that these pages are "rootpages" in WB.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

jimmy.barnes

Offline Offline

Posts: 29


« Reply #2 on: September 30, 2006, 06:42:30 PM »

Hi Klaus,

I see a mistake in my first post of this thread. The sitemap page working fine with breadcrumbs. probable was the proxy cache debt.

Ok. but in which way can i change/modify the code of search.php page to make the breadcrumb function working fine?  smiley

Stefan
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6823


WWW
« Reply #3 on: September 30, 2006, 07:21:44 PM »

I don't think you can ... it is stored as normal page (not listed in DB). Therefor it does not exist for the breadcrumbs function.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

jimmy.barnes

Offline Offline

Posts: 29


« Reply #4 on: September 30, 2006, 07:25:30 PM »

Hi,

ok. i understand.  smiley

Thanks.
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7665



WWW
« Reply #5 on: September 30, 2006, 07:39:37 PM »

Hello,

why didn't you use the built in breadcrumbs function of WB? Call the breadcrumbs in your template with:

Code:
<?php show_breadcrumbs(); ?>

Search Page could not be shown at breadcrumbs.

Matthias
Logged
jimmy.barnes

Offline Offline

Posts: 29


« Reply #6 on: September 30, 2006, 08:21:36 PM »

Hi Matthias,

i try to use it. but i did not find out how i can handed over parameters to the function like in
Code:
<?php new_breadcrumbs(' &raquo; ',2,true,2);
.

i try to do this:
Code:
<?php show_breadcrumbs(' &raquo; ',2,true,2);

without any success. in that way the show_breadcrumbs() function did not show anything and if i use this:
Code:
<?php show_breadcrumbs(' &raquo; ',1,true,2);
the function shows the root level entries also, but i want only shows entries of the second level and above.

Stefan
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7665



WWW
« Reply #7 on: September 30, 2006, 08:55:51 PM »

Hello

here is the function:

Code:
function show_breadcrumbs($sep=' > ',$tier=1,$links=true,$depth=-1)

so the standard call is:

Code:
<?php show_breadcrumbs(' > ',1,true,-1); ?>

This is the same as

Code:
<?php show_breadcrumbs(); ?>

at shows all pages including the startpage. So not shure but when depth -1 means including the startpage you see at depth 2 only subsubsubpages. If you don't have this depth no breadcrumbs is shown  wink

What result do you wanna have with your parameters?

Matthias
Logged
jimmy.barnes

Offline Offline

Posts: 29


« Reply #8 on: October 01, 2006, 05:11:12 PM »

Hi,

it works!  smiley

Thanks a lot.

Stefan
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!