1
0
Fork 0
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:
Harvey Kandola 2016-11-10 15:06:59 -08:00
parent f2734edfae
commit c3b13f1626
11 changed files with 42 additions and 35 deletions

View file

@ -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