Support Forum

add forum group name in breadcrumbs

BT Ben Thrower
Ben Thrower
Member

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

2 Answers

New Answer

BT Ben Thrower
Ben Thrower
Member

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


YS Yellow Swordfish
Yellow Swordfish
Member

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/codex/themes/theme-basics/creating-a-theme/)