The name 'Parameter' does not exist in the current context
Hey,
Using a fresh install of Umbraco (v7.5.6) and getting a weird issue when trying to use a parameterised macro inside the context of a RTE field.
The macro itself works fine after I've removed the @Parameter.test but whenever that gets included, it just breaks. I've done the same kind of thing before on other sites, so a bit confused as to what the cause might be.
If it helps I can post the stacktrace up from the error message? or if there's any other useful info I can provide, just let me know.
The name 'Parameter' does not exist in the current context
Hey,
Using a fresh install of Umbraco (v7.5.6) and getting a weird issue when trying to use a parameterised macro inside the context of a RTE field.
The macro itself works fine after I've removed the @Parameter.test but whenever that gets included, it just breaks. I've done the same kind of thing before on other sites, so a bit confused as to what the cause might be.
If it helps I can post the stacktrace up from the error message? or if there's any other useful info I can provide, just let me know.
Kind Regards, Daniel
Hi Daniel
Are you using dynamics params?
Can you share please a wrong code?
Thanks,
Alex
Hi Alex,
I have a macro with a partial view, the partial view throws the error even on the most barebones example, such as:
Was it this partial view code you meant?
Kind Regards, Daniel
Daniel
Try this code please:
Parameter - is removed.
Hope this is what you want.
Thanks,
Alex
Worked like a charm! :D Thanks very much Alex! :)
You are welcome, Daniel!
Glad to help you. Have a nice evening
Alex
is working on a reply...