Is is possible to use joomla 3 modules on joomla 2.5?

自古美人都是妖i 提交于 2019-12-11 08:07:06

问题


Is there any way to use Joomla! 3 extensions on J!2.5 ?

I need to use Noo Timeline on Joomla! 2.5 but there is no version for it.

http://extensions.joomla.org/extensions/calendars-a-events/time/content-date-a-time/25732

Best regards,


回答1:


Change below codes in below files

In modules/mod_noo_timeline/elements/nootimeline.php Line no: 25

Change

JHtml::_('jquery.ui', array('core','sortable')); 

To:

$document = JFactory::getDocument();
$document->addScript("//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js");
$document->addScript("//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js");
$document->addStyleSheet("//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css"); 

In modules/mod_noo_timeline/mod_noo_timeline.php Line no: 16

Add below code:

$document->addScript("//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js");

On line no 24

Change below code:

jQuery(document).ready(function($){

To:

$(document).ready(function($){

In modules/mod_noo_timeline/assets/css/style.css Line no: 45

replace css for class (.noo-tl-item.left):

.noo-tl-item.left {
float: left;
width:50%;
}

It worked for me.



来源:https://stackoverflow.com/questions/22721275/is-is-possible-to-use-joomla-3-modules-on-joomla-2-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!