I followed this guide to create a Custom field in Liferay. I have created a true/false attribute, but i want to check if this attribute is true or false, if is true get to the menu/Page a cssClass. I tried with this:
#set ($menu = $nav_item.getLayout().getExpandoBridge().getAttribute("get-menu"))
#if ($menu == "true")
<a href="" class="menu True">$nav_child.getName()</a>
#else
<a href="" class="menu">$nav_child.getName()</a>
#end
But doesn't work!
How can i check if Custom Attribute has value true or false?
Any help is greatly appreciated! Thank you so much!