помогите разбратся с проблемой!
Установил YAMS как в мануале..
Проблема в том что, при изменении на yes в Multilingual Templates (то есть если я делаю шаблон многоязычным)
в редактировании страницы оно пишет вот это...
на каждый язык отдельно
И в связи с этим нечего не работает....
----------- Rename field -------------- $j("input[name=pagetitle]").parents("td").prev("td").children("span.warning").empty().prepend("Internal Name"); // ----------- Change field help -------------- $j("input[name=pagetitle]").siblings("img[style:contains('cursor:help')]").attr("id", "pagetitle-help").attr("alt", "This field is used to identify the document (and its language variants) within the document tree of the MODx Manager. It will not appear anywhere on the document itself.").attr("title", "This field is used to identify the document (and its language variants) within the document tree of the MODx Manager. It will not appear anywhere on the document itself."); // ----------- Create tab -------------- $j('div#'+mm_lastTab).after('
'); mm_lastTab = 'taben'; tpSettings.addTabPage( document.getElementById( "taben" ) ); // ----------- Move field to tab -------------- if ( $j('#taben').length > 0) { var ruleHtml = '
'; $j("select[id$=_prefix]").each( function() { $j(this).parents("tr:first").addClass("urltv"); } ); var toMove = $j("input[name=tv4]").parents("tr:not(.urltv)"); // Identify the table row to move toMove.next("tr").find("td[colspan=2]").parents("tr").remove(); // Get rid of line after, if there is one var movedTV = toMove.appendTo("#taben>table:first"); // Move the table row movedTV.after(ruleHtml); // Insert a rule after movedTV.find("td[width]").attr("width",""); // Remove widths from label column $j("[name^=tv4]:first").parents("td").removeAttr( "style" ); // This prevents an IE6/7 bug where the moved field would not be visible until you switched tabs var toMove = $j("input[name=tv6]").parents("tr:not(.urltv)"); // Identify the table row to move toMove.next("tr").find("td[colspan=2]").parents("tr").remove(); // Get rid of line after, if there is one var movedTV = toMove.appendTo("#taben>table:first"); // Move the table row movedTV.after(ruleHtml); // Insert a rule after movedTV.find("td[width]").attr("width",""); // Remove widths from label column $j("[name^=tv6]:first").parents("td").removeAttr( "style" ); // This prevents an IE6/7 bug where the moved field would not be visible until you switched tabs var toMove = $j("input[name=tv8]").parents("tr:not(.urltv)"); // Identify the table row to move toMove.next("tr").find("td[colspan=2]").parents("tr").remove(); // Get rid of line after, if there is one var movedTV = toMove.appendTo("#taben>table:first"); // Move the table row movedTV.after(ruleHtml); // Insert a rule after movedTV.find("td[width]").attr("width",""); // Remove widths from label column $j("[name^=tv8]:first").parents("td").removeAttr( "style" ); // This prevents an IE6/7 bug where the moved field would not be visible until you switched tabs var toMove = $j("textarea[name=tv10]").parents("tr:not(.urltv)"); // Identify the table row to move toMove.next("tr").find("td[colspan=2]").parents("tr").remove(); // Get rid of line after, if there is one var movedTV = toMove.appendTo("#taben>table:first"); // Move the table row movedTV.after(ruleHtml); // Insert a rule after movedTV.find("td[width]").attr("width",""); // Remove widths from label column $j("[name^=tv10]:first").parents("td").removeAttr( "style" ); // This prevents an IE6/7 bug where the moved field would not be visible until you switched tabs var toMove = $j("input[name=tv12]").parents("tr:not(.urltv)"); // Identify the table row to move toMove.next("tr").find("td[colspan=2]").parents("tr").remove(); // Get rid of line after, if there is one var movedTV = toMove.appendTo("#taben>table:first"); // Move the table row movedTV.after(ruleHtml); // Insert a rule after movedTV.find("td[width]").attr("width",""); // Remove widths from label column $j("[name^=tv12]:first").parents("td").removeAttr( "style" ); // This prevents an IE6/7 bug where the moved field would not be visible until you switched tabs var toMove = $j("textarea[name=tv14]").parents("tr:not(.urltv)"); // Identify the table row to move toMove.next("tr").find("td[colspan=2]").parents("tr").remove(); // Get rid of line after, if there is one var movedTV = toMove.appendTo("#taben>table:first"); // Move the table row movedTV.after(ruleHtml); // Insert a rule after movedTV.find("td[width]").attr("width",""); // Remove widths from label column $j("[name^=tv14]:first").parents("td").removeAttr( "style" ); // This prevents an IE6/7 bug where the moved field would not be visible until you switched tabs } // ----------- Create tab -------------- $j('div#'+mm_lastTab).after(''); mm_lastTab = 'tabru'; tpSettings.addTabPage( document.getElementById( "tabru" ) ); // ----------- Move field to tab -------------- if ( $j('#tabru').length > 0) { var ruleHtml = '
'; $j("select[id$=_prefix]").each( function() { $j(this).parents("tr:first").addClass("urltv"); } ); var toMove = $j("input[name=tv5]").parents("tr:not(.urltv)"); // Identify the table row to move toMove.next("tr").find("td[colspan=2]").parents("tr").remove(); // Get rid of line after, if there is one var movedTV = toMove.appendTo("#tabru>table:first"); // Move the table row movedTV.after(ruleHtml); // Insert a rule after movedTV.find("td[width]").attr("width",""); // Remove widths from label column $j("[name^=tv5]:first").parents("td").removeAttr( "style" ); // This prevents an IE6/7 bug where the moved field would not be visible until you switched tabs var toMove = $j("input[name=tv7]").parents("tr:not(.urltv)"); // Identify the table row to move toMove.next("tr").find("td[colspan=2]").parents("tr").remove(); // Get rid of line after, if there is one var movedTV = toMove.appendTo("#tabru>table:first"); // Move the table row movedTV.after(ruleHtml); // Insert a rule after movedTV.find("td[width]").attr("width",""); // Remove widths from label column $j("[name^=tv7]:first").parents("td").removeAttr( "style" ); // This prevents an IE6/7 bug where the moved field would not be visible until you switched tabs var toMove = $j("input[name=tv9]").parents("tr:not(.urltv)"); // Identify the table row to move toMove.next("tr").find("td[colspan=2]").parents("tr").remove(); // Get rid of line after, if there is one var movedTV = toMove.appendTo("#tabru>table:first"); // Move the table row movedTV.after(ruleHtml); // Insert a rule after movedTV.find("td[width]").attr("width",""); // Remove widths from label column $j("[name^=tv9]:first").parents("td").removeAttr( "style" ); // This prevents an IE6/7 bug where the moved field would not be visible until you switched tabs var toMove = $j("textarea[name=tv11]").parents("tr:not(.urltv)"); // Identify the table row to move toMove.next("tr").find("td[colspan=2]").parents("tr").remove(); // Get rid of line after, if there is one var movedTV = toMove.appendTo("#tabru>table:first"); // Move the table row movedTV.after(ruleHtml); // Insert a rule after movedTV.find("td[width]").attr("width",""); // Remove widths from label column $j("[name^=tv11]:first").parents("td").removeAttr( "style" ); // This prevents an IE6/7 bug where the moved field would not be visible until you switched tabs var toMove = $j("input[name=tv13]").parents("tr:not(.urltv)"); // Identify the table row to move toMove.next("tr").find("td[colspan=2]").parents("tr").remove(); // Get rid of line after, if there is one var movedTV = toMove.appendTo("#tabru>table:first"); // Move the table row movedTV.after(ruleHtml); // Insert a rule after movedTV.find("td[width]").attr("width",""); // Remove widths from label column $j("[name^=tv13]:first").parents("td").removeAttr( "style" ); // This prevents an IE6/7 bug where the moved field would not be visible until you switched tabs var toMove = $j("textarea[name=tv15]").parents("tr:not(.urltv)"); // Identify the table row to move toMove.next("tr").find("td[colspan=2]").parents("tr").remove(); // Get rid of line after, if there is one var movedTV = toMove.appendTo("#tabru>table:first"); // Move the table row movedTV.after(ruleHtml); // Insert a rule after movedTV.find("td[width]").attr("width",""); // Remove widths from label column $j("[name^=tv15]:first").parents("td").removeAttr( "style" ); // This prevents an IE6/7 bug where the moved field would not be visible until you switched tabs }