WYSIWYG MultiColumn

Benutzeravatar
shadowcat
Administrator
Beiträge: 5283
Registriert: Di 5. Feb 2013, 10:36
Kontaktdaten:

Re: WYSIWYG MultiColumn

Beitrag 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',
        ),
My software never has bugs, it just develops random features.
If it’s not broken, keep fixing it until it is
Benutzeravatar
shadowcat
Administrator
Beiträge: 5283
Registriert: Di 5. Feb 2013, 10:36
Kontaktdaten:

Re: WYSIWYG MultiColumn

Beitrag von shadowcat »

Man kann zwar noch nichts speichern, aber immerhin sehen, dass es Änderungen gab. :mrgreen:
Dateianhänge
2018-07-25 17_57_34-BlackCat CMS Backend _ Seite.png
2018-07-25 17_57_34-BlackCat CMS Backend _ Seite.png (26.78 KiB) 2323 mal betrachtet
My software never has bugs, it just develops random features.
If it’s not broken, keep fixing it until it is
Benutzeravatar
shadowcat
Administrator
Beiträge: 5283
Registriert: Di 5. Feb 2013, 10:36
Kontaktdaten:

Re: WYSIWYG MultiColumn

Beitrag von shadowcat »

Na des schaut doch guat aus...
Dateianhänge
2018-07-25 19_01_32-Demo.png
2018-07-25 19_01_32-Demo.png (37.82 KiB) 2323 mal betrachtet
My software never has bugs, it just develops random features.
If it’s not broken, keep fixing it until it is
Benutzeravatar
shadowcat
Administrator
Beiträge: 5283
Registriert: Di 5. Feb 2013, 10:36
Kontaktdaten:

Re: WYSIWYG MultiColumn

Beitrag 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".
My software never has bugs, it just develops random features.
If it’s not broken, keep fixing it until it is
Benutzeravatar
shadowcat
Administrator
Beiträge: 5283
Registriert: Di 5. Feb 2013, 10:36
Kontaktdaten:

Re: WYSIWYG MultiColumn

Beitrag 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...)
My software never has bugs, it just develops random features.
If it’s not broken, keep fixing it until it is
Antworten