The Sitecore Page Editor: Unleashed
Posted 5/15/2012 by techphoria414
Today I had the honor of presenting once again to the Sitecore Users Virtual Group, this time on how to best utilize the Page Editor, as well as some helpful extensions.
The Example Code
You can download the full Visual Studio Solution used for this demo, including a version of the Dynamic Key Placeholder prototype updated for Sitecore 6.5 Update-4. The solution also includes TDS projects with the items needed to run the site.
The Page Editor: Unleashed Source Code
Other Helpful Resources
Sublayout Development with Custom Items and Scriptlets (as seen in example code)
StackOverflow: Create Content Folder
Converting Data Source Paths to IDs (John West)
Add Presentation Component Data Sources to the Links Database (John West)
Handling Presentation Component Settings (Adam Conn)
Dynamic Placeholder Keys (Original Article, including working pre-6.5 version)
Layout Deltas What Ifs (Adam Conn)
Programmatically Updating Layout Details (John West)
Advanced Database Crawler (Alex Shyba, as referenced with indexing data source content)
Cropper (screen capture tool)
Mark Ursino said:
5/17/2012 6:43 AM
This was an exception virtual user group presentation. Thanks again for presenting the topic and providing the code for reference!
Nick Wesselman said:
5/17/2012 1:27 PM
Yes those changes are included in the demo code above. Basically, in the DataItem property we do a check as to whether the item is null. If it is, we set _sublayout.Visible = false. I'd also consider checking whether Versions.Count > 0 on the data item as well, especially if you are using workflow or language layers.