<p>I would create a single template that is displayed when you visit <code>/product</code> and set <code>entry</code> to be the first entry in the Product channel that is live.</p>

<p><code>{% set entry = craft.entries.section('products').status('live').first() %}</code></p>

<p>All you need to do then is disabled all product entries apart from the product you want to display.</p>

<hr>

<p><strong>UPDATE</strong>: To avoid duplicate content or different content on the <code>/product</code> page you could redirect to the current product entry page <code>/products/product-a</code> using</p>

<p><code>{% redirect entry.url %}</code></p>

CC BY-SA 3.0
2016-06-13T10:57:15.947Z
This is a nice solution thanks. Only concern is you then have duplicate content at page /product and on the entry at /product/product-a for example
sarah3585
CC BY-SA 3.0
2016-06-13T11:10:28.467Z
To avoid that you could set the `/products` template to redirect to `entry.url`. `{% redirect entry.url %}`
Luke Pearce
CC BY-SA 3.0
2016-06-13T11:38:06.600Z
Super! thank you.
sarah3585
CC BY-SA 3.0
2016-06-09T16:59:03.210Z
2016-06-13T11:12:53.180Z
2016-06-13T11:12:53.180Z
Luke Pearce
<p>I need some advise about the best way to achieve this.</p>

<p>My site is set up with a Channel called 'Product' for example.</p>

<p>I then have entries within this section</p>

<ul>
<li>Product A</li>
<li>Product B</li>
<li>Product C</li>
</ul>

<p>Only one of these products will be active at once.</p>

<p>All links on the site for 'Product' will need to link to the active product page (A, B or C).</p>

<p>The way I'm thinking of doing this is having a lightswitch on the Product pages to state which is the current (active) one.</p>

<p>I can't get my head around how this might work at the moment so any advise would be much appreciated.</p>

<templating>
Creating an active page within a channel
# Creating an active page within a channel

(Asked by: username_0 on 2016-06-09)

I need some advise about the best way to achieve this.

My site is set up with a Channel called 'Product' for example.

I then have entries within this section

* Product A
* Product B
* Product C

Only one of these products will be active at once.

All links on the site for 'Product' will need to link to the active product page (A, B or C).

The way I'm thinking of doing this is having a lightswitch on the Product pages to state which is the current (active) one.

I can't get my head around how this might work at the moment so any advise would be much appreciated.

**Tags:** templating


---

## 1 answers

### Answer by username_1 on 2016-06-09. Score: 2 | Accepted answer

I would create a single template that is displayed when you visit `/product` and set `entry` to be the first entry in the Product channel that is live.

`{% set entry = craft.entries.section('products').status('live').first() %}`

All you need to do then is disabled all product entries apart from the product you want to display.

---

**UPDATE**: To avoid duplicate content or different content on the `/product` page you could redirect to the current product entry page `/products/product-a` using

`{% redirect entry.url %}`

> **Comments:**
> **username_0**: This is a nice solution thanks. Only concern is you then have duplicate content at page /product and on the entry at /product/product-a for example  
> **username_1**: To avoid that you could set the `/products` template to redirect to `entry.url`. `{% redirect entry.url %}`  
> **username_0**: Super! thank you.  

---

