Joomla - 包装|有什么缺点吗?
我正在使用 Joomla 1.5,我需要在我的网站中创建一个简单的画廊,但我不想创建新的组件,因为它需要很多时间来学习......
所以我想问: 如果我在独立的 .html 文件中创建一个简单的 jQuery 画廊,然后使用 Wrapper 将其嵌入到 Joomla 中,是否会出现严重问题? 谢谢
I'm using Joomla 1.5 and I need to create a simple gallery in my site but I don't want to create new component because it's takes a lot of time to learn...
So I wanted to ask:
if I create a simple jQuery gallery in standalone .html file and then I embed it using Wrapper into Joomla, will there be any heavy problems?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您不需要为此创建一个成熟的 MVC 组件:一个快速的组件就可以了。添加文件
components/com_jquery_gallery/jquery_gallery.php
并在其中添加 HTML 代码。 HTML 可通过index.php?option=com_jquery_gallery
访问。You don't need to do a full-blown MVC component for this: a quick one will work. Add the file
components/com_jquery_gallery/jquery_gallery.php
and add your HTML code there. The HTML will be accessible throughindex.php?option=com_jquery_gallery
.Joomla Wrapper 本质上是一个 IFRAME。如果您的画廊在 IFRAME 中运行没有任何问题,并且您对手动更新嵌入的 HTML 文件非常满意,那么唯一的缺点是它是一个可用性“黑客”,并且可能会使管理它变得更加困难未来。
Joomla Wrapper is essentially an IFRAME. If your gallery works in an IFRAME without any issues, and you're completely happy with updating the embedded HTML file manually, then the only downside is that it is a usability "hack", and it may make it more difficult to manage it in the future.
包装器非常有限,您可以使用“自定义”代码插件代替包装器,它允许您将 html、javascript、PHP 放入文章中,IMO 它比包装器更好,因为它提供了更多控制。
我推荐 Sourcerer 它很棒,昨天更新了:)
The wrapper is very limited and you could use a "custom" code plugin instead of the wrapper, which allows you to place html, javascript, PHP into an article, IMO it's better than the wrapper because it gives more control.
I recommend Sourcerer It's great and was updated yesterday :)
为什么不只使用众多免费照片库扩展之一?
http://extensions.joomla.org/extensions/photos-a-images /photo-gallery
无需代码工作,功能丰富,甚至比最简单的组件都要快得多。
Why not just use one of the many free photo gallery extensions??
http://extensions.joomla.org/extensions/photos-a-images/photo-gallery
No code work, plenty of features, and much faster than even the simplest component.