<tfoot id='uvhvh'></tfoot>
    1. <small id='uvhvh'></small><noframes id='uvhvh'>

      <legend id='uvhvh'><style id='uvhvh'><dir id='uvhvh'><q id='uvhvh'></q></dir></style></legend>
      <i id='uvhvh'><tr id='uvhvh'><dt id='uvhvh'><q id='uvhvh'><span id='uvhvh'><b id='uvhvh'><form id='uvhvh'><ins id='uvhvh'></ins><ul id='uvhvh'></ul><sub id='uvhvh'></sub></form><legend id='uvhvh'></legend><bdo id='uvhvh'><pre id='uvhvh'><center id='uvhvh'></center></pre></bdo></b><th id='uvhvh'></th></span></q></dt></tr></i><div id='uvhvh'><tfoot id='uvhvh'></tfoot><dl id='uvhvh'><fieldset id='uvhvh'></fieldset></dl></div>

        • <bdo id='uvhvh'></bdo><ul id='uvhvh'></ul>

        Joomla - 管理面板中的动态下拉列表

        Joomla - dynamic dropdown list in admin panel(Joomla - 管理面板中的动态下拉列表)
      1. <i id='xTn70'><tr id='xTn70'><dt id='xTn70'><q id='xTn70'><span id='xTn70'><b id='xTn70'><form id='xTn70'><ins id='xTn70'></ins><ul id='xTn70'></ul><sub id='xTn70'></sub></form><legend id='xTn70'></legend><bdo id='xTn70'><pre id='xTn70'><center id='xTn70'></center></pre></bdo></b><th id='xTn70'></th></span></q></dt></tr></i><div id='xTn70'><tfoot id='xTn70'></tfoot><dl id='xTn70'><fieldset id='xTn70'></fieldset></dl></div>
        <legend id='xTn70'><style id='xTn70'><dir id='xTn70'><q id='xTn70'></q></dir></style></legend>

        <small id='xTn70'></small><noframes id='xTn70'>

              <bdo id='xTn70'></bdo><ul id='xTn70'></ul>
                  <tbody id='xTn70'></tbody>

                1. <tfoot id='xTn70'></tfoot>
                  本文介绍了Joomla - 管理面板中的动态下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在 Joomla 的管理面板中向我的用户创建表单添加了一个下拉列表!1.5(使用 .xml 文件).我的问题是它的内容必须是动态的(来自外部源文件).我的问题是我可以在哪里(以及如何)做到这一点.

                  I have added a dropdown list to my user creation form in admin panel in Joomla! 1.5 (using .xml files). The problem I have is that the content of it must be dynamic (comes from an external source file). My question is where (and possibly how) I can make it.

                  推荐答案

                  您可以创建自己的类型.在您的 default.xml 中,您将拥有如下内容:

                  you can create your own type. At your default.xml you will have something like:

                  <url addpath="/administrator/components/com_componentname/elements/">
                      <param name="id" type="myType" default="0" label="SELECT_LABEL" description="SELECT_DESC" />
                  </url>
                  

                  并在/administrato/components/com_componentname/elements/myType.php 中实现

                  and as implementation in /administrato/components/com_componentname/elements/myType.php

                  class JElementmyType extends JElement {
                      var     $_name = 'myType';
                  
                      function fetchElement($name, $value, &$node, $control_name)
                      {
                  
                              $list = READ_FILE_OR_DB_OR_ANYTHING();
                              array_unshift($list, JHTML::_('select.option', '0', '-'.JText::_('Select Me').' -', 'value', 'text'));
                  
                              return JHTML::_('select.genericlist',  $list, ''.$control_name.'['.$name.']', 'class="inputbox"', 'value', 'text', $value, $control_name.$name );
                      }
                  

                  }

                  这篇关于Joomla - 管理面板中的动态下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Is Joomla 2.5 much faster than Joomla 1.5 Querywise(Joomla 2.5 比 Joomla 1.5 Querywise 快得多吗)
                  How to share Joomla login session from one joomla website to one ASP.Net MVC website(如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站)
                  htaccess redirect root to subdirectory but allow index.php in root AND query strings to function(htaccess 将根重定向到子目录,但允许根和查询字符串中的 index.php 起作用)
                  Joomla include database functions(Joomla 包含数据库功能)
                  nl2br() not working when displaying SQL results(显示 SQL 结果时 nl2br() 不起作用)
                  Joomla 2.5 JFactory::getSession(); seems to be caching in firefox(Joomla 2.5 JFactory::getSession();似乎在 Firefox 中缓存)

                  1. <legend id='Za9mo'><style id='Za9mo'><dir id='Za9mo'><q id='Za9mo'></q></dir></style></legend>
                    • <bdo id='Za9mo'></bdo><ul id='Za9mo'></ul>

                      <small id='Za9mo'></small><noframes id='Za9mo'>

                        <tbody id='Za9mo'></tbody>

                            <tfoot id='Za9mo'></tfoot>

                          1. <i id='Za9mo'><tr id='Za9mo'><dt id='Za9mo'><q id='Za9mo'><span id='Za9mo'><b id='Za9mo'><form id='Za9mo'><ins id='Za9mo'></ins><ul id='Za9mo'></ul><sub id='Za9mo'></sub></form><legend id='Za9mo'></legend><bdo id='Za9mo'><pre id='Za9mo'><center id='Za9mo'></center></pre></bdo></b><th id='Za9mo'></th></span></q></dt></tr></i><div id='Za9mo'><tfoot id='Za9mo'></tfoot><dl id='Za9mo'><fieldset id='Za9mo'></fieldset></dl></div>