【问题标题】:why i lost name of my my new joomla hello world extension in components menu?为什么我在组件菜单中丢失了我的新 joomla hello world 扩展名?
【发布时间】:2013-09-24 16:22:25
【问题描述】:

我刚刚使用发现扩展方法制作了新的 joomla3.1 hello world 扩展,我安装了它。但是安装后我无法在 joomla 组件菜单中找到扩展名。

我已经试过这个链接它工作正常。

http://localhost/COM/administrator/index.php?option=com_process 

期待有用的回应

<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id$ -->
<extension type="component" version="3.1" method="upgrade">
    <name>COM_PROCESS_NAME</name>
    <author>Arslan Tahir</author>
    <creationDate>25 DEC 2013</creationDate>>
    <copyright>GPL</copyright>
    <license></license>
    <auhtorEmail>aaa@outlook.com</auhtorEmail>
    <version>1</version>
    <description>COM_PROCESS_DESCRIPTION</description>



    <administration>
        <files>
        <filename>index.html</filename>
        <filename>process.php</filename>
        </files>
        <menu>COM_PROCESS_NAME</menu>
    </administration> 
</extension>

【问题讨论】:

  • 我刚刚在扩展管理器中找到了我的扩展->管理但在组件菜单中不可见

标签: joomla joomla-extensions


【解决方案1】:

我遇到过几次菜单项由于禁用/卸载组件而被禁用的情况,然后在升级或安装组件时它没有重新出现。 #__menu 表中可能有一个菜单项。在表格中搜索组件名称 (com_helloworld?) 作为标题。应该在那里找到一个项目。确保已发布设置为 1,并且 component_id 与 #__extensions 表中组件的 id 匹配。

【讨论】:

  • 谢谢哥们。你是天才。在 #__menu 表中显示 component_id=0。在我更改该 ID 后它就开始工作了。再次感谢大卫。
  • 我认为这些浪费时间的错误的解决方案应该包含在 joomla 中。 . .
  • 完全同意。但是我们中的一个人实际上必须花费额外的时间来做到这一点。我很高兴这至少会在 Stack 上,所以最终你可以用谷歌搜索它并找到解决方案。在安装过程中可能会检查构建菜单,需要进行一些优化。
【解决方案2】:

您需要在 #__extensions 表中为您的组件创建一个新条目。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-10-17
    • 1970-01-01
    • 1970-01-01
    • 2012-08-03
    • 1970-01-01
    • 2018-11-08
    相关资源
    最近更新 更多