{"id":14357,"date":"2024-02-27T17:04:59","date_gmt":"2024-02-27T11:04:59","guid":{"rendered":"https:\/\/shra.ru\/?p=14357"},"modified":"2024-03-04T16:07:00","modified_gmt":"2024-03-04T10:07:00","slug":"sozdanie-paragrafov-iz-csv-fajjla","status":"publish","type":"post","link":"https:\/\/shra.ru\/2024\/02\/sozdanie-paragrafov-iz-csv-fajjla\/","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u0433\u0440\u0430\u0444\u043e\u0432 \u0438\u0437 CSV \u0444\u0430\u0439\u043b\u0430"},"content":{"rendered":"\n
\u041f\u0430\u0440\u0430\u0433\u0440\u0430\u0444\u044b, \u043e\u0442\u043e\u0440\u0432\u0430\u043d\u043d\u044b\u0435 \u043e\u0442 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 entity \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u044b, \u043f\u043e\u0442\u043e\u043c\u0443 \u044d\u0442\u0430 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0439 \u043a \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u0442\u0435\u0439 \u0431\u043b\u043e\u0433\u0430 \u0438\u0437 CSV<\/a>.<\/p>\n\n\n\n\n\n\n\n \u0418\u0437 \u0432\u0441\u0435\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u043f\u043e\u043b\u0435\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u043d\u0430\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0430 \u043f\u043e\u043b\u044f — \u044d\u0442\u043e id \u0438 body.<\/p>\n\n\n\n migrate_plus.migration.custom_text_to_paragraph.yml<\/strong><\/p>\n\n\n\n \u0422\u0435\u043a\u0441\u0442 (body) \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u0442.\u043a. \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442\u044c\/\u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0438\u0437 \u0441\u0442\u0430\u0440\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0444\u0430\u0439\u043b\u043e\u0432 drupal \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u0441\u0430\u0439\u0442\u0435.<\/p>\n\n\n\n \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 — file_allocation<\/strong>.<\/p>\n\n\n\n \u041f\u0430\u0440\u0430\u0433\u0440\u0430\u0444\u044b \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430, \u0438 \u0430\u0441\u0441\u043e\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0441 ID. \u041f\u0440\u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u0442\u0435\u0439<\/a> \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d migration_lookup<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0430\u0440\u0430\u0433\u0440\u0430\u0444\u0435 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u043a \u043d\u0430\u0448\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n","protected":false},"excerpt":{"rendered":" \u041f\u0430\u0440\u0430\u0433\u0440\u0430\u0444\u044b, \u043e\u0442\u043e\u0440\u0432\u0430\u043d\u043d\u044b\u0435 \u043e\u0442 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 entity \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u044b, \u043f\u043e\u0442\u043e\u043c\u0443 \u044d\u0442\u0430 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0439 \u043a \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u0442\u0435\u0439 \u0431\u043b\u043e\u0433\u0430 \u0438\u0437 CSV.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[177,178],"acf":[],"yoast_head":"\nlangcode: en\nstatus: true\ndependencies: { }\nid: custom_text_to_paragraph\nmigration_group: custom_migration\nlabel: 'Import a text into a D8 paragraph'\nsource:\n batch_size: 1\n plugin: csv\n header_offset: 0\n enclosure: '\"'\n escape: \\\n delimiter: ','\n ids:\n - id\nprocess:\n type:\n plugin: default_value\n default_value: bp_simple\n bp_text\/value:\n plugin: file_allocation\n domain: arbordayblog.org\n source: body\n bp_text\/format:\n plugin: default_value\n default_value: basic_html\n paragraph_view_mode:\n plugin: default_value\n default_value: default\ndestination:\n plugin: 'entity_reference_revisions:paragraph'\nmigration_dependencies:\n required: { }\n optional: { }<\/code><\/pre>\n\n\n\n