Copied to clipboard

Flag this post as spam?

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


  • kaivalya 16 posts 96 karma points
    Jan 05, 2016 @ 15:43
    kaivalya
    0

    how to get the link name while using Content picker

    can anybody help me with this, I have sliders on my homepage and there is a learn more button where I am using content picker for the user to pick the link

    http://velocity.staging.synergynetworx.com/home

    here I am getting the node id instead of url name, I want to have the url name

    | am using this code but no luck with getting the url name

    @Umbraco.TypedContent(Model.Content.GetPropertyValue ("slider1ButtonLink")).Url"

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Jan 05, 2016 @ 15:49
    Dave Woestenborghs
    1

    Hi Kaivalya,

    This code seems correct. If I look at the link that you provided it seems okay to me as well.

    Dave

  • kaivalya 16 posts 96 karma points
    Jan 05, 2016 @ 16:18
    kaivalya
    0

    Hi Dave

    Thanks yes, its working, one simple call can you tell me, is there anyway to remove / at the end of the link generated by the content picker?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Jan 05, 2016 @ 18:07
    Dave Woestenborghs
    100

    Hi,

    Yes this is possible. Go to your umbracoSettings.config file and change the setting addTrailingSlash to false

    See docs : https://our.umbraco.org/documentation/Reference/Config/umbracoSettings/

    Dave

  • kaivalya 16 posts 96 karma points
    Jan 06, 2016 @ 16:04
    kaivalya
    0

    Thanks Dave it works, Thanks again or your support

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Jan 06, 2016 @ 16:44
    Dave Woestenborghs
    1

    Don't forget to mark this topic as a solution. So others can find it as well.

    Dave

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies