AI OnAI Off
Tested with AlloyTech:
public override ActionResult Index(ContactBlock currentBlock)
{
var renderSettings = RouteData.Values["renderSettings"] as Dictionary<string, object>;
if (renderSettings != null && renderSettings.ContainsKey("tag"))
{
var tag = renderSettings["tag"] as string;
}
...
}
Hope it helps
Hi!
If I have this controller and action ->
How can I, in code, get the tag this block is using in my action? I'm using the 7.5 - Display as feature so I want to know if it is full width, half width and so on. I've searched the web but been unable to find anything.
I know I can create a new controller and action and limiting the tags for each of theese and theryby knowing the tag but it seems overkill.
Thanks!