Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
add forum group name in breadcrumbs
Avatar
B E Thrower
Member
Free Members
sp_UserOfflineSmall Offline
May 18, 2012 - 5:21 am

Hi,

I have created two forum groups one for discussion and one for support/troubleshooting which both have forums with similar names in them.

Is there a way of append the forum group name to appear before the forum name in the breadcrumbs?

Cheers

Avatar
B E Thrower
Member
Free Members
sp_UserOfflineSmall Offline
May 18, 2012 - 5:53 am

not to worry Found what I was looking for in the sp-common-view-functions.php 

file and just changed line 1171 from  'groupLink' => 0, to  'groupLink' => 1,

not sure if thats quite the right way of doing it but it had the desired result.

It would be interesting to know if its possible to make a change to the theme file rather than the core files as obviously if I update SP then I will loose any changes I have made.


Cheers


Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 18, 2012 - 6:39 am

ALL of the arguments you have discovered in the core function can be applied to the functiion call in the theme and yes - this is the best way to do things. So - using standard WP argument calling syntax - you can add the groupLink=1 to the argument list of the theme call. All arguments need to be separated by an ampersand.

So just add &groupLink=1 to the first parameter of the function call.

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626