I have a question ... this module don't provides the use of multiple checkboxes ?
I see only sample with multiselect but not the same thing with checkbox.
Perhaps I can be of help if placed on the right track

Code: Select all
{content block="A" block_type="checkbox"}
{content block="B" block_type="checkbox"}
{content block="C" block_type="checkbox"}
Code: Select all
{* single checkbox: *}
{content block="single checkbox" block_type="checkbox" assign="checkme"}
{if $checkme}
... do something ...
{/if}
{* select multiple with only one item and value 1 *}
{content block="single item" block_type="select_multiple" items="one single item" values="1" assign="checkme"}
{if $checkme}
... do something ...
{/if}
Code: Select all
{* does not make sense to me: *}
{content block="show sidebar" block_type="checkbox" value="halligalli" assign="show_sidebar"}
{if $show_sidebar == 'halligalli'}
... some stuff here ...
{/if}
Code: Select all
{* does make more sense to me: *}
{content block="show sidebar" block_type="checkbox" assign="show_sidebar"}
{if $show_sidebar}
... some stuff here ...
{/if}
Code: Select all
{* Multiple checkboxes *}
{content block="multiple checkboxes" block_type="multiple_checkboxes" items="select 1,select 2,select 3,..." values="1,2,3,..." delimiter=","}
{* Multiselect list *}
{content block="multiselect list" block_type="select_multiple" items="select 1,select 2,select 3,..." values="1,2,3,..." delimiter=","}
Thanks!NaN wrote:
Hello Gabriel and welcome to the forum.
Thanks for clear explanation.
If you use the select_multiple blocktype with sortable_items=true you will have the same items but shown as checkboxes that can be reordered. But it is stored in the same way like the multiselect stuff.
So you see, there really is no (technical) difference between multi checkboxes and multiselect.
(I just use checkboxes when sortable_items is true because it is easier to create a table with sortable rows than a multiselect list with sortable items)
Code: Select all
{* Multiselect list checkbox look*}
{content block="multiselect list" block_type="select_multiple" items="select 1,select 2,select 3,..." values="1,2,3,..." delimiter="," sortable_items=true}
Well... the modules purpose is not to look good but just to provide functionalitygabriel.rota wrote:
My problem isn't technical but of look.
Not at this time.gabriel.rota wrote:
Is possible have the checkbox on multiple columns for limit space wastage?
I recently also run into this somewhat old problem.NikNak wrote:
Fatal error: Call to a member function GetModuleInstance() on a non-object in /modules/AdvancedContent/contenttype.Content2.php on line 481
...
In the page list where it should say 'advanced content' as the page type it says:
ModuleName() not defined properly
...
I have restored an old database and I can now edit pages again - but am curious to know what went wrong here?
Code: Select all
if ($this->GetPropertyValue('use_expire_date') == '1' && $this->GetPropertyValue('end_date') <= $this->GetPropertyValue('start_date')) {
Code: Select all
if ( check_permission(get_userid(), 'Manage AdvancedContent Options') && $this->GetPropertyValue('use_expire_date') == '1' && $this->GetPropertyValue('end_date') <= $this->GetPropertyValue('start_date')) {
Code: Select all
if(($oneparam == 'start_date' || $oneparam == 'end_date')) {
Code: Select all
if(($oneparam == 'start_date' || $oneparam == 'end_date') && check_permission(get_userid(), 'Manage AdvancedContent Options')) {
Code: Select all
if(isset($params['start_date']) && isset($params['use_expire_date']) && $params['use_expire_date'] == 1 && $params['start_date'] > time()) {
Code: Select all
if(check_permission(get_userid(), 'Manage AdvancedContent Options') && isset($params['start_date']) && isset($params['use_expire_date']) && $params['use_expire_date'] == 1 && $params['start_date'] > time()) {
Code: Select all
foreach($this->CleanArray(explode($blockInfo['delimiter'], $blockInfo['items'])) as $key => $val) {
Code: Select all
foreach(explode($blockInfo['delimiter'], $blockInfo['items']) as $key => $val) {
Code: Select all
foreach($this->CleanArray(explode($blockInfo['delimiter'], $blockInfo['values'])) as $key => $val) {
Code: Select all
foreach(explode($blockInfo['delimiter'], $blockInfo['values']) as $key => $val) {
Code: Select all
foreach($this->CleanArray(explode($blockInfo['delimiter'], $data)) as $key => $val) {
Code: Select all
foreach(explode($blockInfo['delimiter'], $data) as $key => $val) {
Code: Select all
foreach($this->CleanArray(explode($blockInfo['delimiter'], $blockInfo['items'])) as $key => $val) {
Code: Select all
foreach(explode($blockInfo['delimiter'], $blockInfo['items']) as $key => $val) {
Code: Select all
foreach($this->CleanArray(explode($blockInfo['delimiter'], $blockInfo['values'])) as $key => $val) {
Code: Select all
foreach(explode($blockInfo['delimiter'], $blockInfo['values']) as $key => $val) {