Aaarh that is nice Jeavon. Now I also learn something new. I almost learn something new, when I read post about Razor in Umbraco.
Jeavon I have another issue with some Razor maybe you could help me. I don´t know if it´s okay to link to another issue in here, so I don´t. But only says it can be found under the Razor topic on the Forum.
how do I get a textstring recursiv in razor
Hi
I have a doctype called "Destination" with a property name = destinationName.
How do I make that recursive in razor?
I need the text to show on the pages below the page/doctype "Destination"
Thanks
/Kate
Hi Kate,
I worked on a project in the weekend where I need to make a logo recursive in razor, do it in the same way as I did it.
I your case I think someting like this will work for you.
I hope this will work for you.
/Dennis
Hi Dennis
I have tried that. But it dit not work
/Kate
Hi Kate,
If you are using a Razor Macro, then
@Model._destinationName
(see the underscore) will make the property request recursive.Full docs here
If you are using MVC let me know and I'll post a example for you.
Jeavon
Aaarh that is nice Jeavon. Now I also learn something new. I almost learn something new, when I read post about Razor in Umbraco.
Jeavon I have another issue with some Razor maybe you could help me. I don´t know if it´s okay to link to another issue in here, so I don´t. But only says it can be found under the Razor topic on the Forum.
/Dennis
Hi Dennis,
Glad it was useful to you, if you have a new issue best to create as a new topic as others will see it also.
Jeavon
Hi Jeavon
I totally agree with Dennis. I also learn new stuff everyday :-)
Thanks for your help
/Kate
is working on a reply...