added: to templates: an interface for getting information from Space

miscspace.h, miscspace.cpp
changed: plugin ticket
         now as a config we use a PT::Space struct
         (not finished yet, only 'integer', 'select' and 'progress' are done)


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@794 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-01-16 10:12:38 +00:00
parent b2d3ca9543
commit 424618de38
33 changed files with 1102 additions and 1164 deletions

View File

@@ -245,7 +245,7 @@ Error Db::AddItemIntoItem(Item & item)
query.Clear();
query << R("insert into core.item (user_id, modification_user_id, group_id, privileges, "
"date_creation, date_modification, type, parent_id, content_id, "
"link_to, link_redirect, subject, guest_name, template, sort_index, url) values (")
"link_to, link_redirect, subject, guest_name, template, sort_index, meta, url) values (")
<< item.user_id
<< item.modification_user_id
<< item.group_id
@@ -260,7 +260,8 @@ Error Db::AddItemIntoItem(Item & item)
<< item.subject
<< item.guest_name
<< item.html_template
<< item.sort_index;
<< item.sort_index
<< item.meta;
url_without_id = AddItemCreateUrlSubject(item);
@@ -402,7 +403,7 @@ Error Db::EditItemInItem(Item & item, bool with_url)
query.Clear();
query << R("update core.item set (user_id, modification_user_id, group_id, privileges, "
"date_creation, date_modification, type, link_to, link_redirect, parent_id, subject, "
"guest_name, template, sort_index");
"guest_name, template, sort_index, meta");
if( with_url )
query << R(", url");
@@ -421,7 +422,8 @@ Error Db::EditItemInItem(Item & item, bool with_url)
<< item.subject
<< item.guest_name
<< item.html_template
<< item.sort_index;
<< item.sort_index
<< item.meta;
if( with_url )
{