Is it possible to dynamically set the metadata field value from TBB? Or is it possible to dynamically add a metadata field that does not necessarily exist in a schema from TBB?
The reason I want to do this is because I use DD4T, and I want the batch bundle to be automatically added to the DD4T XML file.
I tried the following:
public override void Transform(Engine engine, Package package) { Initialize(engine,package); var page = GetPage(); string output = page.OrganizationalItem.Title; var parent = page.OrganizationalItem as StructureGroup; while (parent != null) { output = GetLinkToStructureGroupIndexPage(parent) + Separator + output; parent = parent.OrganizationalItem as StructureGroup; }
However, none of these methods work. It's impossible?
Rob Stevenson-Leggett
source share