I've got a parameter "hideNav" in a razor that is used in a template created on the doctype that contains the parameter "hideNav" as a True/False dataType. I can't get it to even show me what it is outputting to the page (True/False, "1" or "0"). Doesn't matter wheater the box is checked or not.
I guess that is my question Jules. I am not sure how to get it from the doctype to the macro. I've tried adding it the the umbraco macro tag in the template, as a blank parameter "hideNav=""" or even hideNave="someVariable" and then creating the someVariable in the cshtml :
var someVariable = Model.HasValue("hideNav").Equals("1");
Parameter from Doctype and Macro Not Accessable
I've got a parameter "hideNav" in a razor that is used in a template created on the doctype that contains the parameter "hideNav" as a True/False dataType. I can't get it to even show me what it is outputting to the page (True/False, "1" or "0"). Doesn't matter wheater the box is checked or not.
Here is my razor (part):
I am trying to add the class "hidden" to the unorderd list tag.
How are you sending the parameter value to the macro?
I guess that is my question Jules. I am not sure how to get it from the doctype to the macro. I've tried adding it the the umbraco macro tag in the template, as a blank parameter "hideNav=""" or even hideNave="someVariable" and then creating the someVariable in the cshtml :
is working on a reply...