Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Make SelectedTag accessible to TagCloudWidget.ss


Go to End


950 Views

Avatar
losqualo

Community Member, 17 Posts

4 September 2010 at 3:12am

How would I go about making the currently selected tag accessible for conditional testing within TagCloudWidget.ss.

It can be tested within BlogSidebar.ss (actually Sidebar.ss), but not within TagCloudWidget which gets included within BlogSidebar.ss.

I can see why this is happening... TagCloudWidget.php extends Widget, but SelectedTag is loaded by BlogTree, which extends Page, however, if I'm to highlight the currently selected widget within the tag cloud itself, I need access to the value within the TagCloudWidget.

How do I get it there?

Cheers

Rob