<p>You call globals with the globals' handle, and the field name of a field in it. So, if you have a text input field named "myField" inside a global with handle "myGlobal", you can call it anywhere in your templates with:</p>

<pre><code>{{ myGlobal.myField }}
</code></pre>

CC BY-SA 3.0
2014-08-28T00:08:47.040Z
Thanks but none of your solutions works for me. I'm trying to call globals within an entry not in the template and the related entries approach is too complicated and not really what I'm looking for.

Any other ideas?
Mark H.
CC BY-SA 3.0
2014-08-28T07:29:11.637Z
I'm confused? What do you mean "within an entry"? In the control panel? You can't put anything inside an entry since an entry isn't... anything. Do you mean that you want to use the value of a global inside a text input field in an entry, or something?
André Elvan
CC BY-SA 3.0
2014-08-25T22:04:17.730Z
2014-08-25T22:04:17.730Z
André Elvan
<p>if globals don't work for you could create a related entry field that allows you call up previously created content (related blog or news posts as an example). This way you can but reference the same content through multiple entries but only have to create it once.</p>

<p>Here's the <a href="http://buildwithcraft.com/docs/relations" rel="nofollow">Craft docs for Relations</a></p>

CC BY-SA 3.0
2015-08-26T11:29:48.067Z
Could you expand on how this would work? I have created a matrix block I use on a parent page, but now want to have exactly the same block on each child page. I don't want to hardcode, but I don't want to make the user have to add it for each child page.
Sebastian Thomas
CC BY-SA 3.0
2015-08-27T01:31:08.767Z
Only way to do it would be to separate that matrix field and create it as it's only channel. Then inside whatever secondary entry, create a relationship field that points to that particular matrix field/entry. You'll end up isolating your content but you can use the same content in multiple locations.
Adam McCombs
CC BY-SA 3.0
2014-08-25T22:46:36.053Z
2014-08-25T22:46:36.053Z
Adam McCombs
<p>The answer is detailed here:
<a href="https://craftcms.stackexchange.com/questions/10053/reference-tags-inside-matrix-textfield">Reference tags inside Matrix textfield</a></p>

<p>You'll need to use the global set's element ID as the reference part (second segment) of the reference tag:</p>

<p>{globalset:51:siteUrl}</p>

<p>To find the global set's ID, go to CP -> Settings -> Globals. The URL to the global set will have the ID as the last segment (e.g. <a href="http://yoursite.craft.dev/admin/settings/globals/51" rel="nofollow noreferrer">http://yoursite.craft.dev/admin/settings/globals/51</a>)</p>

CC BY-SA 3.0
2015-09-10T14:05:19.377Z
2015-09-10T14:05:19.377Z
2017-04-13T12:50:59.930Z
Nevsie - Modeten
<p>How do I use/call globals in entries? Trying to insert a simple global called {{ whateveryounameit }} with some text but don't see anything except its name.</p>

<p>Any other ways to display common content across multiple entries?</p>

CC BY-SA 3.0
2014-11-20T22:47:49.003Z
Just found this today! It's possible :)

http://craftcms.stackexchange.com/questions/1268/is-it-possible-to-use-twig-in-a-rich-text-field
dgrebb
<globals>
Reusable content in entries, globals?
# Reusable content in entries, globals?

(Asked by: username_0 on 2014-08-25)

How do I use/call globals in entries? Trying to insert a simple global called {{ whateveryounameit }} with some text but don't see anything except its name.

Any other ways to display common content across multiple entries?

**Tags:** globals

> **Comments:**
> **username_1**: Just found this today! It's possible :)
 
 http://craftcms.stackexchange.com/questions/1268/is-it-possible-to-use-twig-in-a-rich-text-field  

---

## 3 answers

### Answer by username_2 on 2014-08-25. Score: 4

You call globals with the globals' handle, and the field name of a field in it. So, if you have a text input field named "myField" inside a global with handle "myGlobal", you can call it anywhere in your templates with:
{{ myGlobal.myField }}

> **Comments:**
> **username_0**: Thanks but none of your solutions works for me. I'm trying to call globals within an entry not in the template and the related entries approach is too complicated and not really what I'm looking for.  Any other ideas?  
> **username_2**: I'm confused? What do you mean "within an entry"? In the control panel? You can't put anything inside an entry since an entry isn't... anything. Do you mean that you want to use the value of a global inside a text input field in an entry, or something?  

---

### Answer by username_3 on 2014-08-25. Score: 1

if globals don't work for you could create a related entry field that allows you call up previously created content (related blog or news posts as an example). This way you can but reference the same content through multiple entries but only have to create it once.

Here's the [Craft docs for Relations](http://buildwithcraft.com/docs/relations)

> **Comments:**
> **username_4**: Could you expand on how this would work? I have created a matrix block I use on a parent page, but now want to have exactly the same block on each child page. I don't want to hardcode, but I don't want to make the user have to add it for each child page.  
> **username_3**: Only way to do it would be to separate that matrix field and create it as it's only channel. Then inside whatever secondary entry, create a relationship field that points to that particular matrix field/entry. You'll end up isolating your content but you can use the same content in multiple locations.  

---

### Answer by username_5 on 2015-09-10. Score: 1

The answer is detailed here:
[Reference tags inside Matrix textfield](https://craftcms.stackexchange.com/questions/10053/reference-tags-inside-matrix-textfield)

You'll need to use the global set's element ID as the reference part (second segment) of the reference tag:

{globalset:51:siteUrl}

To find the global set's ID, go to CP -> Settings -> Globals. The URL to the global set will have the ID as the last segment (e.g. <http://yoursite.craft.dev/admin/settings/globals/51>)


---

