Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi Guys, I'm having a hard time implementing Multi Url. Hope someone could help me. Thank you!
Hi John,
The first thing that pops out is that the line in the error is different from the code example you posted :
The code example has
var multiUrlPicker = Model.Content.GetPropertyValue<MultiUrls>("multiUrlPicker");
The error has
var multiUrlPicker = Model.Content.GetPropertyValue<links>("multiUrlPicker");
Are you sure your code example is correct ?
Dave
Hi Sir Dave,
Apologies, I attached a wrong screenshot. This is the correct one.
I don't see your entire code but i guess your a missing a using directive in your view.
Can you add this :
@using RJP.MultiUrlPicker.Models;
Just to be sure. You are using this link picker ? https://github.com/rasmusjp/umbraco-multi-url-picker
And can you post a screenshot of your home doctype ?
Sir, Yes Sir, I use MultiUrl Picker. Actually Sir, I put the doctype of my MultiUrl Picker on my Main Page. This is the one considered as MasterPage that includes Menus and Footer. However my Social Media icons can be found on Home. Is it wrong Sir?
Is the Main page added as composition to your homepage doctype ? I don't see inheritence in your doctype setup ?
Sir Dave, same error occurs.
Sir Dave, Home is the body while Main serves as MasterPage of the website.
I see the issue now...Your main document type is the parent of your homepage in the content tree.
I think this code will solve your issue :
var multiUrlPicker = Model.Content.Parent.GetPropertyValue<MultiUrls>("links");
Let me know if it works out
By the way...don't call me Sir Dave...just Dave is enough :-p
OMG Sir, it works!!!!! Thank you so much!!!! :D
HAHAHA Sir you deserved to be called as "Sir" and be respected. Thank you so much sir for the help!!!
Thanks all the way from the Philippines :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Error in Multi Url
Hi Guys, I'm having a hard time implementing Multi Url. Hope someone could help me. Thank you!
Hi John,
The first thing that pops out is that the line in the error is different from the code example you posted :
The code example has
The error has
Are you sure your code example is correct ?
Dave
Hi Sir Dave,
Apologies, I attached a wrong screenshot. This is the correct one.
Hi John,
I don't see your entire code but i guess your a missing a using directive in your view.
Can you add this :
Dave
Hi Sir Dave,
Hi John,
Just to be sure. You are using this link picker ? https://github.com/rasmusjp/umbraco-multi-url-picker
Dave
And can you post a screenshot of your home doctype ?
Hi Sir Dave,
Sir, Yes Sir, I use MultiUrl Picker. Actually Sir, I put the doctype of my MultiUrl Picker on my Main Page. This is the one considered as MasterPage that includes Menus and Footer. However my Social Media icons can be found on Home. Is it wrong Sir?
Is the Main page added as composition to your homepage doctype ? I don't see inheritence in your doctype setup ?
Dave
Sir Dave, same error occurs.
Sir Dave, Home is the body while Main serves as MasterPage of the website.
Hi John,
I see the issue now...Your main document type is the parent of your homepage in the content tree.
I think this code will solve your issue :
Let me know if it works out
Dave
By the way...don't call me Sir Dave...just Dave is enough :-p
OMG Sir, it works!!!!! Thank you so much!!!! :D
HAHAHA Sir you deserved to be called as "Sir" and be respected. Thank you so much sir for the help!!!
Thanks all the way from the Philippines :)
is working on a reply...