Questions tagged «subform»

4
如何从子表单中获取价值
我想在模板中嵌入一个简单的幻灯片,并希望使用子窗体来更轻松地更改图像。 这是我用来调用子xml文件的代码 <field name="slideshow_items" type="subform" formsource="templates/jomlamaster/admin/subform/slideshow.xml" min="1" max="4" multiple="true" layout="joomla.form.field.subform.repeatable-table" groupByFieldset="true" label="Subform Field" description="Subform Field Description" /> 这是slideshow.xml的内容: <?xml version="1.0" encoding="UTF-8"?> <form> <fieldset name="fieldset" label="Slideshow"> <field name="slideshow_img" type="media" directory="" label="Slideshow item" description="Choose an image slideshow"/> <field name="slideshow_title" type="text" class="inputbox" label="Slideshow text" size="40" /> </fieldset> </form> 这是我在print_r($ slideshow_items);时得到的。 stdClass Object ( …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.