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
Hello,
I cannot retrieve values from relatedlinks.
I read these pages and I tried the code, but I receive razor errors:- http://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors-v7/Related-Links- http://our.umbraco.org/forum/developers/razor/48384-Umbraco-V-703-RelatedLinks- http://our.umbraco.org/forum/umbraco-7/using-umbraco-7/49841-Problems-with-related-links-in-Umbraco-711
The errors received are:- CurrentPage not exist- NiceUrl not exist in Umbraco namespace- Generic Razor error
@Model.relatedLinks give me this value:
[ { "caption": "Google", "link": "http://www.google.it", "newWindow": false, "edit": false, "isInternal": false, "type": "external", "title": "Google" }, { "caption": "Home Page inglese", "link": "1055", "newWindow": false, "internal": "1055", "edit": false, "isInternal": true, "internalName": "en", "type": "internal", "title": "Home Page inglese" } ]
Can anyone help me?
I'm working with Umbraco version 7.1.6 assembly: 1.0.5350.2571
Thanks for help
Hi Adriano,
Are you using a legacy MacroScript/Razor Macro? You need to be using this snippet in a MVC View/Partial View or a Partial View Macro.
Jeavon
This is my first time with MVC
I'm using a MacroScript/Razor Macro (HPRelatedLinks.cshtml)...I never used the MVC View/Partial View or a Partial Macro.
I think it's time to do it :-)
Thank you I'll try
Adriano
Thanks Jeavon,i solved with your help.
I tried with Partial View Macro Files
Thank you so much
That's great! Are you using WebForms templates or MVC then?
MVC
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Problems with RelatedLinks in Umbraco v7.1.6
Hello,
I cannot retrieve values from relatedlinks.
I read these pages and I tried the code, but I receive razor errors:
- http://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors-v7/Related-Links
- http://our.umbraco.org/forum/developers/razor/48384-Umbraco-V-703-RelatedLinks
- http://our.umbraco.org/forum/umbraco-7/using-umbraco-7/49841-Problems-with-related-links-in-Umbraco-711
The errors received are:
- CurrentPage not exist
- NiceUrl not exist in Umbraco namespace
- Generic Razor error
@Model.relatedLinks give me this value:
[ { "caption": "Google", "link": "http://www.google.it", "newWindow": false, "edit": false, "isInternal": false, "type": "external", "title": "Google" }, { "caption": "Home Page inglese", "link": "1055", "newWindow": false, "internal": "1055", "edit": false, "isInternal": true, "internalName": "en", "type": "internal", "title": "Home Page inglese" } ]
Can anyone help me?
I'm working with Umbraco version 7.1.6 assembly: 1.0.5350.2571
Thanks for help
Hi Adriano,
Are you using a legacy MacroScript/Razor Macro? You need to be using this snippet in a MVC View/Partial View or a Partial View Macro.
Jeavon
This is my first time with MVC
I'm using a MacroScript/Razor Macro (HPRelatedLinks.cshtml)...I never used the MVC View/Partial View or a Partial Macro.
I think it's time to do it :-)
Thank you I'll try
Adriano
Thanks Jeavon,
i solved with your help.
I tried with Partial View Macro Files
Thank you so much
Adriano
That's great! Are you using WebForms templates or MVC then?
MVC
is working on a reply...