Report post

Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.

Users reporting for no reason may be locked out.


Post

Posted by Nick Thissen
on
You can easily loop through all items in a theme instead of all Widgets. Items encompass everything from widgets to subwidgets to labels, but also buttons, inputs and everything else. Just replace this line:
var widget = item.Theme.Widgets.Find(name);


with this:
var widget = item.Theme.Items.Find(name);


Unfortunately, it will probably not work correctly for labels in a Ticker widget. For that, it is more complicated and probably requires you to change the TemplateSubwidget instead, and then reset the ticker.