简体   繁体   English

如果在前端登录,则向每个joomla模块添加ID

[英]Add id to each joomla module if logged in frontend

i have been searching around the internet for a while and cant get any idea of how i will be able to show the module database id as html attribute id without dealing with the template files. 我已经在互联网上搜索了一段时间,无法了解如何将模块数据库ID显示为html属性ID,而无需处理模板文件。

My first idea was to make a plugin that adds this function to each module loaded but i dont think that is the solution anymore. 我的第一个想法是制作一个插件,将此功能添加到加载的每个模块中,但我认为这不再是解决方案。

I hope some of you can give me some ideas of what methods i should use and if it is possible to do this in some way. 我希望你们中的一些人能给我一些我应该使用什么方法的想法,以及是否有可能以某种方式做到这一点。

Thank you for your awnsers. 谢谢您的遮阳篷。

I'd look into creating what's called a Custom Module Chrome. 我将研究创建所谓的“自定义模块Chrome”。 To do this does involve creating a file within your template, however. 为此,确实需要在模板中创建文件。

Is there a reason to not work on the template? 是否有理由不使用模板? The only valid one I can think of is if it is a third party one that gets patched. 我能想到的唯一有效的方法是,如果它是被修补的第三方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM