# Date-based numbering from a date field inside a structure field

**URL:** <https://forum.getkirby.com/t/date-based-numbering-from-a-date-field-inside-a-structure-field/1247>\
**Category:** Questions\
**Tags:** v2\
**Created:** [June 2, 2015, 10:59pm UTC](https://forum.getkirby.com/t/date-based-numbering-from-a-date-field-inside-a-structure-field/1247 "2015-06-02T22:59:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhawbert](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/rhawbert/32/586_2.png) [@rhawbert](https://forum.getkirby.com/u/rhawbert)\
**Post date:** [June 2, 2015, 10:59pm UTC](https://forum.getkirby.com/t/date-based-numbering-from-a-date-field-inside-a-structure-field/1247/1 "2015-06-02T22:59:09Z")

</div>

Is it possible to address a date field inside a structure field when defining a date-based numbering blueprint? Something like:

```auto
pages:
  num: 
    mode: date
    field: dates.event_day[0]
    format: Ymd

```

My structure field is going to contain several date entries, but I’d like to use the first one, hence the (lousy) **dates.event\_day[0]** attempt… a long shot indeed 😊

I thought about the “type: query” option… but not sure if (or how) it can be used in the blueprint’s **pages** settings

This is the parent “/events” blueprint:

```php
title: Events
files: false
pages:
  template: event 
  num: 
    mode: date
    field: dates.event_day[0]
    format: Ymd

fields:
  title:
    label: Title
    type: text
  sobre:
    label: Text
    type: textarea

```

And here’s the **dates** structure field from the child blueprint “/events/event”

```auto
... 

  dates:
    label: Schedule 
    type: structure 
    required: true 

    entry: >
      Date: {{event_day}}. From {{time_start}}h to {{time_end}}h.
      
    fields:

      event_day:
        label: Event's date
        type: date
        format: DD/MM/YYYY

      time_start:
        label: Start time
        type: time
        default: 08:00
        interval: 15
        width: 1/2

      time_end:
        label: End time
        type: time
        default: 18:00
        interval: 15
        width: 1/2
...

```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 3, 2015, 6:07am UTC](https://forum.getkirby.com/t/date-based-numbering-from-a-date-field-inside-a-structure-field/1247/2 "2015-06-03T06:07:17Z")

</div>

This is not possible and you can’t use a query here either. I have no idea if it might be possible to create a custom field that gets the date from the first entry of the structure field …

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:17pm UTC](https://forum.getkirby.com/t/date-based-numbering-from-a-date-field-inside-a-structure-field/1247/3 "2025-02-06T17:17:16Z")

</div>


