SiteEdit 2009 prepare BluePrinting parameters TBB

You might have noticed the last three template parameters on the Enable SiteEdit 2009 TBB provided with SiteEdit 2009, which are related to BluePrinting:

SE 2009 BluePrint parameters

These parameters are interesting but being set at the template level, their value is fixed for all pages using a given Page Template. Thanks to the existence of the Package, we can easily create a .Net TBB which will prepare these values for the current page being published, and push them to the Package. This way, by letting the template parameters empty as shown above, the Enable SiteEdit 2009 TBB will read the variables directly from the Package.

This is useful when using BluePrinting, because if we publish a shared Page (which was created at a higher level in the BluePrint), the editors won't be able to modify it, unless the "Override Page Publication" (BluePrintingPageContext) is defined with the ID of the Publication owning the Page.

BluePrint The SiteEdit 2009 Prepare TBB attached to this article pushes to the package the correct values for the:

  • BluePrintingPageContext
  • BluePrintingComponentContext
  • BluePrintingPublishContext

The code was tested with the BluePrint design shown on the right.

Please adapt the following line of code with the appropriate prefixes for your Content and Translation layer publications:

if (node.Attributes["Title"].Value.StartsWith("300 ") || node.Attributes["Title"].Value.StartsWith("200 "))

This code is used to define the "BluePrintingComponentContext" parameter, so that editors can directly edit Component fields inline, even though the Components on the Page were created in a higher Publication.


Upload the SiteEdit Prepare.dll directly to SDL Tridion or include the SiteEdit Prepare.cs file to your .Net Templating project. Place the "SiteEdit Prepare" TBB before the "Enable SiteEdit 2009" TBB in your Compound Page Template as shown in the picture.

The source code can be downloaded below, and you are free to adapt it to your needs when necessary. This TBB was used with SiteEdit 2009 and SDL Tridion 2009 SP1. It should be properly tested before being used on a Production environment.

Template Builder

License agreement
:    SiteEdit,  2009,  prepare,  BluePrint,  TBB
:   1.0
:   Yes

About the Author
Philippe Conil
Sales Engineer

Philippe Conil is part of the North America's presales team, helping customers to make the most of our products. Philippe joined SDL Tridion in 2008, and as a certified Technical Consultant has been involved in numerous customers' projects in both Europe and the US.

SDL CMT division

Most Popular Building Blocks

These are the most popular Building Blocks. Did you already get them?