mirror of
https://github.com/documize/community.git
synced 2025-07-21 22:29:41 +02:00
document tab basics
This commit is contained in:
parent
5c09407d2f
commit
8caa53bed7
49 changed files with 493 additions and 239 deletions
|
@ -182,6 +182,7 @@ type Page struct {
|
|||
DocumentID string `json:"documentId"`
|
||||
UserID string `json:"userId"`
|
||||
ContentType string `json:"contentType"`
|
||||
PageType string `json:"pageType"`
|
||||
Level uint64 `json:"level"`
|
||||
Sequence float64 `json:"sequence"`
|
||||
Title string `json:"title"`
|
||||
|
@ -193,6 +194,7 @@ type Page struct {
|
|||
func (p *Page) SetDefaults() {
|
||||
if len(p.ContentType) == 0 {
|
||||
p.ContentType = "wysiwyg"
|
||||
p.PageType = "section"
|
||||
}
|
||||
|
||||
p.Title = strings.TrimSpace(p.Title)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue