I'm trying getting to grips with Expression Engine. Specifically passing custom field information to a master layout
I have created two template groups. One for the overall layout including the header and footer and one to control a specific channel.
I have custom fields for the channel. Including one called "description" that I want to be able to pass back to the overall header layout. This is what I have from looking at the documentation but it doesn't work - the variable {timeline_item_description} isn't getting passed to the header. Looking at the code below what am I doing wrong?
Channel index template:
{layout:set name="desc"}{timeline_item_description}{/layout:set}
The Header layout template:
<meta property="og:description" content="{layout:desc}"
layout:set
inside thechannel:entries
variable pair?