get module params best practice j2.5 - Joomla! Forum - community, help and support


hi there, new creating own modules , think question pretty basic. using bootstraps carousel , far in module have
select image (drop down of image directory)
image title
image caption
- repeated 3 times allow 3 slides, image 2, title 2 , on -
in mod_mycarousel.php file have set

$title1 = trim($params->get('title1'));
$image1 = $params->get('image1');
$caption1=trim($params->get('caption1'));
i need repeat 3 times , output each.

i thinking there better way it, how parameters in loop , check field make sure not empty , name file dynamically in loop
for i=0, i<3, i++)
$image&i = $params->get('image&i');
$title&i = $params->get('title&i');
$captione&i = $params->get('caption&i');

output html
so question how params
can name them dynamically image1, image2, caption1, captio2
and
if create helper file know best parctice, trying working - these variables availble me in mod_mycarousel.php file

thanks in advance






Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support