Hello, like putting in so handy pluging urleditor
Macik |
|
---|---|
Ok. Thanks. The first time I just missed «new rule» link in web UI of urleditor. Добавлено 5 часов спустя: «urltrans» work quite well for my case. It's hardcoded as an array in my plug, so I inject it in $cot_urltrans right in the code. $my_urltrans[] = array( 'params' => cot_parse_str('mode=catalog&gfx=1'), 'trans' => '{!$mode}{$_area}/{$c}/{$s}/{$typ}/{$vp}+{$year}+{$month}/graphics/{$mg}/{$bt}/' ); // and so on $cot_urltrans['myplug'] = $my_urltrans; But had another inconvenient thing. As I use shorthand style of call «cot_url», like cot_url('myplug', 'mode=catalog'); // other parameters added automatically from global scope as noted in urltrans So I trapped myself to cot_url_custom. If urleditor not installed - my code will not work. And anyway I must write a cot_url wrapper to autimatically send all long chain of parameters to cot_url(). https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F |
|
Bu gönderi Macik tarafından düzenlendi (2012-07-06 22:05, 13 yıllar önce) |