# Visiting User visiting Top, shorten time frame shown by default

**URL:** <https://meta.discourse.org/t/visiting-user-visiting-top-shorten-time-frame-shown-by-default/34148>\
**Category:** Feature\
**Created:** [Octobre 5, 2015, 4:09 UTC](https://meta.discourse.org/t/visiting-user-visiting-top-shorten-time-frame-shown-by-default/34148 "2015-10-05T16:09:26Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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:** [Octobre 6, 2015, 4:03 UTC](https://meta.discourse.org/t/visiting-user-visiting-top-shorten-time-frame-shown-by-default/34148/13 "2015-10-06T16:03:26Z")

</div>

Maybe I’m over complicating this. As it seems I can get it to work properly by using

```plaintext
  top_page_default_timeframe:
    default: 'yearly'
    type: enum
    choices:
      - all
      - yearly
      - quarterly
      - monthly
      - weekly
      - daily

```

And that doesn’t require the top\_period\_setting.rb file which avoids the enum validation/saving issue I was experiencing using that method.

That method was being attempted with

```plaintext
  top_page_default_timeframe:
    default: 'yearly'
    enum: 'TopPeriodSetting'

```

Will a PR that isn’t using a enum setting be accepted? (as I have that working)

[https://github.com/discourse/discourse/pull/3837](https://github.com/discourse/discourse/pull/3837)

---

_[View the full topic](https://meta.discourse.org/t/visiting-user-visiting-top-shorten-time-frame-shown-by-default/34148)._
