I have been trying now to print all tags without using a foreach loop. But I am not getting the result that I want.
If I just use Model.Content.GetPropertyValue I get "System.String[]" I have been trying to type it but still getting the same result.
If I set "EnablePropertyValueConverters" to false, then it works. But I would like to make it work without setting EnablePropertyValueConverters to false.
Gettins tags without foreach
Hello all,
I have been trying now to print all tags without using a foreach loop. But I am not getting the result that I want.
If I just use Model.Content.GetPropertyValue I get "System.String[]" I have been trying to type it but still getting the same result.
If I set "EnablePropertyValueConverters" to false, then it works. But I would like to make it work without setting EnablePropertyValueConverters to false.
Any idés?
(Using umbraco v 7.14)
Hello Johannes,
you can use String.Join to display your tags:
You might have to make sure to get the right propertytype first:
-Jonathan
Cheers Jonathan!
Works like a charm!
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.