Joomla:使用 RAXO All-mode PRO 和 JXtending 标签显示文章
我目前正在开发一个网站,该网站使用“RAXO All-mode PRO”模块在主页上显示文章列表,并使用“JXtending labels”组件显示包含与给定标签关联的文章列表的页面。两者的前端功能非常相似 - 获取文章列表并显示它们。
理想情况下,我希望两个列表都以相同的格式显示文章。然而,由于每个组件/模块都有自己的获取数据的方式和自己的模板,因此它们目前不一致。解决这个问题的最佳方法是什么?
我可以设想一段通用的代码(模块?插件?组件?)来处理文章列表的显示,并为此目的拥有自己的模板。我想我需要破解现有的模块和组件以移交给这个公共部分。还有获取同一组数据的问题 - 例如,RAXO All-mode PRO 当前获取文章的类别; JXtending 标签则不然。
以前有人遇到过这个问题吗?
I'm currently working on a site that uses the 'RAXO All-mode PRO' module to display a list of articles on the home page, and the 'JXtended labels' component to display pages containing a list of articles associated with given labels. The front-end functionality in both is very similar - get a list of articles and display them.
Ideally, I'd like both lists to display articles in the same format. However, since each component/module has its own way of fetching the data, and its own template, they're currently inconsistent. What's the best way of going about resolving this?
I can envisage a common bit of code (a module? plugin? component?) that deals with the display of a list of articles, and has its own template for that purpose. I guess I'd then need to hack the existing module and component to hand over to this common piece. There's also the question of getting the same set of data - e.g. RAXO All-mode PRO currently gets an article's category; JXtended labels doesn't.
Has anyone come across this issue before?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
模块提取不同数据集的问题只能通过破解核心以获取丢失的数据来解决。
其他一切都可以通过简单的覆盖来完成。您可以修改模块模板文件,然后将新版本保存在 JOOMLA/templates/YOUR TEMPLATE/html/MODULE NAME/default.php 中。您可以使覆盖文件几乎完全匹配,以便两个模块的显示保持一致。
The issue of the modules pulling different data sets can only be remedied by hacking the core to get the data that is missing.
Everything else can be accomplished by a simple override. You can modify the module template files then save the new version in JOOMLA/templates/YOUR TEMPLATE/html/MODULE NAME/default.php. You can make the override files match pretty much exactly so the display will be consistent across both modules.