Created
January 10, 2013 11:06
-
-
Save anonymous/4501275 to your computer and use it in GitHub Desktop.
UI 2012 examples
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
@using DD4T.Mvc.Html | |
@model DD4T.ContentModel.IComponentPresentation | |
<div> | |
@Html.SiteEditComponentPresentation(Model) | |
<h1>@Html.SiteEditField(Model, Model.Component.Fields["title"])@Model.Component.Fields["title"]</h1> | |
</div> |
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
<!-- _Layout.cshtml --> | |
<html> | |
<head></head> | |
<body> | |
<!-- Rest of code --> | |
@RenderSection("SiteEditSettings", false) | |
<!--SITE_EDIT_INIT--> | |
</body> | |
</html> |
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
@using DD4T.Mvc.Html | |
@model DD4T.ContentModel.IPage | |
@{ | |
Layout = "~/Shared/_Layout.cshtml"; | |
} | |
<!-- Code --> | |
@Html.RenderComponentPresentations() | |
@section SiteEditSettings { | |
@Html.SiteEditPage(Model) | |
} |
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
?xml version="1.0" encoding="utf-8"?> | |
<siteEdit enabled="true" style="SiteEdit2012" tridionHostUrl="http://your-tridion/"> | |
<contextPublications> | |
<contextPublication id="9" componentPublication="5" pagePublication="9" publishPublication="9" /> | |
</contextPublications> | |
</siteEdit> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment