Forums / Cotonti / General / Hacking UrlEditor

need to hack one line

Eugene
#36896 2013-01-28 11:37

Hello!

Just need to rewrite urls like this... /users/Eugene/blabla ( GETting that as m=details&u=*&det=*)

In urleditor.functions.php I found a line (#85)

if ($path[0] == 'users' && $count == 2 && !isset($_GET['m']))

so, this $count == 2 is limiting me in my task.

What is the best COT-way to hack it?

  • creating function cot_apply_rwr_custom() and place it on the INPUT hook ...      OR
  • use hook urleditor.rewrite.first  to recode major part of  function cot_apply_rwr()

Is there better way?