I'm currently working on a Tridion 2011 SP1 implementation were we push all content to a broker database as XML and retrieve this with a .Net front-end.
Is it possible to use Tridion UI (formerly known as SiteEdit, and in Tridion 2013 as Experience Manager) to edit data in our front-end? I've read the Tridion UI manual but found only references to the Tridion Page model in combination with Tridion UI.
Can anyone give some directions on how to implement this? Thanks!
Update: Implemented basic POC that works!
After Bart's comment on using the Tridion practice project I've tried to implement it, but without luck so far. Then I implemented Frank's suggestion of using a dummy page, fooling the Tridion UI by let it think we use the Tridion page model. I've used the following html code on a plain html page for a POC:
<!DOCTYPE html>
<html>
<head>
<style>
body{
width: 450px;
margin: 0 auto 0 auto;
background: #adf;
font-family:Helvetica, Arial;
}
#wrapper {
background-color: #fff;
padding: 40px;
}
</style>
</head>
<body>
<div id="wrapper">
<!-- Page Settings: {'PageID':'tcm:101-352626-64','PageModified':'2013-07-15T17:01:27','PageTemplateID':'tcm:101-11294-128','PageTemplateModified':'2006-06-30T13:30:54'} -->
<div class="component-wrapper">
<!-- Start Component Presentation: { 'ComponentID' : 'tcm:101-238839', 'ComponentModified' : '2012-06-18T21:19:46', 'ComponentTemplateID' : 'tcm:101-232316-32', 'ComponentTemplateModified' : '2012-08-15T10:59:46', 'IsRepositoryPublished': true, 'IsQueryBased': true } -->
<h1><!-- Start Component Field: {'XPath' : 'tcm:Content/custom:Content/custom:ArticleName[1]'} -->Name of the component</h1>
<div><!-- Start Component Field: {'XPath' : 'tcm:Content/custom:Content/custom:Description[1]'} -->This is the description...</div>
</div>
</div>
<script type="text/javascript" language="javascript" defer="defer" src="http://SERVERURL/WebUI/Editors/SiteEdit/Views/Bootstrap/Bootstrap.aspx?mode=js" id="tridion.siteedit"></script>
</body>
</html>
As you can see I've put in a reference to a dummy page and a component.
The component is rendered in Tridion as a dynamic XML fragment:
When clicking the SDL Tridion button on the html page we are being redirected to the Tridion UI, which shows the following:
As you can see the page has a blue border, and both fields can be edited and saved. Thanks for all the good suggestions that pointed me in the right direction!
<!-- Start Component Presentation:
? If so, can you also show that HTML? SiteEdit and Experience Manager latch onto the containing element, so it is quite important to see that.'IsRepositoryPublished': true
and'IsQueryBased': true
) and might need to point to a dummy page.