Jul 17, 2012 at 11:01 PM
Edited Jul 19, 2012 at 6:12 PM
|
I'm using template first. I have following template. Every time the process restarts the following view is not displaying "Text" [@Content.Display.Text]. If I edit one content item and publish it then everything shows up correctly on the
website until when IIS recycles the process after some idle time.
Content.Define(re =>
{
re.Title = "Generic Page";
re.Text("SubTitle", "Sub Title");
re.FreeText("TextDesc");
re.RestrictParents("GenericContainer");
re.RestrictChildren("All");
});
<article>
<h1>@Content.Data.Title</h1>
<!-- info -->
<div class="info">
<div class="info-text">
@if (Content.Has.SubTitle)
{
<h4>@Content.Data.SubTitle</h4>
}
@Content.Display.TextDesc
<br>
<br>
</div>
</div>
</article>
|