Littled Content Properties CMS: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Overview == This is a shared component of the Littled CMS system. It contains generic properties of content and is used to expedite setting up MySQL and AJAX-driven CMSs. ...") |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 12: | Line 12: | ||
== MySQL == | == MySQL == | ||
=== Tables === | |||
* `site_section` - Core content properties. | |||
* `section_operations` - AJAX URLs and other properties related to that. (Probably can do away with this one in the future.) | |||
* `content_template` - Properties of templates used to generate content in AJAX scripts. | |||
* `site_section_link` - (Optional) Defines permissions for viewing types of content on a user-by-user basis. | |||
* `content_operation_uri` - (Proposed) Replace the `sections_operations` tables with lists of links to content operations. | |||
* ''Definitions can be found in `[COMMON_LIB]_dbo/tables/`'' | |||
=== Procedures === | |||
[[ | * ''TK'' | ||
* ''Definitions can be found in `[COMMON_LIB]_dbo/procedures/`'' | |||
=== Data === | |||
<syntaxhighlight lang="mysql"> | |||
/* content properties section of the cms */ | |||
insert into site_section | |||
(id, parent_id, `name`, root_dir, `table`, is_cached) | |||
values | |||
(27, null, 'Content Properties', '/_hostmgr/content-properties/', 'site_section', false); | |||
/* content templates */ | |||
insert into site_section | |||
(id, parent_id, `name`, root_dir, `table`, is_cached) | |||
values | |||
(33, 27, 'Content Template', '/sections/', 'content_template', false); | |||
/* site content properties cms: content templates */ | |||
insert into content_template (site_section_id, `name`, `path`, location) values | |||
(33, 'details', 'content/content_template_line_item.php', 'shared'); | |||
insert into content_template (site_section_id, `name`, `path`, location) values | |||
(33, 'edit', 'forms/content_template_edit_form.php', 'shared'); | |||
insert into content_template (site_section_id, `name`, `path`, location) values | |||
(33, 'delete', 'forms/content_template_delete_confirmation.php', 'shared'); | |||
</syntaxhighlight> | |||
== PHP == | |||
=== Classes === | |||
* `[COMMON_CLASS_DIR]content/site_section_class.php` | |||
* `[COMMON_CLASS_DIR]content/section_operations_class.php` | |||
* `[COMMON_CLASS_DIR]content/ContentTemplate.php` | |||
* `[COMMON_CLASS_DIR]content/PageConfig.php` | |||
* `[COMMON_CLASS_DIR]filters/section_filters_class.php` | |||
[[Category:CMS]] [[Category:Littled Libraries]] [[Category:Web Development]] | |||
Latest revision as of 18:08, 12 January 2014
Overview[edit]
This is a shared component of the Littled CMS system. It contains generic properties of content and is used to expedite setting up MySQL and AJAX-driven CMSs.
IIS[edit]
- Remote Deskop to the development server.
- For the site in question, add a new virtual directory in the CMS root.
- Alias:
content-properties. (Orsections, but phase this usage out in the future.) - Physical Path:
[COMMON_ROOT_DIR]hostmgr/sections/
- Alias:
MySQL[edit]
Tables[edit]
site_section- Core content properties.section_operations- AJAX URLs and other properties related to that. (Probably can do away with this one in the future.)content_template- Properties of templates used to generate content in AJAX scripts.site_section_link- (Optional) Defines permissions for viewing types of content on a user-by-user basis.content_operation_uri- (Proposed) Replace thesections_operationstables with lists of links to content operations.- Definitions can be found in
[COMMON_LIB]_dbo/tables/
Procedures[edit]
- TK
- Definitions can be found in
[COMMON_LIB]_dbo/procedures/
Data[edit]
/* content properties section of the cms */ insert into site_section (id, parent_id, `name`, root_dir, `table`, is_cached) values (27, null, 'Content Properties', '/_hostmgr/content-properties/', 'site_section', false); /* content templates */ insert into site_section (id, parent_id, `name`, root_dir, `table`, is_cached) values (33, 27, 'Content Template', '/sections/', 'content_template', false); /* site content properties cms: content templates */ insert into content_template (site_section_id, `name`, `path`, location) values (33, 'details', 'content/content_template_line_item.php', 'shared'); insert into content_template (site_section_id, `name`, `path`, location) values (33, 'edit', 'forms/content_template_edit_form.php', 'shared'); insert into content_template (site_section_id, `name`, `path`, location) values (33, 'delete', 'forms/content_template_delete_confirmation.php', 'shared');
PHP[edit]
Classes[edit]
[COMMON_CLASS_DIR]content/site_section_class.php[COMMON_CLASS_DIR]content/section_operations_class.php[COMMON_CLASS_DIR]content/ContentTemplate.php[COMMON_CLASS_DIR]content/PageConfig.php[COMMON_CLASS_DIR]filters/section_filters_class.php