<p>When it's only for frontend: you can search for entries from different sections with</p>

<pre><code>set entries = craft.entries.section(['blog', 'about', 'foo']).find()
</code></pre>

<p>This returns you all enabled/active entries from all the sections with the handle blog, about or foo. </p>

CC BY-SA 3.0
2018-02-22T23:03:31.827Z
2018-02-22T23:03:31.827Z
Robin Schambach
<p>I'm trying to work out if the following is possible in Craft.</p>

<p>Assuming I have a single entry, I want to theoretically tag it as a 'blog' and 'about', both of which are sections
I want to then have that entry displayed within both the blog, and the about sections.</p>

<p>From what I can tell an entry is constrained to it's parent section. But is this possible using tags or something similar?</p>

<p>Ideally a craft2 answer, as the site is being developed in craft 2, with the plan to upgrade to craft3 in the summer.</p>

<p>Thanks!</p>

<p>Tim</p>

<p><strong>UPDATE</strong></p>

<p>I feel like I need to describe the problem more, with an example.</p>

<p>Say I have an entry called 'Meet the team', and two sections 'England' and 'U.S.A', the country sections act like normal structure sections - but the Staff Team entry is applicable to both sections.</p>

<p>Is it possible when displaying the England entries to display the Staff Team entry in addition to the USA entries to display the Staff Team entry?</p>

<p>The site in development is planning on having many of these types of pages - so a hard-coded solution to 'get' the post isn't possible.</p>

<p>Another way of describing it is the Wordpress way, of having 1 page in multiple categories, so each category shows that page.</p>

CC BY-SA 3.0
2018-02-22T16:26:10.187Z
Ideally a Craft 3 answer because your site is going to break as soon as you update it and you'll have the same issue again.. Just as a side note... There are some hacks to make this possible but there is no clean solution for this. Just so make sure: you want to display the entry in your cp in multiple sections and not in your frontend? because it's trivial there
Robin Schambach
CC BY-SA 3.0
2018-02-22T22:41:54.157Z
@RobinSchambach - I'm not too bothered about backend, the main purpose is frontend. i.e. a user can get to the single entry through both a blog section and about section.
Appreciate the comments on Craft 3. I imagine that the answer will be fairly core dependent, so applicable to both?
Tim Coysh
CC BY-SA 3.0
2018-02-22T23:07:26.017Z
Craft 2 was build with the yii framework, Craft 3 was build with Yii2 and there is a really huge difference. That's why every single plugin has to be rewritten from the beginning because every plugin is going to break. Every core mechanic is going to break too. So nearly all cp changes you want to do from within a plugin is totally different between Craft 2 and Craft 3. I compared about 80% of their code and not really much remained...
Robin Schambach
CC BY-SA 3.0
2018-02-23T09:59:08.910Z
@RobinSchambach thanks Robin. I've updated the original question with a better description of the problem.
Tim Coysh
CC BY-SA 3.0
2018-02-23T10:36:31.863Z
Could you try to use proper Craft words to explain your problem? I assume you don't have the sections `England` and `USA` but the section `country` with the entries `England` and `USA` so you would like to relate those two entries with your `Meet the team` entry... correct? If so you can create a `RelationField` and relate those two entries with it. I'm still not sure what you mean with "displaying all entries" you can render in your template whatever you like.... `{{entry.title}} {%for country in entry.countries %} {{ country.title }} {%endfor%}`
Robin Schambach
CC BY-SA 3.0
2018-02-23T10:44:47.697Z
@RobinSchambach thanks for your help so far. Sorry I'm still wrapping my head around Craft, but I think I am right? We have multiple countries producing multiple pages/posts - i.e. /england will show all of England's entries /usa will show all of the USAs entires, so each country should be it's own section as it contains multiple entries?
Where I get stuck is how a single entry; i.e. Team sits across both sections.
Tim Coysh
CC BY-SA 3.0
2018-02-23T12:26:21.730Z
Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/73576/discussion-between-robin-schambach-and-tim-coysh).
Robin Schambach
<entries><sections>
Entry within multiple sections
# Entry within multiple sections

(Asked by: username_0 on 2018-02-22)

I'm trying to work out if the following is possible in Craft.

Assuming I have a single entry, I want to theoretically tag it as a 'blog' and 'about', both of which are sections
I want to then have that entry displayed within both the blog, and the about sections.

From what I can tell an entry is constrained to it's parent section. But is this possible using tags or something similar?

Ideally a craft2 answer, as the site is being developed in craft 2, with the plan to upgrade to craft3 in the summer.

Thanks!

Tim

**UPDATE**

I feel like I need to describe the problem more, with an example.

Say I have an entry called 'Meet the team', and two sections 'England' and 'U.S.A', the country sections act like normal structure sections - but the Staff Team entry is applicable to both sections.

Is it possible when displaying the England entries to display the Staff Team entry in addition to the USA entries to display the Staff Team entry?

The site in development is planning on having many of these types of pages - so a hard-coded solution to 'get' the post isn't possible.

Another way of describing it is the Wordpress way, of having 1 page in multiple categories, so each category shows that page.

**Tags:** entries, sections

> **Comments:**
> **username_1**: Ideally a Craft 3 answer because your site is going to break as soon as you update it and you'll have the same issue again.. Just as a side note... There are some hacks to make this possible but there is no clean solution for this. Just so make sure: you want to display the entry in your cp in multiple sections and not in your frontend? because it's trivial there  
> **username_0**: @RobinSchambach - I'm not too bothered about backend, the main purpose is frontend. i.e. a user can get to the single entry through both a blog section and about section. Appreciate the comments on Craft 3. I imagine that the answer will be fairly core dependent, so applicable to both?  
> **username_1**: Craft 2 was build with the yii framework, Craft 3 was build with Yii2 and there is a really huge difference. That's why every single plugin has to be rewritten from the beginning because every plugin is going to break. Every core mechanic is going to break too. So nearly all cp changes you want to do from within a plugin is totally different between Craft 2 and Craft 3. I compared about 80% of their code and not really much remained...  
> **username_0**: @RobinSchambach thanks Robin. I've updated the original question with a better description of the problem.  
> **username_1**: Could you try to use proper Craft words to explain your problem? I assume you don't have the sections `England` and `USA` but the section `country` with the entries `England` and `USA` so you would like to relate those two entries with your `Meet the team` entry... correct? If so you can create a `RelationField` and relate those two entries with it. I'm still not sure what you mean with "displaying all entries" you can render in your template whatever you like.... `{{entry.title}} {%for country in entry.countries %} {{ country.title }} {%endfor%}`  
> **username_0**: @RobinSchambach thanks for your help so far. Sorry I'm still wrapping my head around Craft, but I think I am right? We have multiple countries producing multiple pages/posts - i.e. /england will show all of England's entries /usa will show all of the USAs entires, so each country should be it's own section as it contains multiple entries? Where I get stuck is how a single entry; i.e. Team sits across both sections.  
> **username_1**: Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/73576/discussion-between-robin-schambach-and-tim-coysh).  

---

## 1 answers

### Answer by username_1 on 2018-02-22. Score: 1

When it's only for frontend: you can search for entries from different sections with
set entries = craft.entries.section(['blog', 'about', 'foo']).find()

This returns you all enabled/active entries from all the sections with the handle blog, about or foo.


---

