Seite 3 von 3

Re: WYSIWYG MultiColumn

Verfasst: Di 24. Jul 2018, 16:36
von shadowcat
@creativecat: Wir hatten doch im Skype das Thema mit den Optionen. Ich gebe die jetzt doch analog zu cc_multicolumn in der inc.forms.php an.

Code: Alles auswählen

        // list of options to save
        array(
            'type'     => 'hidden',
            'name'     => 'options',
            'value'    => 'columns,lift_panel,lift_panel_text,currency,color_scheme',
        ),

Re: WYSIWYG MultiColumn

Verfasst: Mi 25. Jul 2018, 17:02
von shadowcat
Man kann zwar noch nichts speichern, aber immerhin sehen, dass es Änderungen gab. :mrgreen:

Re: WYSIWYG MultiColumn

Verfasst: Mi 25. Jul 2018, 18:02
von shadowcat
Na des schaut doch guat aus...

Re: WYSIWYG MultiColumn

Verfasst: Mi 25. Jul 2018, 18:15
von shadowcat
@creativecat: Änderung der Datenbankstruktur.

Code: Alles auswählen

CREATE TABLE `cat_sections` (
	`section_id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
	`site_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',
	`state_id` INT(2) UNSIGNED NOT NULL DEFAULT '1',
	`module_id` INT(11) UNSIGNED NOT NULL,
	`modified_when` INT(11) NOT NULL DEFAULT '0',
	`modified_by` INT(11) NOT NULL DEFAULT '0',
	PRIMARY KEY (`section_id`, `site_id`),
	UNIQUE INDEX `section_id_site_id` (`section_id`, `site_id`),
	INDEX `FK_cat_sections_cat_sites` (`site_id`),
	INDEX `FK_cat_sections_cat_item_states` (`state_id`),
	INDEX `FK_cat_sections_cat_addons` (`module_id`),
	CONSTRAINT `FK_cat_sections_cat_addons` FOREIGN KEY (`module_id`) REFERENCES `cat_addons` (`addon_id`) ON UPDATE CASCADE ON DELETE CASCADE,
	CONSTRAINT `FK_cat_sections_cat_item_states` FOREIGN KEY (`state_id`) REFERENCES `cat_item_states` (`state_id`) ON UPDATE CASCADE ON DELETE CASCADE,
	CONSTRAINT `FK_cat_sections_cat_sites` FOREIGN KEY (`site_id`) REFERENCES `cat_sites` (`site_id`) ON UPDATE CASCADE ON DELETE CASCADE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=58
;

Spalte "item_id" gestrichen.

Code: Alles auswählen

CREATE TABLE `cat_mod_wysiwyg` (
	`section_id` INT(11) NOT NULL DEFAULT '0',
	`column` INT(3) NOT NULL DEFAULT '1',
	`attribute` TINYTEXT NULL DEFAULT NULL,
	`content` LONGTEXT NOT NULL,
	`text` LONGTEXT NOT NULL,
	PRIMARY KEY (`section_id`, `column`),
	UNIQUE INDEX `section_id_column` (`section_id`, `column`)
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
;
Spalte "order" heißt jetzt "column", neu Spalte "attribute".

Re: WYSIWYG MultiColumn

Verfasst: Fr 3. Aug 2018, 15:53
von shadowcat
Auch was Neues, auch wenn's nur eine Kleinigkeit ist: Beim Ändern der Variante werden gleich die Standardeinstellungen in die DB geschrieben.

Beispiel:
Variante "multicolumn" => 3 Spalten mit Rahmen
Variante "bootstrap" => 3 Spalten mit Rahmen

Außerdem werden die Einstellungen der vorherigen Variante gelöscht. (Sollte man vielleicht noch einen entsprechenden Hinweis einbauen...)