简体   繁体   中英

Joomla parameter for template module

I have a template "ja_purity_ii_something" could be from joomlart.com . Anyway, this template contains modules like /html/mod_latestnews/default.php .

In this file a parameter $list magically turns up.

How can I change this parameter?

Some code from default.php :

<?php if (count($list)) : ?>
<div id="latestnews_outer_container">
        <div class="latestnews_image_container" style="background-image:url(images/Startseite/startseite_1.jpg)">
                <?php $li = 0; ?>
                <?php foreach ($list as $item) : ?>
                <?php $itemparams=new JParameter($item->itemattribs); ?>
                        <img src="images/Startseite/<?php echo $itemparams->get('keyref'); ?>" class="latestnews_image" id="latestnews_<?php echo $li;?>_image" />
                <?php $li++; ?>
                <?php endforeach; ?>

I needed to edit articles. If you open an article, select "basic options" on the right and the last field is "key reference". Not sure how this is all connected but if I insert a jpg name it works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM