Jump to:

1842 Posts in 1600 Topics by 558 members

Blog Module

SilverStripe Forums » Blog Module » Make SelectedTag accessible to TagCloudWidget.ss

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 624 Views
  • losqualo
    Avatar
    Community Member
    17 Posts

    Make SelectedTag accessible to TagCloudWidget.ss Link to this post

    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

    624 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.