# How else do you call variables from one page into another?

**URL:** <https://talk.jekyllrb.com/t/how-else-do-you-call-variables-from-one-page-into-another/1828>\
**Category:** Help\
**Created:** [May 24, 2018, 9:49pm UTC](https://talk.jekyllrb.com/t/how-else-do-you-call-variables-from-one-page-into-another/1828 "2018-05-24T21:49:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kblife](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/kblife/32/870_2.png) [@kblife](https://talk.jekyllrb.com/u/kblife)\
**Post date:** [May 24, 2018, 9:49pm UTC](https://talk.jekyllrb.com/t/how-else-do-you-call-variables-from-one-page-into-another/1828/1 "2018-05-24T21:49:50Z")

</div>

So, I got a page’s front matter like so

```
---
title: Rapid Scaling® Weekly
permalink: /weekly/
description: Witty collections...
layout: page
---

```

Now, on a different page, somewhere else, I wanna access the variables in this page’s front matter, so I do

`{% assign newsletter_meta = site.pages | where: 'permalink', '/weekly/' %}`

then expect `{{ newsletter_meta.title }}` and `{{ newsletter_meta.oneliner_text }}` to return those values, instead blank… my question is how else do you call variables from one page into another?

---

<div class="post-metadata">

**Author:** ![chromatical](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/chromatical/32/278_2.png) [@chromatical](https://talk.jekyllrb.com/u/chromatical)\
**Post date:** [May 25, 2018, 1:01am UTC](https://talk.jekyllrb.com/t/how-else-do-you-call-variables-from-one-page-into-another/1828/2 "2018-05-25T01:01:05Z")

</div>

The `newsletter_meta` variable is an array. Try `{{ newsletter_meta[0].title }}`.

---

<div class="post-metadata">

**Author:** ![kblife](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/kblife/32/870_2.png) [@kblife](https://talk.jekyllrb.com/u/kblife)\
**Post date:** [May 25, 2018, 12:53pm UTC](https://talk.jekyllrb.com/t/how-else-do-you-call-variables-from-one-page-into-another/1828/3 "2018-05-25T12:53:43Z")

</div>

O, nice. That did it. Array, hmmm, why didn’t I think of that? But thanks a lot @chromatical for unstucking me!

---

<div class="post-metadata">

**Author:** ![chromatical](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/chromatical/32/278_2.png) [@chromatical](https://talk.jekyllrb.com/u/chromatical)\
**Post date:** [May 25, 2018, 2:46pm UTC](https://talk.jekyllrb.com/t/how-else-do-you-call-variables-from-one-page-into-another/1828/4 "2018-05-25T14:46:55Z")

</div>

You’re welcome! 🙂
