问题现象

单击 Gallery 中的图片后,应该是弹出一个层来显示图片,但是浏览器却转到了图片地址页面。

 

问题原因

更新了 Joomla Engine 和 K2。

 

解决方法

修改 /templates/theme1110/html/com_k2/templates/portfolio/category.php

<?php
/**
 * @version		$Id: category.php 785 2011-04-28 12:39:17Z lefteris.kavadas $
 * @package		K2
 * @author		JoomlaWorks http://www.joomlaworks.gr
 * @copyright	Copyright (c) 2006 - 2011 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved.
 * @license		GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
 */

// no direct access
JHtml::_('behavior.modal', 'a.modal');
defined('_JEXEC') or die('Restricted access');

 添加以上代码中红色字体行。

 

相关文章:

  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-22
  • 2021-11-28
  • 2021-11-15
  • 2022-12-23
  • 2021-10-07
相关资源
相似解决方案