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
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
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
Your problem is that the value of @Umbraco.Field()just gives the id of the page.
@Umbraco.Field()
Can you try using @Umbraco.NiceUrl(Umbraco.Field("aboutPageLink", recursive: true))in stead? That should give you the url.
@Umbraco.NiceUrl(Umbraco.Field("aboutPageLink", recursive: true))
is working on a reply...
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.
Continue discussion
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
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
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
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.is working on a reply...
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.