Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If I understand correctly you want to display links for items from different content nodes on this page.</p> <p>Easiest solution I can think of is create a new template for listing page and setup treelist select box field on the template and add /sitecore/content/Home/ for which you want to get descendants from. </p> <p>Now in the code iterate through the selected items and display them on the list page. When you get the items you should be able to get all field values of the selected items and probably that will give you thumbnail images and generate links using following code <br /> <pre> Sitecore.Data.Database dataContext = Sitecore.Context.Database;</p> <pre><code>Sitecore.Data.Item listPageItem = Sitecore.Context.Item; Sitecore.Data.Fields.MultilistField multiselectField = (MultlistField)home.Fields["[select list field name]"]; Items[] selectedItems = (multiselectField != null)? multiselectField.GetItems() : null; int listCount = (selectedItems ==null)? 0 : selectedItems.Length; for(int index=0; index &lt; listCount; index++) { Item item = selectedItems[index]; // Assuming you want to display thumbnail image as a link to the page string thumbnailUrl = item.Fields["[Thumbnail Image Path]"] string imgTag = string.Format(@"&lt;img src=""/{0}"" width=""[img width]"" alt=""{1}"" /&gt;", thumbnailUrl, item.Fields["[Title]"]); string url = Sitecore.Links.LinkManager.GetItemUrl(item); string itemLink = string.Format(@"&lt;a href=""{0}""&gt;{1}&lt;/a&gt;", url, imgTag); } </code></pre> <p></pre> <br /></p> <p>Hope this help ... </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload