0

我有一个模板“ja_purity_ii_something”可能来自joomlart.com。无论如何,这个模板包含像/html/mod_latestnews/default.php.

在这个文件中,一个参数$list神奇地出现了。

如何更改此参数?

一些代码来自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; ?>
4

1 回答 1

0

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.

于 2013-11-05T09:59:04.580 回答