Programaticly set select(checkbox) attributes

Permalink 1 user found helpful
Hi,

Im currently new to C5 and Im migrating from old website to c5, and stumble upon issue where i cant understand how to set programaticly page attributes specificly checkbox type.
As i need to check several checkboxes at the same time.

Im seting attributes like this

$Page->setAttribute('handler', 'My val2');
$Page->setAttribute('handler', 'My val1');


But my setting applies to only last setted value, in this only to 'My val1'

 
hutman replied on at Permalink Best Answer Reply
hutman
You should be able to set this with an array

$c->setAttribute('attr_handle', array(1, 2, 3, 4));
bomberis replied on at Permalink Reply
Yes indeed, later read more deeply documentation, Thanks anyway ;)