I have several page templates that use a single page template TBB. The page templates pass a string, version
, into the package. The page template TBB evaluates this string via @TridionHelper.Package.GetValue("version")
and has some different markup etc. for each one. This works fine.
I want to have some of the components that are used in the page behave differently depending on this variable as well. However, the call to @TridionHelper.Package.GetValue("version")
, when used from the component template which is attached to the page returns null
. So that package value must not be persisted from the page to the component.
I looked at the Livecontent for SDL Tridion but it's a little sparse on details about the package. My questions are these:
- Is there a separate package for each item in a page? Or is there a separate package for PT and CTs? Or is there just one package for each published page?
- What is the lifecycle of the package(s)? When does it first get created, what happens to it during the publication process, and when does it die?
- If not answered by 1 and 2: Why can't I get access to the value I add in a PT from a CT?
Thanks!