1

Hi I hope this is a simple problem for someone to solve, where I have in my code:

 <?php echo $this->lists['cats']; ?>

This will list all the categories available from my JoomGallery category table... I want to select a default category within this i.e. 'users' so when users access the front page the category 'users' will already be in the drop down box. How can I edit the code to do this?

Thanks

Ben

4

2 回答 2

0

在玩了之后,它只是改变了这个值:

 $lists['cats'] = JHTML::_('joomselect.categorylist', 1, 'catid', null, null, '- ', null, 'joom.upload');

感谢@GDP 为我指明了正确的方向

埃迪

于 2012-07-12T05:25:25.943 回答
0

我不知道它使用的是 option.list 还是 genericlist,但此链接将向您展示如何设置它们的默认值。

于 2012-07-11T18:28:29.003 回答