If you want to use $cf['uri']['lowercase']="", you have to.Maxim wrote:Не хочу дублировать одни и те же буквы.
See also an alternative solution that delivers nice URLs (at least for some languages) without the need for urichar_org/new.
If you want to use $cf['uri']['lowercase']="", you have to.Maxim wrote:Не хочу дублировать одни и те же буквы.
Code: Select all
<link rel="prev" href="/cmsimplexh/?menu-levels-and-headings/menu-level-2-page-1">
<link rel="next" href="/cmsimplexh/?menu-levels-and-headings/menu-level-2-page-1/menu-level-3-page-2">
<link rel="canonical" href="http://localhost/cmsimplexh/menu-levels-and-headings/menu-level-2-page-1/menu-level-3-page-1">
<td class="previous"><a href="/cmsimplexh/menu-levels-and-headings/menu-level-2-page-1.html?" rel="prev">« prev</a></td>
<td class="next"><a href="/cmsimplexh/menu-levels-and-headings/menu-level-2-page-1/menu-level-3-page-2.html?" rel="next">next »</a></td>
Code: Select all
return tag('link rel="prev" href="' . $sn . '?' . $u[$index] . '"');
Code: Select all
return tag('link rel="prev" href="' . $sn . $u[$index] . '.html"');
Code: Select all
return tag('link rel="next" href="' . $sn . '?' . $u[$index] . '"');
Code: Select all
return tag('link rel="next" href="' . $sn . $u[$index] . '.html"');
Code: Select all
. htmlspecialchars($url, ENT_COMPAT, 'UTF-8') . '"') . "\n";
Code: Select all
. htmlspecialchars($url, ENT_COMPAT, 'UTF-8') . '.html"') . "\n";
Code: Select all
function previouspage()
{
global $tx;
$index = XH_findPreviousPage();
if ($index !== false) {
return a($index, '" rel="prev') . $tx['navigator']['previous'] . '</a>';
}
}
Code: Select all
function previouspage()
{
global $s, $cl, $tx;
for ($i = $s - 1; $i > -1; $i--) {
if (!hide($i)) {
return a($i, '') . $tx['navigator']['previous'] . '</a>';
}
}
}
Code: Select all
function nextpage()
{
global $tx;
$index = XH_findNextPage();
if ($index !== false) {
return a($index, '" rel="next') . $tx['navigator']['next'] . '</a>';
}
}
Code: Select all
function nextpage()
{
global $s, $cl, $tx;
for ($i = $s + 1; $i < $cl; $i++) {
if (!hide($i)) {
return a($i, '') . $tx['navigator']['next'] . '</a>';
}
}
}
Code: Select all
<a href="#anchor">see below</a>
Code: Select all
/*
* Fix links to anchors on same page.
*/
if (!(XH_ADM && $edit)) {
$i = $s > -1 ? $s : 0;
$c[$i] = preg_replace(
'/<a([^>]*)href="?#(.*)"?/',
'<a$1href="' . $su . '#$2"',
$c[$i]
);
}
-------------------------------------------------------------------------------cmb wrote:I received a support request regarding failing page internal links when using clean URLs, e.g. something like the following will not work correctly:The following addition to cmsimple/userfuncs.php is supposed to fix this issue:Code: Select all
<a href="#anchor">see below</a>
Code: Select all
/* * Fix links to anchors on same page. */ if (!(XH_ADM && $edit)) { $i = $s > -1 ? $s : 0; $c[$i] = preg_replace( '/<a([^>]*)href="?#(.*)"?/', '<a$1href="' . $su . '#$2"', $c[$i] ); }
Nein. Die "Beseitigung des Fragezeichens" ist genau das, was die Clean-URL-Lösung macht (oder versucht zu machen). Ich hoffe nach wie vor, dass zumindest der grundlegende (optionale) Support für clean URLs in XH 1.7 Einzug halten wird. Das spart Maxim die Arbeit immer wieder die entsprechenden Anpassungen vorzunehmen, und dürfte auch die entsprechende Unterstützung durch Plugins vorantreiben.wsim123 wrote:und habe jetzt nur noch das Fragezeichen nach der Basisurl. Gibt es eine einfache Methode dieses zu beseitigen ?
cmb wrote:Indeed. We will hopefully address this issue in CMSimple_XH 1.6.2. For now you can use (space instead of underscore):Maxim wrote:Настройки" > "CMS" > "Show homepage" - не меняется.Code: Select all
$mtx['show homepage']="Startseite anzeigen";
I'm not sure if I understand you correctly. If some translations are not necessary, they can be skipped completely (just remove the lines from metaXY.php). If more translations are needed, they can be inserted to the file. However, I'm still not sure, if the translation capabilities are fine grained enough; it might be necessary to translate certain words differently in different contexts.Maxim wrote:Не везде нужно переводить и в "Настройки > CMS" и в "Настройки > Язык"
К примеру:
\cmsimple\languages\metaru.phpCode: Select all
$mtx['images']="Изображения"; $mtx['language']="Язык";
Thanks. I hope you'll find some time to finish the translation.Maxim wrote:Я только начал переводить, не много могу сказать.
http://foxpro.maxim.zp.ua/saytostroenie ... -urls.html