gpt4 book ai didi

view - 如何在模态窗口中放置 Joomla 2.5 后端 View

转载 作者:行者123 更新时间:2023-12-02 05:02:49 25 4
gpt4 key购买 nike

我喜欢在模式窗口中打开组件后端 View 。我所有的尝试都将我带到一个模态窗口,在模态窗口的 iframe 中显示整个后端。我使用此链接打开窗口:

<?php 
$link = 'index.php?option=com_serveradmin&view=filehistory&layout=modal&id=' . (int)$file->id;
?>
<a href="<?php echo JRoute::_($link);?>" class="modal"
rel="{handler: 'ajax', size: {x: 875, y: 550}, onClose: function() {}}" >
<?php echo $file->orig_name; ?>
</a>

View 文件夹包含带有以下代码的 modal.php:

    defined('_JEXEC') or die;
JHtml::_('behavior.modal');
?>

<h1>This is the file history</h1>

仅此而已,这就是我想在第一步中展示的全部内容。有人试过这个吗?有没有办法做到这一点?提前致谢。

最佳答案

您可以将 tmpl=component 添加到您的 url,这样 Joomla 将只呈现没有模板的组件。事实上,Joomla 将使用您当前模板中的 component.php

关于view - 如何在模态窗口中放置 Joomla 2.5 后端 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14768658/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com