Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 02:49:28 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.
149700 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Behaviour breadcrums changed in wb2.8.1  (Read 406 times)
RonK

Offline Offline

Posts: 81


WWW
« on: February 12, 2010, 02:09:00 PM »

Hi,

I noticed the behaviour of the breadcrums function has changed. the is because the function itself in /framework/frontend.functions.php has changed.

It now has a default (English) text "You are here", which is not handy at all if you are not building an English website. Also a additional <BR> (CR/LF) is added when "You are here" is left out, which causes the function to use two lines.

Why has it changed at all (which can be a good reason) and how can this be solved, other than editting the function in /framework/frontend.functions.php (which cannot be the idea having standardize functions).

As an interim solution I just changed the text in Dutch, and will think about a structural solution.
« Last Edit: February 12, 2010, 02:21:06 PM by RonK » Logged

ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7665



WWW
« Reply #1 on: February 12, 2010, 04:38:36 PM »

Hello,

the function has changed to have more options to configure the output in your templates index.php. There is no need of editing the function itself.

Default values if you call breadcrumbs in the index.php of your template:
Code:
<?php show_breadcrumbs(' &raquo; '0true, -1'You are here: '); ?>

1.) = the seperator
2.) = how much levels (0 = all)
3.) = link (true mehas breadcrumbs are links, false breadcrumbs are only text)
4.) = depth (-1 = all)
5.) = title (here you can change the text)

Unfortunately with releasing 2.8.1 the devs didn't document the changes well. I hope they will write a doku abaout the new features and how to use them as soon as possible.

Matthias
Logged
RonK

Offline Offline

Posts: 81


WWW
« Reply #2 on: February 12, 2010, 05:31:11 PM »

Hi Matthias,

thanks for the quick answer.

I could not image that the WB team would code the parameters HARD into the code.

And I am not such a coder I understand all the codes in WB (getting better though).

I change back my cahnged function and will call it like you did in the example.
Logged

Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 2952



WWW
« Reply #3 on: February 13, 2010, 01:32:15 AM »

Breadcrumb create following code
Code:
<div class="breadcrumb">
   <span class="title">You are here: </span>
   <a href="http://domain.tld/wb/pages/de/news.php" class="link">News</a>
   <span class="separator"> &raquo; </span>
   <span class="crumb">Forum News</span>
</div>

so you can it style with css

Dietmar
Logged

We are human beings - and nobody is perfect at all.
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!