Skip to content

Commit 6cdf942

Browse files
committed
#20 migrate pages to articles
1 parent a1ecef7 commit 6cdf942

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

src/administrator/components/com_ccm/src/Controller/MigrationController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function apply()
2727
['source' => 'categories', 'target' => 'categories'],
2828
['source' => 'tags', 'target' => 'tags'],
2929
['source' => 'media', 'target' => 'media'],
30+
['source' => 'pages', 'target' => 'articles'],
3031
['source' => 'posts', 'target' => 'articles'],
3132
['source' => 'menus', 'target' => 'menus'],
3233
['source' => 'menu_items', 'target' => 'menu_items']

src/administrator/components/com_ccm/src/Schema/wordpress-ccm.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,61 @@
5555
"other_URLs": "urls"
5656
}
5757
},
58+
{
59+
"type": "pages",
60+
"properties": {
61+
"ID": "id",
62+
"site_ID": null,
63+
"author": "author",
64+
"date": "created",
65+
"date_gmt": null,
66+
"modified": "modified",
67+
"modified_gmt": null,
68+
"title": "title",
69+
"link": "url",
70+
"permalink_template": null,
71+
"URL": "url",
72+
"short_URL": null,
73+
"content": "context",
74+
"excerpt": "summary",
75+
"slug": "alias",
76+
"generated_slug": "alias",
77+
"guid": null,
78+
"status": "status",
79+
"sticky": null,
80+
"password": null,
81+
"parent": null,
82+
"type": "type",
83+
"comment_status": null,
84+
"ping_status": null,
85+
"discussion": null,
86+
"likes_enabled": null,
87+
"sharing_enabled": null,
88+
"like_count": null,
89+
"i_like": null,
90+
"is_reblogged": null,
91+
"is_following": null,
92+
"global_ID": "uid",
93+
"featured_image": "image",
94+
"post_thumbnail": "images",
95+
"featured_media": null,
96+
"format": null,
97+
"geo": null,
98+
"menu_order": null,
99+
"page_template": null,
100+
"template": null,
101+
"publicize_URLs": "urls",
102+
"terms": "categories",
103+
"tags": "tags",
104+
"categories": "categories",
105+
"attachments": null,
106+
"attachment_count": null,
107+
"metadata": null,
108+
"meta": null,
109+
"capabilities": null,
110+
"other_URLs": "urls"
111+
}
112+
},
58113
{
59114
"type": "categories",
60115
"properties": {

0 commit comments

Comments
 (0)