更改每个组件的模板布局
我有 1 个模板,有两列。左侧宽度为 250 像素,右侧宽度为 700 像素。我希望在调用组件横幅时,Joomla 只显示一栏宽度为 950 像素。如何进行这项工作?谢谢。 我使用 joomla1.7
I have 1 template that has two columns.left with 250px width and right with 700px width.i want when component Banners called,Joomla only show one column with 950px width.how to this work?thanks.
I work with joomla1.7
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有另一个解决方案给你。
让我们将您的位置称为左、主和横幅。这是你需要做的(或者我会如何做)。
首先,为了保持模板干净,请在模板的根文件夹中创建新文件 vars.php。
该文件包含:
在模板的 index.php 文件中包含文件 vars.php:
将主容器 div 更改为:
px">
更改左侧容器输入:
现在只需关闭左侧位置的所有模块,用于横幅组件。:)
I have another solution for you.
Lets call your positions left, main and banner. Here's what you need to do (or how I would do it).
First, to keep your template clean, create new file vars.php in your template's root folder.
This file contains:
Include file vars.php in your template's index.php file:
Change the main container div to:
px">
Change the left container input:
Now just simply turn off all modules in the left position, for banners component. :)