Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John Renz 39 posts 177 karma points
    Jan 20, 2017 @ 06:11
    John Renz
    0

    Hi Guys, I'm having a hard time implementing Multi Url. Hope someone could help me. Thank you!

    enter image description here enter image description here enter image description here enter image description here

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jan 20, 2017 @ 06:49
    Dave Woestenborghs
    0

    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

  • John Renz 39 posts 177 karma points
    Jan 20, 2017 @ 06:52
    John Renz
    0

    Hi Sir Dave,

    Apologies, I attached a wrong screenshot. This is the correct one.

    enter image description here

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jan 20, 2017 @ 07:11
    Dave Woestenborghs
    0

    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 :

    @using RJP.MultiUrlPicker.Models;
    

    Dave

  • John Renz 39 posts 177 karma points
    Jan 20, 2017 @ 07:20
    John Renz
    0

    Hi Sir Dave,

    enter image description here

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jan 20, 2017 @ 07:28
    Dave Woestenborghs
    0

    Hi John,

    Just to be sure. You are using this link picker ? https://github.com/rasmusjp/umbraco-multi-url-picker

    Dave

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jan 20, 2017 @ 07:34
    Dave Woestenborghs
    0

    And can you post a screenshot of your home doctype ?

  • John Renz 39 posts 177 karma points
    Jan 20, 2017 @ 07:39
    John Renz
    0

    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?

    enter image description here

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jan 20, 2017 @ 08:44
    Dave Woestenborghs
    0

    Is the Main page added as composition to your homepage doctype ? I don't see inheritence in your doctype setup ?

    Dave

  • John Renz 39 posts 177 karma points
    Jan 20, 2017 @ 08:35
    John Renz
    0

    Sir Dave, same error occurs.

    enter image description here

  • John Renz 39 posts 177 karma points
    Jan 20, 2017 @ 08:50
    John Renz
    0

    Sir Dave, Home is the body while Main serves as MasterPage of the website.

    enter image description here

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jan 20, 2017 @ 08:54
    Dave Woestenborghs
    101

    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 :

    var multiUrlPicker = Model.Content.Parent.GetPropertyValue<MultiUrls>("links");
    

    Let me know if it works out

    Dave

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jan 20, 2017 @ 08:55
    Dave Woestenborghs
    1

    By the way...don't call me Sir Dave...just Dave is enough :-p

  • John Renz 39 posts 177 karma points
    Jan 20, 2017 @ 09:01
    John Renz
    0

    OMG Sir, it works!!!!! Thank you so much!!!! :D

    enter image description here

  • John Renz 39 posts 177 karma points
    Jan 20, 2017 @ 09:02
    John Renz
    4

    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 :)

Please Sign in or register to post replies

Write your reply to:

Draft