Editing
Variable-Length Line Item Edits
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Configuration ==== A "CMS Content Sections" `site_section` record is required for the content templates. <syntaxhighlight lang="sql" enclose="div"> insert into \`site_section\` (\`id\`,\`name\`,\`slug\`,\`table\`,\`root_dir\`) values (27,'CMS Content Sections','cms-content-sections','site_section',''); insert into \`section_operations\` (\`label\`,\`section_id\`,\`id_param\`,\`delete_uri\`,\`comments\`) values ('content',27,ssid','/sections/_ajax/del.php','cms content operations'); </syntaxhighlight> A "Content Template" `site_section` record is required to manage line-item edits. This is a child of the "CMS Content Sections" record. <syntaxhighlight lang="sql" enclose="div"> insert into \`site_section\` (\`id\`,\`name\`,\`slug\`,\`root_dir\`,\`table\`,\`parent_id\`,\`root_dir\`) values (33,'Content Template',null,'/sections/','content_template',27,''); insert into \`section_operations\` (\`label\`,\`section_id\`,\`id_param\`) values ('content template',33,''); </syntaxhighlight> Add content templates records to control line-item edits within the content properties CMS. Once these are added, the Content Properties CMS can be used to define new content template types. <syntaxhighlight lang="sql" enclose="div"> INSERT INTO \`content_template\` (\`site_section_id\`, \`name\`, \`path\`, \`location\`) VALUES (33, 'details', 'content/content_template_line_item.php', 'shared-cms'), (33, 'edit', 'forms/content_template_edit_form.php', 'shared-cms'), (33, 'delete', 'forms/content_template_delete_confirmation.php', 'shared-cms'); </syntaxhighlight> Those 3 shared templates exist in the shared development project under `[SHARED_ROOT_DIR]_templates\content\` and `[SHARED_ROOT_DIR]_templates\forms\`
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information