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'am trying to get a list of images with the MNTP. It's likely very easy but I can't find a good example.
I have created a new datatype of the type Multi-node tree picker (CSV).
My code so far (not working):
@foreach (var item in Umbraco.TypedContent(Model.GetPropertyValue("photos").ToString().Split(',')))
if (item != null)
<img src="@item.NiceUrl()" alt="@item.Name" />
Compiler Error Message: CS1928: 'Umbraco.Web.Models.RenderModel' indeholder ikke en definition for 'HasProperty', og overload 'Umbraco.Core.PublishedContentExtensions.HasProperty(Umbraco.Core.Models.IPublishedContent, string)' for bedste udvidelsesmetode har ugyldige argumenter
MNTP with images might be slow if you select a lot of images. You could also try DAMP to select media. You can find an example here: http://24days.in/umbraco/2012/damp-gallery/
Thank you for your reply!
I'am not after a huge amout of pictures - maybe five at most. Is the MNTP that slow? I like that my client is seeing the same interface when picking banners and images - even though DAMP looks very similar!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted