I have double checked that the alias exists in the CMS on the Doctype that calls this macro, the picker has some content and republished the site. Everything seems fine there.
I am calling the macro from the global template page on the website, is that what is causing the problem?
var v = Umbraco.TypedContent(1151);
var multiUrlPicker = v.GetPropertyValue<MultiUrls>("mainNavigation");
1151 is a global template page that had been set up on this website (I don't know if that is common to all Umbraco setups, but I assume it is). I need to change it to dynamically get this page's id in the future.
Model.Content.HasValue cannot find RJP MultiUrlPicker
Hi, I am replacing a uComponents multi url picker with the RJP one that I see recommended on here.
The
check
variable in my code returnsnull
and I cannot seem to use this package.I have double checked that the alias exists in the CMS on the Doctype that calls this macro, the picker has some content and republished the site. Everything seems fine there.
I am calling the macro from the global template page on the website, is that what is causing the problem?
This is the reference in my
Umbraco.Config
showing that it exists:This was my solution:
1151
is a global template page that had been set up on this website (I don't know if that is common to all Umbraco setups, but I assume it is). I need to change it to dynamically get this page's id in the future.is working on a reply...