[英]Joomla Module Chrome module index
I am using Joomla Module Chrome to style a sidebar. 我正在使用Joomla Module Chrome设置边栏样式。 Is it possible to find out if the current module is the last module in the modules.php file? 是否可以找出当前模块是否是modules.php文件中的最后一个模块?
Basically i want to find the current module's Index in the CountModules function 基本上我想在CountModules函数中找到当前模块的索引
I guess you're trying to add extra CSS to the last sidebar item, right? 我想您正在尝试将额外的CSS添加到最后一个侧边栏项目,对吗? I don't use Joomla myself, but if possible, you could add an id="last-item"
attribute to the last module element. 我自己没有使用Joomla,但如果可能的话,可以在最后一个模块元素中添加id="last-item"
属性。 Then in the CSS you could define whatever you want to the last item using #last-item
. 然后在CSS中,您可以使用#last-item
在最后一项中定义任何内容。
Also if you just wanted to add a line or something to the bottom (as supposed to something like a background colour) you could add another module to the bottom just containing that. 同样,如果您只想在底部添加一行或其他内容(如背景色),则可以在底部添加另一个包含该内容的模块。 It's a bit messy but it could work. 有点混乱,但是可以工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.