@johan, if you are able to have a blank instance of umbraco installed locallly you shoudl definitely install the blog4umbraco package as it has the EXACT demonstration of what you are looking for -- I Believe :)
they do a check on the master page to see if comments have been marked closed... you should check it out [pardon the pun :)]
if statement on masterpage
Hi
I know nothing of c#, but I need to make an if statement on my masterpage.
Something like
if checkbox with the name "closeComment" is not checked
render macro
Thank you in advance
Hi Johan
Do you have a specific reason for making this check using c#?
I'm thinking that it should be possible to make the check using xslt inside the macro for instance?
/Jan
@johan, if you are able to have a blank instance of umbraco installed locallly you shoudl definitely install the blog4umbraco package as it has the EXACT demonstration of what you are looking for -- I Believe :)
they do a check on the master page to see if comments have been marked closed... you should check it out [pardon the pun :)]
Jan. Because the macro is a usercontrol not a XSLT.
Bob. Good advice. I'll make a fast test solution and install blog for Umbraco, to retrieve that if statement
Worked perfect. Here is the code for anyone interested. On the page I have a checkbox, with the alias "closeComments".
is working on a reply...