Debian Codegraph @

tests/demo-project/models/blog.ini

raw
1 [model]
2 name = Blog
3 label = Blog
4 hidden = yes
5
6 [children]
7 model = blog-post
8 order_by = -pub_date, title
9 slug_format = {{ ((this.pub_date.year ~ '/' ~ this.pub_date.month ~ '/') if this.pub_date) ~ this._id }}
10
11 [pagination]
12 enabled = yes
13 per_page = 10
14 items = this.children.filter(F._model == 'blog-post')