- preview must appear as big button on top of 'overview' block on RHS of Content Edit screen
- use ContentViewMgr.php from bugfix CMS, but map with /foo/bar/preview route (needs some cleanup)
- a few things need to be configured for previews, we need to automate as much of this as possible
<div>
<h4>{this.plugin(#renderAttributeAlias#,oContent,#courseTitle#)}</h4>
<h4>{oContent.courseSubtitle}</h4>
<h4>{this.plugin(#renderAttributeAlias#,oContent,#description#)}</h4>
{oContent.description:h}
<h4>{this.plugin(#renderAttributeAlias#,oContent,#mainTopicsCoveredDuringThisTraining#)}</h4>
{oContent.mainTopicsCoveredDuringThisTraining:h}
<h4>{this.plugin(#renderAttributeAlias#,oContent,#whatWillYouLearnByTheEndOfThisTraining#)}</h4>
{oContent.whatWillYouLearnByTheEndOfThisTraining:h}
<h4>{this.plugin(#renderAttributeAlias#,oContent,#whoShouldAttend#)}</h4>
{oContent.whoShouldAttend:h}
<h4>{this.plugin(#renderAttributeAlias#,oContent,#teachingMethod#)}</h4>
{oContent.teachingMethod:h}
<h4>{this.plugin(#renderAttributeAlias#,oContent,#courseDirector#)}</h4>
{oContent.courseDirector:h}
</div>
- ie one CT heading, then Content instance body
- replace h4's with h3's
Overall
- the first time a user creates a new CT, then an instance of Content, a preview should be possible
- if the user hasn't assigned a theme, use current default theme
- we must think of a friendlier way to set the config then current Admin > Config > General, etc, etc
Other details:
- preview must appear in a new window
- at some point we can put a close button on new window