I am Pascal/Java programmer and before 10 years I was learn little Pearl.
PHP I not use all this years
When I think how to add prefix to my links of articles,
I look on net how you worked with suffix in phpwcms ...
And based on this article
http://forum.phpwcms.org/viewtopic.php?t=11618
I made following changes:
---
/config/phpwcms/config.inc.php(at end):
// 25.10.2012
$phpwcms['article_prefix'] = 'свитак_'; // The file prefix used while URL is rewritten # 25.10.2012
---
/include/inc_lib/default.inc.php (in block where PHPWCMS_REWRITE_EXT was defined)
---
define ('PHPWCMS_ARTICLE_PREFIX', isset($phpwcms['article_prefix']) ? $phpwcms['article_prefix'] : ''); // 25.10.2012 - emty if not defined
---
--- /include/inc_front/front.func.inc.php (at end of function)
// REWRITE - PATCHED FOR 04/04 // jan212
function url_search($query) {
$query_string = '';
$anchor = '';
if ( substr($query[3], 0, 3) == 'id=') {
$file = str_replace(',', '.', substr($query[3], 3));
} else {
$file = str_replace(array(',', 'aid='), array('.', 'aid'.rawurlencode('=')), $query[3]);
}
if(strpos($file, '#') !== false) {
preg_match('/^(.*?)(#.*?){0,1}$/', $file, $match);
$file = $match[1];
if(isset($match[2])) {
$anchor = $match[2];
}
}
if(strpos($file, '&') !== false) {
preg_match('/^(.*?)(&.+?=.*?){0,1}$/', $file, $match);
$file = $match[1];
if(isset($match[2])) {
$query_string = $match[2];
if(substr($query_string, 0, 5) == '&') {
$query_string = substr($query_string, 5);
}
$query_string = '?' . $query_string;
}
}
return $query[1].'="'
.PHPWCMS_ARTICLE_PREFIX.$file.PHPWCMS_REWRITE_EXT.$query_string.$anchor.'"';
// 25.10.2012
}
---
And I change rss.php /feed.php/ and sitemap.php...
This was worked, as I want!
-------------------------
My links of articles have now prefix as I want

Complete on Cyrillic!
Why was this important to me or our group?
Type of oure articles which was published of site was special as Scrolls.
As Robin Hood, we published it on tree! And I like that this names was corresponding!
And now I think, that sucess...
Real changes will come... (Like Obama's lies or not?)
It's only question of time and patience ...
It's left only problem of paging...
I hope, that this will help to someone!
Something about Scrolls:
http://www.spc.rs/eng/largest_ever_dead ... s_seminary