Skip to content

Commit 7af1892

Browse files
committed
add blog-categories and blog-category models. creativecommons#54
1 parent 1a1d1c3 commit 7af1892

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

models/blog-categories.ini

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[model]
2+
name = Blog Categories
3+
label = Blog Categories
4+
hidden = yes
5+
protected = yes
6+
7+
[children]
8+
model = blog-category
9+
order_by = name
10+
11+
[fields.title]
12+
label = Title
13+
type = string

models/blog-category.ini

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[model]
2+
name = Blog Category
3+
label = {{ this.name }}
4+
hidden = yes
5+
6+
[children]
7+
replaced_with = site.query(this.parent.parent.path + '/entries').filter(F.categories.contains(this))
8+
9+
[fields.name]
10+
label = Name
11+
type = string

0 commit comments

Comments
 (0)