# 首页默认时间范围

**URL:** https://meta.discourse.org/t/top-page-default-timeframe/104156
**Category:** Support
**Created:** [2018年十二月13日 00:11 UTC](https://meta.discourse.org/t/top-page-default-timeframe/104156 "2018-12-13T00:11:13Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![DSF](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@DSF](https://meta.discourse.org/u/DSF)
#### Post date: [2018年十二月13日 00:11 UTC](https://meta.discourse.org/t/top-page-default-timeframe/104156/1 "2018-12-13T00:11:13Z")

</div>

Setting is non-responsive; I want to show top topics from all time by default. Top page only shows top topics over the last year, no matter what timeframe I choose.

Private forum - v2.2.0.beta5 +48

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018年十二月13日 00:12 UTC](https://meta.discourse.org/t/top-page-default-timeframe/104156/2 "2018-12-13T00:12:23Z")

</div>

> [@DSF](#):
>
> no matter what timeframe I choose.

Where are you choosing the timeframe?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [2018年十二月13日 00:32 UTC](https://meta.discourse.org/t/top-page-default-timeframe/104156/3 "2018-12-13T00:32:51Z")

</div>

I think he is choosing it in a site setting, however, IIRC, if the default setting can’t return the necessary number of results, it will cycle down the list to the one that can.

---

<div class="post-metadata">

### Author: ![DSF](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@DSF](https://meta.discourse.org/u/DSF)
#### Post date: [2018年十二月13日 00:55 UTC](https://meta.discourse.org/t/top-page-default-timeframe/104156/4 "2018-12-13T00:55:28Z")

</div>

Somewhere in admin → settings (search for «top page»; second result named «top page default timeframe»)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018年十二月13日 01:04 UTC](https://meta.discourse.org/t/top-page-default-timeframe/104156/5 "2018-12-13T01:04:27Z")

</div>

Do you have enough data to populate the list, per @cpradio’s comment?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [2018年十二月13日 01:08 UTC](https://meta.discourse.org/t/top-page-default-timeframe/104156/6 "2018-12-13T01:08:26Z")

</div>

Also, I can’t reproduce the issue on latest. My sandbox is successfully showing All Time, Quarterly, or whatever I choose in the site setting (there could be an explanation to that, in that it is ignoring insane limits and choosing a safer default – I’ve have to look at the code to figure out if that is happening).

I also played with the number of results and it didn’t seem to make any difference.

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/d/3d196dcdf4e59bb9a2a1c59d83eab004edc87a4b.png)

Visiting the top page

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/0/708ca4c7a63bd27f5556c8fad29161f47280b628.png)

Choosing All

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/d/6dd48d12b3aa1a2daa84c31109ba6cb788850b19.png)

Visiting the top page

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/1/5120ba39b250b866b68aa080ffa010a5c73f9bf2.png)

---

<div class="post-metadata">

### Author: ![DSF](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@DSF](https://meta.discourse.org/u/DSF)
#### Post date: [2018年十二月13日 01:32 UTC](https://meta.discourse.org/t/top-page-default-timeframe/104156/7 "2018-12-13T01:32:34Z")

</div>

I changed «topics per period in top page» from 50 to 5; and now «all time» is no longer an option from the top page - still gone after changing the value back to 50. I also tried changing it to 1; the system now uses week as the default timeframe. Quarter and year shows 9 topics?

---

<div class="post-metadata">

### Author: ![DSF](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@DSF](https://meta.discourse.org/u/DSF)
#### Post date: [2018年十二月13日 01:34 UTC](https://meta.discourse.org/t/top-page-default-timeframe/104156/8 "2018-12-13T01:34:14Z")

</div>

«All time» is now back after changing the value to 50 once again, and refreshing the top page a few times

---

<div class="post-metadata">

### Author: ![DSF](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@DSF](https://meta.discourse.org/u/DSF)
#### Post date: [2018年十二月13日 01:39 UTC](https://meta.discourse.org/t/top-page-default-timeframe/104156/9 "2018-12-13T01:39:24Z")

</div>

cpradio, is the sandbox configured as a private forum? Login reguired to view anything; registration disabled (new users by invitation from staff only)

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [2018年十二月13日 03:10 UTC](https://meta.discourse.org/t/top-page-default-timeframe/104156/10 "2018-12-13T03:10:30Z")

</div>

No, it is open to all. [https://sandbox.cpradio.org](https://sandbox.cpradio.org)

---

<div class="post-metadata">

### Author: ![DSF](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@DSF](https://meta.discourse.org/u/DSF)
#### Post date: [2019年三月4日 20:42 UTC](https://meta.discourse.org/t/top-page-default-timeframe/104156/11 "2019-03-04T20:42:43Z")

</div>

cpradio, the first comment; seems to me that whatever’s working behind the list isn’t registering old/imported topics and posts? The setting in the admin panel is set to show ‘all’ as default, but the top list picks ‘yearly’ by default? I can’t remember the exact numbers, but more than 1000 topics and 30000 posts was imported, so you can see why I’m expecting a different behaviour.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2022年四月12日 04:39 UTC](https://meta.discourse.org/t/top-page-default-timeframe/104156/12 "2022-04-12T04:39:43Z")

</div>


