modxbot / migrate

A testground for migrating issues and other such fun
0 stars 0 forks source link

Provide access to manage ContentType->headers array in UI #8047

Open opengeek opened 12 years ago

opengeek commented 12 years ago

opengeek created Redmine issue ID 8047

Currently, there is no way to add/edit/delete custom header key/value pairs stored in modContentType->headers. These need to be manageable so users can modify the default headers sent by PHP requests for different Content Types.

modxbot commented 11 years ago

everettg_99 submitted:

Related issues:

modxbot commented 11 years ago

everettg_99 submitted:

Relevant here: the database table schema requires a unique name. I would think a unique extension would make more sense here.

CREATE TABLE `modx_content_type` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` tinytext,
  `mime_type` tinytext,
  `file_extensions` tinytext,
  `headers` mediumtext,
  `binary` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;