Skip to content

Commit 3f0aac0

Browse files
committed
create author models. creativecommons#53
1 parent e2313df commit 3f0aac0

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

models/author.ini

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

models/authors.ini

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[model]
2+
name = Authors
3+
label = Authors
4+
hidden = yes
5+
protected = yes
6+
7+
[children]
8+
model = author
9+
order_by = name

0 commit comments

Comments
 (0)