mirror of
https://github.com/documize/community.git
synced 2025-07-21 14:19:43 +02:00
set page sequence based on page type
This commit is contained in:
parent
f2734edfae
commit
c3b13f1626
11 changed files with 42 additions and 35 deletions
|
@ -179,6 +179,8 @@ func processDocument(p request.Persister, filename, job, folderID string, fileRe
|
|||
page.Sequence = float64(k+1) * 1024.0 // need to start above 0 to allow insertion before the first item
|
||||
pageID := util.UniqueID()
|
||||
page.RefID = pageID
|
||||
page.ContentType = "wysiwyg"
|
||||
page.PageType = "section"
|
||||
|
||||
meta := entity.PageMeta{}
|
||||
meta.PageID = pageID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue