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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

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

Make SelectedTag accessible to TagCloudWidget.ss


Go to End


1240 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