wpigoury
12 years agoMentor
Getting current label within a component
Hi, Is there a way to get the current label from within a component? I mean another way than to parse the url and retrieve the label-name value from it. There should be something in the requ...
- 12 years ago
I'd suggest checking out the webuisupport context object. There are a couple methods that help you deal with path parameters:
You should be able to do something like:
<#assign label = webuisupport.path.parameters.name.get ("label-name","") /> <#if label?? && label?has_content> You chose label ${label.text} </#if>