1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00

implemented scroll-to-page functionality

This commit is contained in:
Harvey Kandola 2017-03-09 17:18:50 +00:00
parent 9f7585e2a5
commit 079e53ff0d
12 changed files with 45 additions and 26 deletions

View file

@ -198,10 +198,6 @@ func (p *Page) SetDefaults() {
p.ContentType = "wysiwyg"
}
// if p.IsTabType() {
// p.Sequence = 0
// }
p.Title = strings.TrimSpace(p.Title)
}

View file

@ -1,6 +1,6 @@
/* community edition */
ALTER TABLE page ADD COLUMN `pagetype` CHAR(10) NOT NULL DEFAULT 'section' AFTER `contenttype`;
UPDATE page SET pagetype='tab', sequence=0 WHERE refid IN (SELECT pageid FROM pagemeta WHERE externalsource=1);
-- UPDATE page SET pagetype='tab', sequence=0 WHERE refid IN (SELECT pageid FROM pagemeta WHERE externalsource=1);
ALTER TABLE revision ADD COLUMN `pagetype` CHAR(10) NOT NULL DEFAULT 'section' AFTER `contenttype`;
UPDATE revision SET pagetype='tab' WHERE pageid IN (SELECT pageid FROM pagemeta WHERE externalsource=1);