doucha7329 2013-11-19 09:55
浏览 21

将Joomla的RokAjaxSearch纳入Blogger?

I want to incorporate a RokajaxSearch into the fixed header of my blogger site.

I've googled different queries on this to no avail. Is it possible to add rokajaxsearch to a blogger site? and if so, how would one go about setting it up? so it lists results for posts in my blogger.

I don't think I can upload those files to blogger. so I was thinking I could upload the js, css files to another host that direct to my blogger site, not sure though. My site gets 3.5K views a day. I want to really up the game in the functionality of the site.

Little stuck here..Thanks in advance for any coding advice guys.

  • 写回答

1条回答 默认 最新

  • dqgo99177 2013-11-19 10:20
    关注

    You will firstly need to import the Joomla framework like so:

    define( '_JEXEC', 1 );
    define('JPATH_BASE', dirname(__FILE__).'/../' ); // should point to Joomla root - change accordingly
    require_once ( JPATH_BASE .'/includes/defines.php' );
    require_once ( JPATH_BASE .'/includes/framework.php' );
    $app = JFactory::getApplication('site');
    

    Then to display the module, you can use the following:

    jimport( 'joomla.application.module.helper' );
    $module = JModuleHelper::getModule( 'rokajaxsearch', 'Search' );
    $attribs['style'] = 'xhtml';
    echo JModuleHelper::renderModule( $module, $attribs );
    

    For more information on how to render a Joomla module, have a read of this:

    http://docs.joomla.org/JModuleHelper/renderModule

    Hope this helps

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度