nntoan
July 17, 2017, 7:00am
1
Hello guys,
I’m writting a kind of extended Learn2 theme. The idea is creating a site to reading books online. It’s structure is quite simple.
Root
Overview page
— > Category as menu
— > Listing of books inside each category.
Books
— > Chapter 1
…
— > Chapter 9000
some books will looks like
2-1. Books
— > Section 1 (Chapter 1 -> 50)
------ > Chapter 1
…
------ > Chapter 50
— > Section N
So, could you please tell me is that structure available to do with Grav?
I’m just new to this CMS
Thanks.
flavio
July 17, 2017, 3:06pm
2
Hi, any kind of structure is possible in Grav. There are no limits
You could use this pages structure:
pages
01.home
02.contact
03.books
my-first-book
01.chapter1
chapter.md
...
book.md
my-second-book
01.chapter1
chapter.md
...
book.md
books.md
So you have 3 page types: 2 collections (books.md
listing book.md
pages, book.md
listing chapter.md
pages)
Those page types need a corresponding template in your theme.
Each collection page can simply list its children pages.
That’s a start.
1 Like
nntoan
July 17, 2017, 4:03pm
3
Hi @flavio ,
Thanks for your reply, it makes more sense to me now.
I’m wondering is there any tutorial which I could look into when I’m getting started? Something like the relationship between components of Grav or just a tutorial about how to build a blog from scratch with Grav. So I can know more how user/pages work with user/themes and so on…
Regards,
Toan
flavio
July 17, 2017, 4:41pm
4
1 Like