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
help iszit possible to truncate picture ? eg. i want to only display 2 picture on blogoverview using multi media pick.. here is my code....
foreach(var post in items.Skip((page - 1) * pageSize).Take(pageSize).OrderBy(x=>x.Name)){ <article> <div class="post-image"> <div class="post-heading"> <h2>@post.Name</h2> </div> </div> <p>
@{ if (post.HasValue("imgContent")) { var imagesList = post.GetPropertyValue
foreach (var imageItem in imagesCollection) { <img src="@Umbraco.Truncate(@imageItem.Url, 50, true)"/> }
}}
Hi Shin Jin
You could try
foreach (var imageItem in imagesCollection.Take(2)) { <img src="@Umbraco(@imageItem.Url)"/> }
Regards
Gary
Thank gary !! it works !!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
truncate picture help !!
help iszit possible to truncate picture ? eg. i want to only display 2 picture on blogoverview using multi media pick.. here is my code....
@{ if (post.HasValue("imgContent")) { var imagesList = post.GetPropertyValue
}}
}Hi Shin Jin
You could try
Regards
Gary
Thank gary !! it works !!
is working on a reply...