Jump to:

1851 Posts in 1606 Topics by 561 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: 629 Views
  • losqualo
    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?



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.