如何转到 Joomla 中的特定选项卡
我使用 joomla 1.7 创建了一个组件,并使用了如下选项卡。现在我的活动页面是第一个选项卡(tab1.php)。我想要的是我想通过单击链接转到第三个选项卡。以下链接用于转到此组件页面,当前它加载上次单击的选项卡。请帮助解决这个问题。
<a href="index.php?option=com_movies&controller=movie&task=allocate" >Allocate</a>
$pane =& JPane::getInstance('tabs', array('startOffset'=>0));
echo $pane->startPane( 'pane' );
echo $pane->startPanel(JText::_('First Tab'), 'panel1' );
include_once('tab1.php');
echo $pane->endPanel();
echo $pane->startPanel(JText::_('Second Tab'), 'panel2' );
include_once('tab2.php');
echo $pane->endPanel();
echo $pane->startPanel(JText::_('Third Tab'), 'panel3' );
include_once('tab3.php');
echo $pane->endPanel();
echo $pane->endPane();
I have created a component using joomla 1.7 and I have used tabs like follows. Now My active page is First Tab(tab1.php). What I want is I want to go to the third tab by clicking a link. Following link is used to go to this component page, currently it loads last clicked tab. Plz help to solve this.
<a href="index.php?option=com_movies&controller=movie&task=allocate" >Allocate</a>
$pane =& JPane::getInstance('tabs', array('startOffset'=>0));
echo $pane->startPane( 'pane' );
echo $pane->startPanel(JText::_('First Tab'), 'panel1' );
include_once('tab1.php');
echo $pane->endPanel();
echo $pane->startPanel(JText::_('Second Tab'), 'panel2' );
include_once('tab2.php');
echo $pane->endPanel();
echo $pane->startPanel(JText::_('Third Tab'), 'panel3' );
include_once('tab3.php');
echo $pane->endPanel();
echo $pane->endPane();
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要添加以下链接来执行一些 mootool 代码
You need to add following link which execute some mootool code
我使用以下代码,
在您的情况下,更改将如下所示,
I use following code,
In your case changes will look like,