【问题标题】:pass joomla article id to modal iframe form将 joomla 文章 ID 传递给模态 iframe 表单
【发布时间】:2014-03-09 22:50:25
【问题描述】:

我在我的 joomla 2.5 组件中有一个视图和一个表单。 现在我通过使用 joomla modal 的这段代码在我的文章中显示这个表单,它的工作

<a class="modal"  rel="{handler: \'iframe\', size: {x: 600, y: 375}}" href='.$formlink.'>my text</a>

现在如何将我的文章 ID 发送到此表单以将其插入我的数据库? 我想将我的文章 ID 传递给 iframe 表单。

【问题讨论】:

    标签: php plugins joomla components


    【解决方案1】:

    我发现怎么做。 我们可以使用以下代码:

    $id = $article->id; $formlink = JRoute::_("index.php?option=com_mycomponent&view=myview&tmpl=component&id=$id")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-08
      • 1970-01-01
      • 2013-05-23
      • 1970-01-01
      • 2019-04-03
      • 2021-07-18
      相关资源
      最近更新 更多