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
I must be hitting the friday blackout. Im at a loss at something, whivh dhould be simple...
Im in a partial, and need to pull some text from a parameter on a media node, and convert the line breaks...
@Html.Raw(@umbraco.library.ReplaceLineBreaks(@imageItem.GetPropertyValue("billedtekst")))
Everything works fine, up to when i use "@umbraco.library.ReplaceLineBreaks", then i get an error
Compiler Error Message: CS1502: The best overloaded method match for 'umbraco.library.ReplaceLineBreaks(string)' has some invalid arguments
Hi Claushingebjerg,
Try to use this method like that :
@Html.Raw(@umbraco.library.ReplaceLineBreaks(@imageItem.GetPropertyValue<string>("billedtekst")))
Thanks
BINGO
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco library in partial
I must be hitting the friday blackout. Im at a loss at something, whivh dhould be simple...
Im in a partial, and need to pull some text from a parameter on a media node, and convert the line breaks...
Everything works fine, up to when i use "@umbraco.library.ReplaceLineBreaks", then i get an error
Compiler Error Message:
CS1502: The best overloaded method match for 'umbraco.library.ReplaceLineBreaks(string)' has some invalid arguments
Hi Claushingebjerg,
Try to use this method like that :
Thanks
BINGO
is working on a reply...