Fork me on GitHub
DNN Apps - Demo-Zone
Discover DNN-Apps - simple and elegant, easy to customize
You are here: Home  >  Apps  >  View Management Demo

Look inside

Content Item

These are the values a content-editor can manage.
Name Type Value
Question System.String Can we mix tokens and Razor! Can we mix tokens and Razor!
Answer System.String <p>Yes, we can!</p> <p>Yes, we can!</p>
Image System.String File:621 File:621


Presentation Item

These are additional, optional presentation instructions a content-editor can manage. If none are entered, a default set (predefined by the designer) will be used.

No Presentation parameters specified, using default presentation for this item.


Template file

@{
	int questionId = 0;
	int.TryParse(Request.QueryString["question"], out questionId);
}
@if (questionId == 0)
{
	@RenderPage("_List.cshtml");
}
else
{
	@RenderPage("_Answer.cshtml");
}
2serve . 2invent . 2create is 2be.