Joomla 1.5 侧边栏导航菜单显示当前页面 可能吗?
因此,我正在开发 Joomla 1.5 并改造现有网站以与此 CMS 配合使用。我已经下载了大部分模板,并在内部页面上创建了侧面导航模块。然而,在原始网站上,php in 子句用于更改链接的类别以显示访问者当前所在的页面(例如
<a <?php if ($page=="career_opportunities") echo "class=\"currentpage\""; ?> href="?page=career_opportunities">Career Opportunities</a><br/>
<a <?php if ($page=="locations") echo "class=\"currentpage\""; ?> href="?page=locations">Practice Locations</a>
</div>
我是否可以在 joomla 创建的新侧面导航菜单中维护此结构?我必须将其做成HTML自定义类型模块吗?我是否需要找到一种方法来捕获当前页面的ID?我应该从哪里开始?
先感谢您
So I am working on Joomla 1.5 and retro fitting an existing website to work with this CMS. I've got most of the templates down and I have created Modules for Side navigation on the internal pages. However, on the original website, php in clauses are used to change the class of the link to show the current page the visitor was on (e.g
<a <?php if ($page=="career_opportunities") echo "class=\"currentpage\""; ?> href="?page=career_opportunities">Career Opportunities</a><br/>
<a <?php if ($page=="locations") echo "class=\"currentpage\""; ?> href="?page=locations">Practice Locations</a>
</div>
is it possible for me to maintain this structure in the new side navigation menu I created in joomla? Do I have to make it HTML customized type Module? Do I need to find a way to capture the current page's ID? Where should I begin?
Thank you in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您也可以使用 css 来做到这一点,这对您来说使用 css 处理这个问题会很容易。
You can do it by using css also which will be much easy for you to handle this using css.