简体   繁体   English

模板模块的Joomla参数

[英]Joomla parameter for template module

I have a template "ja_purity_ii_something" could be from joomlart.com . 我有一个模板“ ja_purity_ii_something”可能来自joomlart.com Anyway, this template contains modules like /html/mod_latestnews/default.php . 无论如何,此模板包含/html/mod_latestnews/default.php模块。

In this file a parameter $list magically turns up. 在这个文件中,参数$list神奇地出现了。

How can I change this parameter? 如何更改此参数?

Some code from default.php : 来自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. 不确定如何将它们连接起来,但是如果我插入一个jpg名称,它会起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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