Forums / Cotonti / Extensions / Support / Sidepanel plugin always redirects to itself at login

Twiebie
#38220 2013-10-22 22:04

If you want to do it with a plugin you should set the hook to ajax.

Call it like this:

PHP
1
2
3
4
5
6
7
8
9
10
11
<?php defined('COT_CODE') or die('Wrong URL');
/* ====================
  [BEGIN_COT_EXT]
  Hooks=ajax
  [END_COT_EXT]
  ==================== */
 
$t = new XTemplate(cot_tplfile('sidepanel', 'plug'));
 
$t->parse();
$t->out();
XML/XHTML
1
2
<!-- sidebar stuff -->
<div id="extruderRight" class="{title:'User Control Panel', url:'index.php?r=sidepanel'}"></div>

Note the index.php?r=sidepanel