Get resource value

I'm writing a custom piece of code using the Group - List widget where I need to use the Widget Title value. I was able to make it work by adding the following:

#set($widgetTitle = $core_v2_widget.GetStringValue('fragmentHeader',''))

So, if I set some value in the Widget Title, the code above is gonna get it. i.e.

$widgetTitle value will be "My title". However, there's also a different way to set a value there and it is by using Resources:

Here's where I'm having a problem because the same code above is going to return "${resource:my_title} and not the actual value of the resource. I was wondering if there is a way to get the resource value, maybe I'm missing a step or something? Thanks. I'm using Telligent 11.1.8

Parents Reply
  • I think we are exactly to my original post. If you read it again, there are two ways to set up a Title for a Widget, hard-coded, or using a resource. I just wanted to know if there is a way to get the value in both scenarios. I know that for a hard-coded value, I can use $core_v2_widget.GetStringValue('fragmentHeader','')) but I can't do the same if it's pulling from a resource because right now it's returning just the token ${resource:my_title}

Children