Copied to clipboard

Flag this post as spam?

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


  • MIchael jensen 1 post 71 karma points
    Apr 21, 2018 @ 14:24
    MIchael jensen
    0

    Internal link via content picker

    Hey i have a problem vare link dont do as i like and i can realy se ware it is iam goning rong.

    i ues Umbraco version 7.10.2 on a Mysql DB and i have no problems in my health check. other then a SMTP server problem.

    my page is at this adress https://www.foxmice.dk

    in the footer i am tryning to get a a Read more link to work and i have use this code.

    The aboutPageLink is a Umbraco.ContentPicker

    <a class="link" href="@Umbraco.Field("aboutPageLink", recursive: true)"><span>@Umbraco.GetDictionaryValue("Read More")</span></a>
    

    and works fine on the fornt page bud when i get on to som other page it dont go right enymore, i am farly use to use umbraco but i must agree that it is som time sins i last made a page 2 version back i belive.

    I hop some can help me.

    Best regards Michael

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Aug 02, 2018 @ 21:03
    Alex Skrypnyk
    0

    Hi Michael

    Can you show the structure of pages you have? So page, where a link isn't working, is it a child node of the front page?

    Thanks,

    Alex

  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    Aug 03, 2018 @ 09:30
    Søren Kottal
    1

    Hi Michael

    Your problem is that the value of @Umbraco.Field()just gives the id of the page.

    Can you try using @Umbraco.NiceUrl(Umbraco.Field("aboutPageLink", recursive: true))in stead? That should give you the url.

Please Sign in or register to post replies

Write your reply to:

Draft