Przykłady rozwiązań
Przykład mechanizmu zarządzania boksami dla układu trój-kolumnoweg (lewa i prawa kolumna z boksami, w środku treść), XML z strukturą bazy "Boksy" i modułu keszującego (skopiuj i wklej w XML import):<?xml version="1.0" encoding="utf-8"?>
<actualizer>
<table name="bases" type="system">
<row>
<id value="auto">18</id>
<name>Boksy</name>
<status>1</status>
<orderdef>sequence</orderdef>
<descdef>0</descdef>
<limitdef>0</limitdef>
<space>0</space>
<details>0</details>
<basename>box</basename>
<sort>0</sort>
<dupli>1</dupli>
<noclose>0</noclose>
<search></search>
<tr_class></tr_class>
<th_class></th_class>
<class_modulo>0</class_modulo>
<td_class></td_class>
<head>0</head>
<ftable>1</ftable>
<perms>31</perms>
<linktpl></linktpl>
<after_script></after_script>
<rchanges>0</rchanges>
<nl_base>0</nl_base>
<nl_cond></nl_cond>
<act_footer></act_footer>
<sdbi_views>a:0:{}</sdbi_views>
<sdbi_views2>a:0:{}</sdbi_views2>
<sdbi_views3>a:0:{}</sdbi_views3>
<sdbi_views4>a:0:{}</sdbi_views4>
<sdbi_views_field>col</sdbi_views_field>
<sdbi_views2_field></sdbi_views2_field>
<sdbi_views3_field></sdbi_views3_field>
<sdbi_views4_field></sdbi_views4_field>
<row_class_field></row_class_field>
<row_classes>a:0:{}</row_classes>
<no_cnt>1</no_cnt>
<no_status>0</no_status>
<no_seq>0</no_seq>
<no_del>0</no_del>
<no_cat>1</no_cat>
<no_ei>1</no_ei>
<multisel>1</multisel>
<flowercase>1</flowercase>
<sindex>0</sindex>
<defperiod>0</defperiod>
<onsubmit_js></onsubmit_js>
<lang>1</lang>
<slimit>0</slimit>
<ulimit>0</ulimit>
<fcache>1</fcache>
<fcache_defonly>1</fcache_defonly>
<fcache_key></fcache_key>
<add_label></add_label>
<rperms>0</rperms>
<langlabels>0</langlabels>
<sdbi_selectopr>a:0:{}</sdbi_selectopr>
<idmin>0</idmin>
<catcol>0</catcol>
<set_rperms>a:0:{}</set_rperms>
<no_sf>1</no_sf>
<foot_js></foot_js>
<sdbi_views_act>0</sdbi_views_act>
<sdbi_views2_act>0</sdbi_views2_act>
<sdbi_views3_act>0</sdbi_views3_act>
<sdbi_views4_act>0</sdbi_views4_act>
<sdbi_views_width>0</sdbi_views_width>
<sdbi_views2_width>0</sdbi_views2_width>
<sdbi_views3_width>0</sdbi_views3_width>
<sdbi_views4_width>0</sdbi_views4_width>
<fcache_fields></fcache_fields>
</row>
</table>
<table name="bases_fields" type="system">
<row>
<base_id value="auto" rel="bases">18</base_id>
<id value="auto">306</id>
<field>title</field>
<label>Tytuł</label>
<type>text</type>
<template></template>
<class></class>
<isshow>0</isshow>
<readonly>0</readonly>
<admshow>1</admshow>
<param1></param1>
<param2></param2>
<size>255</size>
<listsize>0</listsize>
<onchange_js></onchange_js>
<sequence>5</sequence>
<detshow>1</detshow>
<search>1</search>
<search_phrase>0</search_phrase>
<isunique>0</isunique>
<anull>0</anull>
<options></options>
<imagepath></imagepath>
<defval></defval>
<lang>-1</lang>
<status>1</status>
<br>1</br>
<rwperms>1</rwperms>
<history>0</history>
</row>
<row>
<base_id value="auto" rel="bases">18</base_id>
<id value="auto">307</id>
<field>content</field>
<label>Treść</label>
<type>richText</type>
<template></template>
<class></class>
<isshow>0</isshow>
<readonly>0</readonly>
<admshow>0</admshow>
<param1></param1>
<param2></param2>
<size>255</size>
<listsize>0</listsize>
<onchange_js></onchange_js>
<sequence>6</sequence>
<detshow>1</detshow>
<search>1</search>
<search_phrase>0</search_phrase>
<isunique>0</isunique>
<anull>0</anull>
<options></options>
<imagepath></imagepath>
<defval></defval>
<lang>-1</lang>
<status>1</status>
<br>1</br>
<rwperms>1</rwperms>
<history>0</history>
</row>
<row>
<base_id value="auto" rel="bases">18</base_id>
<id value="auto">308</id>
<field>tpl</field>
<label>szablon (opcjonalnie)</label>
<type>text</type>
<template></template>
<class></class>
<isshow>0</isshow>
<readonly>0</readonly>
<admshow>1</admshow>
<param1></param1>
<param2></param2>
<size>255</size>
<listsize>0</listsize>
<onchange_js></onchange_js>
<sequence>7</sequence>
<detshow>1</detshow>
<search>1</search>
<search_phrase>0</search_phrase>
<isunique>0</isunique>
<anull>0</anull>
<options></options>
<imagepath></imagepath>
<defval></defval>
<lang>-1</lang>
<status>1</status>
<br>1</br>
<rwperms>1</rwperms>
<history>0</history>
</row>
<row>
<base_id value="auto" rel="bases">18</base_id>
<id value="auto">309</id>
<field>col</field>
<label>Kolumna</label>
<type>list</type>
<template></template>
<class></class>
<isshow>0</isshow>
<readonly>0</readonly>
<admshow>1</admshow>
<param1></param1>
<param2></param2>
<size>255</size>
<listsize>0</listsize>
<onchange_js></onchange_js>
<sequence>4</sequence>
<detshow>1</detshow>
<search>1</search>
<search_phrase>0</search_phrase>
<isunique>0</isunique>
<anull>0</anull>
<options>l::lewa<br>r::prawa</options>
<imagepath></imagepath>
<defval></defval>
<lang>-1</lang>
<status>1</status>
<br>1</br>
<rwperms>1</rwperms>
<history>0</history>
</row>
<row>
<base_id value="auto" rel="bases">18</base_id>
<id value="auto">310</id>
<field>smarty</field>
<label>Kompiluj jako szablon smarty</label>
<type>checkbox</type>
<template></template>
<class></class>
<isshow>0</isshow>
<readonly>0</readonly>
<admshow>0</admshow>
<param1></param1>
<param2></param2>
<size>255</size>
<listsize>0</listsize>
<onchange_js></onchange_js>
<sequence>8</sequence>
<detshow>1</detshow>
<search>1</search>
<search_phrase>0</search_phrase>
<isunique>0</isunique>
<anull>0</anull>
<options></options>
<imagepath></imagepath>
<defval></defval>
<lang>-1</lang>
<status>0</status>
<br>1</br>
<rwperms>1</rwperms>
<history>0</history>
</row>
</table>
<table name="xmodules" type="system">
<row>
<module>cbase</module>
<name>Bazy statyczne</name>
<varname>cbase</varname>
<description></description>
<param>a:1:{s:2:"bs";s:3:"box";}</param>
<status>1</status>
<obj>1</obj>
<global>1</global>
<setting>0</setting>
<template></template>
<priority>0</priority>
<gettest></gettest>
<parent_id>0</parent_id>
<avcomm></avcomm>
<avlabel></avlabel>
<cache_min>0</cache_min>
</row>
</table>
</actualizer>
<actualizer>
<table name="bases" type="system">
<row>
<id value="auto">18</id>
<name>Boksy</name>
<status>1</status>
<orderdef>sequence</orderdef>
<descdef>0</descdef>
<limitdef>0</limitdef>
<space>0</space>
<details>0</details>
<basename>box</basename>
<sort>0</sort>
<dupli>1</dupli>
<noclose>0</noclose>
<search></search>
<tr_class></tr_class>
<th_class></th_class>
<class_modulo>0</class_modulo>
<td_class></td_class>
<head>0</head>
<ftable>1</ftable>
<perms>31</perms>
<linktpl></linktpl>
<after_script></after_script>
<rchanges>0</rchanges>
<nl_base>0</nl_base>
<nl_cond></nl_cond>
<act_footer></act_footer>
<sdbi_views>a:0:{}</sdbi_views>
<sdbi_views2>a:0:{}</sdbi_views2>
<sdbi_views3>a:0:{}</sdbi_views3>
<sdbi_views4>a:0:{}</sdbi_views4>
<sdbi_views_field>col</sdbi_views_field>
<sdbi_views2_field></sdbi_views2_field>
<sdbi_views3_field></sdbi_views3_field>
<sdbi_views4_field></sdbi_views4_field>
<row_class_field></row_class_field>
<row_classes>a:0:{}</row_classes>
<no_cnt>1</no_cnt>
<no_status>0</no_status>
<no_seq>0</no_seq>
<no_del>0</no_del>
<no_cat>1</no_cat>
<no_ei>1</no_ei>
<multisel>1</multisel>
<flowercase>1</flowercase>
<sindex>0</sindex>
<defperiod>0</defperiod>
<onsubmit_js></onsubmit_js>
<lang>1</lang>
<slimit>0</slimit>
<ulimit>0</ulimit>
<fcache>1</fcache>
<fcache_defonly>1</fcache_defonly>
<fcache_key></fcache_key>
<add_label></add_label>
<rperms>0</rperms>
<langlabels>0</langlabels>
<sdbi_selectopr>a:0:{}</sdbi_selectopr>
<idmin>0</idmin>
<catcol>0</catcol>
<set_rperms>a:0:{}</set_rperms>
<no_sf>1</no_sf>
<foot_js></foot_js>
<sdbi_views_act>0</sdbi_views_act>
<sdbi_views2_act>0</sdbi_views2_act>
<sdbi_views3_act>0</sdbi_views3_act>
<sdbi_views4_act>0</sdbi_views4_act>
<sdbi_views_width>0</sdbi_views_width>
<sdbi_views2_width>0</sdbi_views2_width>
<sdbi_views3_width>0</sdbi_views3_width>
<sdbi_views4_width>0</sdbi_views4_width>
<fcache_fields></fcache_fields>
</row>
</table>
<table name="bases_fields" type="system">
<row>
<base_id value="auto" rel="bases">18</base_id>
<id value="auto">306</id>
<field>title</field>
<label>Tytuł</label>
<type>text</type>
<template></template>
<class></class>
<isshow>0</isshow>
<readonly>0</readonly>
<admshow>1</admshow>
<param1></param1>
<param2></param2>
<size>255</size>
<listsize>0</listsize>
<onchange_js></onchange_js>
<sequence>5</sequence>
<detshow>1</detshow>
<search>1</search>
<search_phrase>0</search_phrase>
<isunique>0</isunique>
<anull>0</anull>
<options></options>
<imagepath></imagepath>
<defval></defval>
<lang>-1</lang>
<status>1</status>
<br>1</br>
<rwperms>1</rwperms>
<history>0</history>
</row>
<row>
<base_id value="auto" rel="bases">18</base_id>
<id value="auto">307</id>
<field>content</field>
<label>Treść</label>
<type>richText</type>
<template></template>
<class></class>
<isshow>0</isshow>
<readonly>0</readonly>
<admshow>0</admshow>
<param1></param1>
<param2></param2>
<size>255</size>
<listsize>0</listsize>
<onchange_js></onchange_js>
<sequence>6</sequence>
<detshow>1</detshow>
<search>1</search>
<search_phrase>0</search_phrase>
<isunique>0</isunique>
<anull>0</anull>
<options></options>
<imagepath></imagepath>
<defval></defval>
<lang>-1</lang>
<status>1</status>
<br>1</br>
<rwperms>1</rwperms>
<history>0</history>
</row>
<row>
<base_id value="auto" rel="bases">18</base_id>
<id value="auto">308</id>
<field>tpl</field>
<label>szablon (opcjonalnie)</label>
<type>text</type>
<template></template>
<class></class>
<isshow>0</isshow>
<readonly>0</readonly>
<admshow>1</admshow>
<param1></param1>
<param2></param2>
<size>255</size>
<listsize>0</listsize>
<onchange_js></onchange_js>
<sequence>7</sequence>
<detshow>1</detshow>
<search>1</search>
<search_phrase>0</search_phrase>
<isunique>0</isunique>
<anull>0</anull>
<options></options>
<imagepath></imagepath>
<defval></defval>
<lang>-1</lang>
<status>1</status>
<br>1</br>
<rwperms>1</rwperms>
<history>0</history>
</row>
<row>
<base_id value="auto" rel="bases">18</base_id>
<id value="auto">309</id>
<field>col</field>
<label>Kolumna</label>
<type>list</type>
<template></template>
<class></class>
<isshow>0</isshow>
<readonly>0</readonly>
<admshow>1</admshow>
<param1></param1>
<param2></param2>
<size>255</size>
<listsize>0</listsize>
<onchange_js></onchange_js>
<sequence>4</sequence>
<detshow>1</detshow>
<search>1</search>
<search_phrase>0</search_phrase>
<isunique>0</isunique>
<anull>0</anull>
<options>l::lewa<br>r::prawa</options>
<imagepath></imagepath>
<defval></defval>
<lang>-1</lang>
<status>1</status>
<br>1</br>
<rwperms>1</rwperms>
<history>0</history>
</row>
<row>
<base_id value="auto" rel="bases">18</base_id>
<id value="auto">310</id>
<field>smarty</field>
<label>Kompiluj jako szablon smarty</label>
<type>checkbox</type>
<template></template>
<class></class>
<isshow>0</isshow>
<readonly>0</readonly>
<admshow>0</admshow>
<param1></param1>
<param2></param2>
<size>255</size>
<listsize>0</listsize>
<onchange_js></onchange_js>
<sequence>8</sequence>
<detshow>1</detshow>
<search>1</search>
<search_phrase>0</search_phrase>
<isunique>0</isunique>
<anull>0</anull>
<options></options>
<imagepath></imagepath>
<defval></defval>
<lang>-1</lang>
<status>0</status>
<br>1</br>
<rwperms>1</rwperms>
<history>0</history>
</row>
</table>
<table name="xmodules" type="system">
<row>
<module>cbase</module>
<name>Bazy statyczne</name>
<varname>cbase</varname>
<description></description>
<param>a:1:{s:2:"bs";s:3:"box";}</param>
<status>1</status>
<obj>1</obj>
<global>1</global>
<setting>0</setting>
<template></template>
<priority>0</priority>
<gettest></gettest>
<parent_id>0</parent_id>
<avcomm></avcomm>
<avlabel></avlabel>
<cache_min>0</cache_min>
</row>
</table>
</actualizer>
szablon - lewa kolumna
{foreach from=$mod.cbase.box item=item}
{if $item.col == 'l'}
{if $item.tpl}{include file="`$item`.tpl" title=$item.title}
{else}{$item.content}{/if}
{/if}
{/foreach}
{if $item.col == 'l'}
{if $item.tpl}{include file="`$item`.tpl" title=$item.title}
{else}{$item.content}{/if}
{/if}
{/foreach}
szablon - prawa kolumna
{foreach from=$mod.cbase.box item=item}
{if $item.col == 'r'}
{if $item.tpl}{include file="`$item`.tpl" title=$item.title}
{else}{$item.content}{/if}
{/if}
{/foreach}
{if $item.col == 'r'}
{if $item.tpl}{include file="`$item`.tpl" title=$item.title}
{else}{$item.content}{/if}
{/if}
{/foreach}