Skip to content

Instantly share code, notes, and snippets.

@ps-team
Created October 27, 2017 09:35
Show Gist options
  • Save ps-team/ea83940532aa7aa7e2a1b2897b26c72e to your computer and use it in GitHub Desktop.
Save ps-team/ea83940532aa7aa7e2a1b2897b26c72e to your computer and use it in GitHub Desktop.
How to get the alt text of an Image node using the WebApi
@using Contensis.Framework.Web
@{
NodeFactory nf = new NodeFactory();
ContentNode n = (ContentNode)nf.LoadById(####);
<img src="@n.Path" alt="@n.MenuName" />
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment