Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Re: Create sidebars based on dataobjects

$
0
0

Hi Tahbit,

Glad you got it sorted. Looking at you code again, it looks like the exact issue you were having was in the LinkingMode method. This is actually used to determine if the link is the page you are viewing is the current page (allowing you to add for example an active state).

As you say Controller::curr() is the SilverStripe 3.x way of accessing the current controller, not Controller::current page().

Cheers,

Mo


Posted to: Create sidebars based on dataobjects | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles