{"id":157483,"date":"2012-11-06T02:40:04","date_gmt":"2012-11-05T22:40:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=157483"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=157483","title":{"rendered":"<span class=\"post_title\">\u0417\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u00ab\u0418\u043c\u043f\u043e\u0440\u0442-\u044d\u043a\u0441\u043f\u043e\u0440\u0442\u00bb<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h4>\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0437\u0434\u0440\u0430\u0432\u0438\u044f \u0432\u0441\u0435\u043c \u0445\u0430\u0431\u0440\u0430\u0436\u0438\u0442\u0435\u043b\u044f\u043c!<\/h4>\n<p>  MODx Revolution \u0443\u0434\u043e\u0431\u043d\u0430 \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f\u0445. \u0415\u0441\u043b\u0438 \u0432 MODx Evolution \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0451, \u0442\u043e \u0432 MODx Revolution \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0441\u0451. \u0411\u044b\u043b\u0438 \u0431\u044b \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u044f \u0438 \u0442\u0435\u0440\u043f\u0435\u043d\u0438\u0435. \u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f Revolution \u0443 \u043c\u043d\u043e\u0433\u0438\u0445 \u0432\u0441\u0442\u0430\u043b \u0432\u043e\u043f\u0440\u043e\u0441: \u043a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439. \u041e\u0434\u043d\u043e \u0434\u0435\u043b\u043e, \u0435\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 \u0441 \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u0422\u0443\u0442 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0430 \u0412\u0430\u043c \u0432 \u043f\u043e\u043c\u043e\u0449\u044c. \u0414\u0440\u0443\u0433\u043e\u0435 \u0434\u0435\u043b\u043e \u2014 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430, \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<h5>\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f<\/h5>\n<p>  \u0411\u044b\u043b\u043e \u0443 \u043c\u0435\u043d\u044f \u0434\u0432\u0435 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u2014 \u0430\u043d\u0435\u043a\u0434\u043e\u0442\u043d\u0438\u043a \u0438 \u0431\u044b\u043b\u0438\u043d\u043d\u0438\u043a. \u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u043b \u043b\u044e\u0431\u0438\u043c\u044b\u0435 \u0430\u043d\u0435\u043a\u0434\u043e\u0442\u044b, \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0441 \u00ab\u042f\u041f\u043b\u0430\u043a\u0430\u043b\u044a\u00bb, \u00abIThappens\u00bb \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043f\u043e\u0440\u0442\u0430\u043b\u043e\u0432. \u0412\u0441\u0451 \u044d\u0442\u043e \u0432\u0438\u0441\u0435\u043b\u043e \u043d\u0430 Evolution 1.0.5. \u041e\u0434\u043d\u0430\u043a\u043e, \u0432 \u043e\u0434\u0438\u043d \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0434\u0435\u043d\u044c \u044f \u043f\u0435\u0440\u0435\u0432\u0451\u043b \u0432\u0435\u0441\u044c \u0441\u0432\u043e\u0439 \u043c\u043d\u043e\u0433\u043e-\u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 \u043d\u0430 \u043e\u0434\u0438\u043d \u0434\u0432\u0438\u0436\u043e\u043a \u0438 \u043e\u0434\u043d\u0443 \u0411\u0414. \u0412 \u043e\u0431\u0449\u0435\u043c \u043f\u0435\u0440\u0435\u0448\u0451\u043b \u043d\u0430 Revolution. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u0441\u0442\u0430\u043b \u0432\u043e\u043f\u0440\u043e\u0441 \u043e \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0435 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430. \u0421 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u043c \u00ab\u043e \u0441\u0435\u0431\u0435\u00bb \u0438 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u043c \u0432\u0441\u0451 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u2014 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0430. \u041e \u0444\u043e\u0440\u0443\u043c\u0435 \u044f \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u043f\u0430\u0440\u0438\u043b\u0441\u044f \u2014 \u043e\u043d \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043d\u0430 phpBB. \u0410 \u0432\u043e\u0442 \u0441 \u0430\u043d\u0435\u043a\u0434\u043e\u0442\u043d\u0438\u043a\u043e\u043c \u0438 \u0431\u044b\u043b\u0438\u043d\u043d\u0438\u043a\u043e\u043c \u0432\u043e\u043f\u0440\u043e\u0441 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u0442\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u0434\u043e\u043b\u0433\u0438\u0439 \u044f\u0449\u0438\u043a, \u0438\u0431\u043e \u0441\u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u0451 \u043d\u0430\u043a\u043e\u043f\u0438\u0432\u0448\u0435\u0435\u0441\u044f \u0442\u0430\u043c \u0442\u0435\u0440\u043f\u0435\u043d\u0438\u044f \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e \u0431\u044b\u2026<\/p>\n<h5>\u042d\u043a\u0441\u043f\u043e\u0440\u0442<\/h5>\n<p>  \u041d\u0430 \u0441\u0442\u0430\u0440\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u0436\u0438\u043b \u043c\u0430\u043b\u044e\u0441\u0435\u043d\u044c\u043a\u0438\u0439 \u0441\u043d\u0438\u043f\u043f\u0435\u0442 \u0438\u043c\u043f\u043e\u0440\u0442\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0430\u043d\u0435\u043a\u0434\u043e\u0442\u0430 \u0441 \u0430\u043d\u0435\u043a\u0434\u043e\u0442\u043d\u0438\u043a\u0430. \u041f\u043e \u0441\u0443\u0442\u0438 \u0430\u043d\u0435\u043a\u0434\u043e\u0442\u043d\u0438\u043a \u043c\u043e\u0433 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435. \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u0432\u0441\u0451 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u0430\u0439\u0442\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442 JSON, \u0434\u0430 \u0438 \u0437\u0430\u0431\u044b\u043b \u043f\u0440\u043e \u043d\u0435\u0451. \u041a\u043e\u0433\u0434\u0430 \u0432\u0441\u0442\u0430\u043b \u0432\u043e\u043f\u0440\u043e\u0441 \u043e \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b \u0438\u043c\u0435\u043d\u043d\u043e \u043e \u043d\u0435\u0439.<\/p>\n<p>  \u041f\u043e\u0447\u0435\u043c\u0443 JSON? \u0414\u0430 \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0443\u0441\u0442\u0430\u043b \u044f \u0447\u0435\u0440\u0442\u043e\u0432\u0441\u043a\u0438 \u043e\u0442 \u0432\u0441\u044f\u043a\u0438\u0445 XML-\u043f\u0430\u0440\u0441\u0435\u0440\u043e\u0432. \u0414\u0430\u0440\u043e\u043c, \u0447\u0442\u043e \u0434\u043b\u044f JSON \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 &#8212;<b> json_encode<\/b> \u0438 <b>json_decode<\/b>. \u042d\u0442\u043e \u0447\u0440\u0435\u0437\u0432\u044b\u0447\u0430\u0439\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u043e\u0435 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441 JSON \u043a\u0443\u0434\u0430 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435, \u0447\u0435\u043c \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b.<\/p>\n<p>  \u0421 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u043e\u043c \u0432 JSON \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e. \u0418\u0442\u0430\u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 (\u0448\u0430\u0431\u043b\u043e\u043d _blank):  <\/p>\n<pre><code class=\"html\">{&quot;items&quot;:[ [[Ditto? &startID=`162` &tpl=`cat` &tplLast=`catLast`]] ]} <\/code><\/pre>\n<p>  \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0447\u0430\u043d\u043a\u0430 cat:  <\/p>\n<pre><code class=\"html\">    {       &quot;name&quot;:&quot;[+pagetitle+]&quot;,       &quot;alias&quot;:&quot;[+alias+]&quot;,       &quot;template&quot;:&quot;[+template+]&quot;,       &quot;hidemenu&quot;:&quot;[+hidemenu+]&quot;,       &quot;content&quot;:[ [!Ditto? &startID=`[+id+]` &tpl=`item` &tplLast=`itemLast`!]       ]     }, <\/code><\/pre>\n<p>  catLast \u2014 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u0432 \u043a\u043e\u043d\u0446\u0435. \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0447\u0430\u043d\u043a\u0430 item:  <\/p>\n<pre><code class=\"html\">        {           &quot;name&quot;:&quot;[+pagetitle+]&quot;,           &quot;alias&quot;:&quot;[+alias+]&quot;,           &quot;template&quot;:&quot;[+template+]&quot;,           &quot;hidemenu&quot;:&quot;[+hidemenu+]&quot;,           &quot;content&quot;:&quot;[+content:strip:noquotes+]&quot;         }, <\/code><\/pre>\n<p>  itemLast \u2014 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u0432 \u043a\u043e\u043d\u0446\u0435.<\/p>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0448\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0430\u043a\u043e\u0439 \u0444\u0430\u0439\u043b\u0438\u043a. \u0414\u0430, \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430. \u0422\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 &#8212;<b> text\/javascript<\/b>. \u041a\u0430\u043a\u0438\u043c-\u0442\u043e \u043c\u0430\u043a\u0430\u043a\u0435\u0440\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 Ditto \u0432 JSON. \u041d\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u044d\u0442\u043e\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u0435 \u043d\u0435 \u0431\u044b\u043b\u043e \u0438 \u043d\u0435\u0442.<\/p>\n<h5>\u0418\u043c\u043f\u043e\u0440\u0442<\/h5>\n<p>  \u0424\u0430\u0439\u043b\u0438\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438. \u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435? \u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u044f \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 <a href=\"http:\/\/habrahabr.ru\/post\/148876\/\">\u0441\u0442\u0430\u0442\u0435\u0439\u043a\u0443 \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u043e\u0446-\u0441\u0435\u0442\u0438 \u043d\u0430 MODx<\/a> \u0438 \u0443\u0437\u0440\u0435\u043b, \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u043c \u043f\u0443\u0442\u0451\u043c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432 MODx Revolution \u043d\u043e\u0432\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b. \u0420\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0438\u0434\u0435\u044f, \u0430 \u0432\u0441\u043b\u0435\u0434 \u0437\u0430 \u043d\u0435\u0439 \u0441\u043d\u0438\u043f\u043f\u0435\u0442:<\/p>\n<pre><code class=\"php\">&lt;?php \/\/ \u0418\u043c\u043f\u043e\u0440\u0442 \u0438\u0437 JSON-\u0444\u0430\u0439\u043b\u0430 \/\/ \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0430\u044f \u0437\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 function addItem($ctx,$pagetitle,$template,$isfolder,$hidemenu,$parent,$alias,$content,$td){   global $modx;    $newResource = $modx-&gt;newObject('modResource');    $newResource-&gt;fromArray(array(     'pagetitle'=&gt;$pagetitle, \t\t\t\t'longtitle'=&gt;$pagetitle, \t\t\t\t'content'=&gt;$content, \t\t\t\t'template'=&gt;$template, \t\t\t\t'isfolder'=&gt;$isfolder, \t\t\t\t'hidemenu'=&gt;$hidemenu, \t\t\t\t'parent'=&gt;$parent, \t\t\t\t'published'=&gt;'1', \t\t\t\t'alias'=&gt;$alias, \t\t\t\t'context_key'=&gt;$ctx \t\t));    if ($newResource-&gt;save()) {     $id = $newResource-&gt;get('id');     $modx-&gt;cacheManager-&gt;refresh(); \t\t\t\t$modx-&gt;reloadConfig();      if (is_array($td)) {       foreach($td as $key=&gt;$val) {         $tvar = $modx-&gt;newObject('modTemplateVarResource');         $tvar-&gt;set('contentid',$id);         $tvar-&gt;set('tmplvarid',$key);         $tvar-&gt;set('value',$val);         $tvar-&gt;save();       } \t\t\t\t}      return $id;   } else { return false; } } \/\/ \u0424\u0443\u043d\u043a\u0446\u0438\u044f, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0430\u044f \u0437\u0430 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 function handleItem($ctx,$item,$parent,$tpls,$tvs,$handleChildren=false){   $hidm = isset($item['hidemenu'])?$item['hidemenu']:'0'; \t\t$isf = is_array($item['content'])?'1':'0'; \t\t$content  = is_array($item['content'])?'':$item['content']; \t\t$tpl = array_key_exists('tpl'.$item['template'],$tpls)?$tpls['tpl'.$item['template']]:'0';   $td = array(); \t\tforeach($tvs as $tvn=&gt;$tvv) if (array_key_exists($tvn,$item)) $td[$tvv] = $item[$tvn];   $ret = ''; \t\tif ($id = addItem($ctx,$item['name'],$tpl,$isf,$hidm,$parent,$item['alias'],$content,$td)) {     $ret = 'Resource &laquo;&lt;b&gt;'.$item['name'].'&lt;\/b&gt;&raquo; imported successfully! ' \t\t\t\t     . 'New ID: &lt;b&gt;'.$id.'&lt;\/b&gt;&lt;br \/&gt;'; \t\t\t\tif (is_array($item['content']) && $handleChildren) \t\t\t\t  foreach ($item['content'] as $i) $ret.= handleItem($ctx,$i,$id,$tpls,$tvs,$handleChildren); \t\t\t\treturn $ret; \t\t} else { return 'Resource &laquo;&lt;b&gt;'.$item['name'].'&lt;\/b&gt;&raquo; not imported!&lt;br \/&gt;'; } } \/\/ \u0428\u0430\u043f\u043a\u0430\u043c\u0430 \u043b\u043e\u0433\u0430 $cons = '&lt;h1&gt;Import item log&lt;\/h1&gt;'; \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0437\u0430 \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 (\u0434\u043b\u044f \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c) $item_count = isset($itemCount)?$itemCount:4; \/\/ \u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442, \u043a\u0443\u0434\u0430 \u0432\u0441\u0451 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f if (!isset($curContext)) $curContext = 'web'; \/\/ &quot;\u0417\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u043a\u0430&quot; \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043a \u0438\u043c\u043f\u043e\u0440\u0442\u0443 (\u0434\u043b\u044f \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c) $next_items = isset($_GET['jsonimportnext'])?intval($_GET['jsonimportnext']):0; \/\/ \u0421\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 $tpls = array(); if (isset($templates)) {   $tmp = explode(',',$templates); \t\tforeach($tmp as $val) {     $tpls_d = explode('=&gt;',$val); \t\t\t\t$tpls['tpl'.$tpls_d[0]] = $tpls_d[1]; \t\t} } \/\/ \u0421\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 TV-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 $tvs = array(); if (isset($tvParams)) {   $tmp = explode(',',$tvParams); \t\tforeach($tmp as $val) {     $tvs_d = explode('=&gt;',$val); \t\t\t\t$tvs[$tvs_d[0]] = $tvs_d[1]; \t\t} } \/\/ \u0421\u0430\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 if (isset($source) && isset($rootID)) {   if ($import_content = @file_get_contents($source)) {   \t\t$import_data = json_decode($import_content,true); \t\t\t\t$import_count = count($import_data['items']); \t\t\t\tif ($item_count != 0) {   \t\t\t\tfor($c = 0; $c &lt; $item_count; $c++) {         $n = $item_count*$next_items+$c; \t\t\t\t  \t\tif (isset($import_data['items'][$n])) \t\t\t\t\t\t\t\t  $cons.= handleItem($curContext,$import_data['items'][$n],$rootID,$tpls,$tvs); \t\t\t\t  } \t\t\t\t\t\t$this_res = $modx-&gt;resource-&gt;get('alias'); \t\t\t\t\t\t$this_res.= '.html';  \t\t\t\t\t\tif (($item_count*$next_items+$item_count-1)&lt;$import_count) {     \t\t\t\t$cons.= '&lt;br \/&gt;&lt;a href=&quot;'.$this_res.'?jsonimportnext=' \t\t\t\t\t\t\t\t      . ($next_items+1).'&quot;&gt;' \t\t  \t\t\t\t      . 'Import next items&lt;\/a&gt;&lt;br \/&gt;'; \t\t\t\t\t\t} else { $cons.= '&lt;br \/&gt;&lt;a href=&quot;'.$this_res.'&quot;&gt;Start&lt;\/a&gt;'; } \t\t\t\t} else { \t\t\t\t  foreach ($import_data['items'] as $item) \t\t\t\t    $cons.= handleItem($curContext,$item,$rootID,$tpls,$tvs,true); \t\t\t\t} \t\t} else { $cons.= 'Cannot get source!&lt;br \/&gt;'; } } else { $cons.= 'Invalid execution parameters!&lt;br \/&gt;'; }  return $cons; <\/code><\/pre>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u0441\u043a\u0430\u0436\u0443: \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u0442 \u043d\u0430 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u041a\u043e\u0434 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u043e\u0442\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d, \u0443\u0432\u044b. \u0421\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043f\u0435\u0448\u0438\u043b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u043d\u0443\u0436\u0434\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f. \u0415\u0441\u043b\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c, \u0431\u0443\u0434\u0443 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e \u043d\u0430\u0434\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043d\u0430\u0434 MODx.<\/p>\n<p>  \u041d\u0430 \u0432\u0445\u043e\u0434 \u0441\u043d\u0438\u043f\u043f\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:  <\/p>\n<ul>\n<li><b>source<\/b> (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e) \u2014 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a JSON \u0444\u0430\u0439\u043b\u0430.<\/li>\n<li><b>itemCount<\/b> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0437\u0430 \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0445\u043e\u0434 (\u0434\u043b\u044f \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c). \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u2014 4. \u0415\u0441\u043b\u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 0, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0451 \u0437\u0430 \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043f\u0440\u0438\u0442\u043e\u043c \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e.<\/li>\n<li><b>templates<\/b> \u2014 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432. \u0427\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 old_id=&gt;new_id, \u0433\u0434\u0435 old_id \u2014 id \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430, new_id \u2014 id \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430. \u0415\u0441\u043b\u0438 \u043f\u0430\u0440\u0441\u0435\u0440 \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0448\u0430\u0431\u043b\u043e\u043d 0 (\u043f\u0443\u0441\u0442\u043e\u0439).<\/li>\n<li><b>tvParams<\/b> \u2014 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 TV-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. \u0427\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 old_name=&gt;new_id, \u0433\u0434\u0435 old_name \u2014 \u0438\u043c\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430, new_id \u2014 id \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430. \u0415\u0441\u043b\u0438 \u043f\u0430\u0440\u0441\u0435\u0440 \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f.<\/li>\n<li><b>curContext<\/b> (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e) \u2014 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442. \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442, \u0442\u043e\u0433\u0434\u0430 \u043e\u043d \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432 \u00abweb\u00bb.<\/li>\n<li><b>rootID<\/b> (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e) \u2014 id \u0440\u0435\u0441\u0443\u0440\u0441\u0430, \u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b.<\/li>\n<\/ul>\n<p>  \u041a \u0447\u0435\u043c\u0443 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u044b \u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0410 \u0434\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u044f \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u0435\u0449\u0451 \u043f\u0435\u0440\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u043d\u0438\u043f\u043f\u0435\u0442\u0430, \u0433\u0434\u0435 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0451, \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043d\u0435 \u0432\u044b\u0434\u0430\u043b 502-\u044e \u043e\u0448\u0438\u0431\u043a\u0443. \u041f\u0440\u043e\u0449\u0435 \u0433\u043e\u0432\u043e\u0440\u044f \u0445\u043e\u0441\u0442\u0435\u0440 \u0437\u0430\u0440\u0443\u0431\u0438\u043b \u0432\u044b\u0441\u043e\u043a\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443. \u0415\u0449\u0451 \u0431\u044b \u2014 \u0442\u0430\u043c \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0431\u044b\u043b\u043e.<\/p>\n<h5>\u041a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f<\/h5>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0438\u0448\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d:  <\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD XHTML 1.0 Strict\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-strict.dtd&quot;&gt; &lt;html xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot; xml:lang=&quot;ru&quot;&gt;&lt;head&gt;   &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text\/html; charset=utf-8&quot; \/&gt;   &lt;base href=&quot;\/&quot; \/&gt;   &lt;title&gt;[[*pagetitle]]&lt;\/title&gt; \t\t&lt;style type=&quot;text\/css&quot;&gt; body { font: 12px monospace; } \t\t&lt;\/style&gt; &lt;\/head&gt;&lt;body&gt;&lt;div align=&quot;center&quot;&gt;&lt;div style=&quot;text-align: left; width: 800px;&quot;&gt;   [[!importJSON? &source=`[[*sourceURL]]` &itemCount=`6` &templates=`[[*templatesReplace]]` &tvParams=`[[*tvsReplace]]` &curContext=`[[*currentContext]]` &rootID=`[[*importDestination]]`]] &lt;\/div&gt;&lt;\/div&gt;&lt;\/body&gt;&lt;\/html&gt; <\/code><\/pre>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u043a \u0448\u0430\u0431\u043b\u043e\u043d\u0443 TV-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b <b>sourceURL, templatesReplace, tvsReplace, currentContext, importDestination<\/b>. \u041d\u0435 \u043d\u0430\u0434\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0442\u044c\u0441\u044f \u043d\u0430 currentContext \u0438 \u0432\u0435\u0449\u0430\u0442\u044c \u043c\u043d\u0435 \u043f\u0440\u043e context_key. \u0412 \u0442\u0435\u043e\u0440\u0438\u0438 \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0440\u0430\u0437\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u044b. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u0441\u0451. \u0412 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u044d\u0442\u0443 \u0448\u0442\u0443\u043a\u0443 \u044f. \u0421\u0440\u0430\u0437\u0443 \u0441\u0434\u0435\u043b\u0430\u044e \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u044f \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u043e\u0431\u0445\u043e\u0434\u0438\u043b\u0441\u044f \u0431\u0435\u0437 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439, \u043c\u0435\u043d\u044f\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 startID. \u0418\u0437-\u0437\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u043f\u043e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0435. \u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043c\u043e\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.  <\/p>\n<ol>\n<li>\u041d\u0430 \u0441\u0442\u0430\u0440\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043d\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430. \u0421\u0442\u0430\u0432\u0438\u043c \u043d\u0430 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u00ab\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c\u00bb.<\/li>\n<li>\u041d\u0430 \u043d\u043e\u0432\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043d\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b, \u043a\u0443\u0434\u0430 \u043c\u044b \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u043a\u043e\u043d\u0442\u0435\u043d\u0442 (\u0434\u0430\u043b\u0435\u0435 \u0444\u0430\u0439\u043b \u0438\u043c\u043f\u043e\u0440\u0442\u0430). \u041c\u0435\u043d\u044f\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d \u043d\u0430 \u0448\u0430\u0431\u043b\u043e\u043d \u0438\u043c\u043f\u043e\u0440\u0442\u0430 \u0438\u0437 JSON, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c.<\/li>\n<li>\u0412 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u0444\u0430\u0439\u043b\u0430 \u0438\u043c\u043f\u043e\u0440\u0442\u0430 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442, URL \u0444\u0430\u0439\u043b\u0430 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430, \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0438 TV-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c.<\/li>\n<li>\u0412 \u0444\u0430\u0439\u043b\u0435 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u043c\u0435\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 startID \u043d\u0430 id \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430, \u043e\u0442\u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043d\u0442. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c.<\/li>\n<li>\u0412 \u0444\u0430\u0439\u043b\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0430 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c id \u0440\u0435\u0441\u0443\u0440\u0441\u0430, \u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c.<\/li>\n<li>\u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0438\u043c\u043f\u043e\u0440\u0442\u0430 \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440. \u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c, \u043f\u043e\u043a\u0430 \u0432 \u043a\u043e\u043d\u0446\u0435 \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u0441 \u043d\u0430\u0434\u043f\u0438\u0441\u044c\u044e \u00abStart\u00bb:<br \/> \n<ol>\n<li>\u0416\u0434\u0451\u043c, \u043f\u043e\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f.<\/li>\n<li>\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u0441\u0441\u044b\u043b\u043a\u0443 \u00abImport next items\u00bb<\/li>\n<\/ol>\n<\/li>\n<li>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0432\u0441\u0451 \u0438\u0437 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u043f\u0443\u043d\u043a\u0442\u0443 4, \u0435\u0441\u043b\u0438 \u0435\u0449\u0451 \u0447\u0442\u043e-\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/li>\n<\/ol>\n<p>  \u0414\u0430, \u0437\u043d\u0430\u044e, \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0451 \u043f\u0440\u044f\u043c\u044b\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u043a \u0411\u0414. \u0422\u043e\u043b\u044c\u043a\u043e, \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043d\u0435 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0431\u044b \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u0441 502-\u0439 \u043e\u0448\u0438\u0431\u043a\u043e\u0439. \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043d\u0435 \u0431\u044b\u043b\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u0447\u0442\u043e \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0411\u0414 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430, \u043a\u0440\u043e\u043c\u0435 site_content. \u0412-\u0442\u0440\u0435\u0442\u044c\u0438\u0445, \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0431\u044b \u0442\u0430\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043c\u0435\u043d\u044f \u0431\u044b \u0442\u0443\u0442 \u0436\u0435 \u0437\u0430\u043f\u0438\u043d\u0430\u043b\u0438 \u0431\u044b \u0441 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u043e\u0439 \u00ab\u0430-\u043a\u0430\u043a-\u0436\u0435-XPDO\u00bb.<\/p>\n<p>  \u0415\u0449\u0451 \u0440\u0430\u0437 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e, \u0447\u0442\u043e \u044d\u0442\u043e \u043b\u0438\u0448\u044c \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043d\u0430\u0431\u0440\u043e\u0441\u043e\u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044f. \u0412\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043a \u043c\u043e\u0435\u043c\u0443 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u043c\u0443 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u0443!    \t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/157483\/\"> http:\/\/habrahabr.ru\/post\/157483\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h4>\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0437\u0434\u0440\u0430\u0432\u0438\u044f \u0432\u0441\u0435\u043c \u0445\u0430\u0431\u0440\u0430\u0436\u0438\u0442\u0435\u043b\u044f\u043c!<\/h4>\n<p>  MODx Revolution \u0443\u0434\u043e\u0431\u043d\u0430 \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f\u0445. \u0415\u0441\u043b\u0438 \u0432 MODx Evolution \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0451, \u0442\u043e \u0432 MODx Revolution \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0441\u0451. \u0411\u044b\u043b\u0438 \u0431\u044b \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u044f \u0438 \u0442\u0435\u0440\u043f\u0435\u043d\u0438\u0435. \u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f Revolution \u0443 \u043c\u043d\u043e\u0433\u0438\u0445 \u0432\u0441\u0442\u0430\u043b \u0432\u043e\u043f\u0440\u043e\u0441: \u043a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439. \u041e\u0434\u043d\u043e \u0434\u0435\u043b\u043e, \u0435\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 \u0441 \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u0422\u0443\u0442 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0430 \u0412\u0430\u043c \u0432 \u043f\u043e\u043c\u043e\u0449\u044c. \u0414\u0440\u0443\u0433\u043e\u0435 \u0434\u0435\u043b\u043e \u2014 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430, \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-157483","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/157483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=157483"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/157483\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=157483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=157483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=157483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}