Query containers (see Model of a Managed Site, http://xmlsapiens.org/spec/sapiarchitecture/sapibasedcms/modelmanagedsite/) refer to the fragments of the document displayed on the site; the content of these fragments can be modified by the CMS administrator. The containers contain the code of user data queries and related formatting. The query code is provided in the syntax of the markup language of the presentation code. For example:
| <sapi:apply name="qc.title.value" type="string" /> |
QC pointer allow following attributes
|
Attribute |
Destination |
|
type |
Query type |
|
title |
Query signature in administrative mode |
|
index |
If hits attribute has “yes” value, the query will be indexed. It means that you can form sorting and filtering by this field (query). It is used in infochannels. |
|
accessarea |
“global” – content of the query will show in all modes, “edit” – content of the query will show only in administrative mode, in editing state |
|
resize |
Let modification of the imagesize during uploading. Format: resize=”width*height” |
|
iconsize |
Let creation of image icon with certain size. Format: iconsize =”width*height” |
|
src |
Reference of a data source (for example, for a query of the select type) |
Following predefined types of QC is appropriate in current version of SAPID:
|
Types |
Queries |
|
string |
String content query |
|
publication |
Publication query (WYSIWYG). |
|
Image |
Image query |
|
file |
File query |
|
checkbox |
Binary value query True/False |
|
date |
Show the current date (PHP-mask of date format is declared in the configuration file in PHP_DATEFORMAT variable) |
|
select |
Query of a value from a proposed list |
For example:
| <sapi:apply name="qc.title.value" type="string" title="Title of block" index="yes" /> |

