“Variables” might be a tad misleading but I was not sure how to phrase it.
I’ve got a snippet called
get_team.php which is fetching information and images for each specific team member. And then I use that in my templates like you normally would:
<?php snippet('get_team') ?>.
The contents is very straight forward:
<?php foreach(page('team')->children()->visible() as $member): ?>
<?php endforeach ?>
In it I would also like to get the team page
description (as defined in the blueprint). Pretty much in the same way such as this:
<?php echo $page->title()->html() ?> but that will not work since I obviously is not using a specific blueprint and it’s corresponding template file here.
So, in a nutshell, this is what I’m trying to do:
<h1>Team page title</h1>
<p>Team page description</p>
[my foreach loop here]
Hopefully this all makes sense.