Last active
December 31, 2015 18:28
-
-
Save adamhopkinson/8026627 to your computer and use it in GitHub Desktop.
Getting a Sitecore item url in a C# repeater
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<asp:Repeater ID="rpFooterDestinations" runat="server"> | |
<ItemTemplate> | |
<li> | |
<a href="<%# Sitecore.Links.LinkManager.GetItemUrl( | |
(Sitecore.Data.Items.Item) Container.DataItem | |
) %>"><%# Eval("DisplayName") %></a> | |
</li> | |
</ItemTemplate> | |
</asp:Repeater> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment