-
Notifications
You must be signed in to change notification settings - Fork 0
/
Category.json
151 lines (149 loc) · 5.77 KB
/
Category.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"cat_id": "79", // use sql- SectionID
"cat_old_id": "79", // use sql- SectionID
"cat_name": "kitchen and dining", // use sql- EngName
"cat_display_name": // use sql - Sectionname
"cat_type": null, // default value
"cat_summary": null, // default value
"cat_above_summary": "",
"cat_below_summary": "",
"cat_slug": "kitchen-and-dining", // use sql- EngName convert it into lowercase and replace all spaces with dash(-). -- for hindi category_name please set new slug as per given excel.
"cat_meta": {
"meta_title": [],
"meta_tag": [],
"seo_tag": [],
"hash_tag": [],
"meta_counter": "",
"keyword_density": "",
"canonical_url": null,
"json_structured_data": null,
"robots": [],
"meta_social_tag": []
},
"cat_status": "active", // if sql- is_active = Y then 'active' else 'inactive'
"cat_fk_trgt_id": "jagran-hindi", // use sql - locale to add target id accordingly
"cat_sub_category_count": 0, // take total array length of cat_sub_category
"cat_custom_field": {
"category_meta_description": null,
"article_meta_title": null,
"article_meta_description": null,
"slideshow_meta_title": null,
"slideshow_meta_description": null,
"video_page_description": null,
"video_meta_description": null,
"google_ad_enable": null,
"display_html_template": null,
"html_template": null,
"tags": null,
"category_ref": null,
"logo": null,
"page_description_slideshow": null,
"page_description_video": null,
},
"cat_created_on": {
"$date": "2024-11-25T16:46:36.230Z" // default value
},
"cat_created_by": {
"user_id": "-1",
"user_email": "[email protected]",
"user_full_name": "Admin Jagran",
"user_role": "super admin",
"user_mobile_number": "",
"user_emp_code": "P1291",
"user_slug": "",
"user_image": "",
"user_old_id": ""
}, // default value
"cat_updated_on": {
"$date": "2024-11-25T16:46:36.230Z" // default value
},
"cat_updated_by": {
"user_id": "-1",
"user_email": "[email protected]",
"user_full_name": "Admin Jagran",
"user_role": "super admin",
"user_mobile_number": "",
"user_emp_code": "P1291",
"user_slug": "",
"user_image": "",
"user_old_id": ""
}, // default value
"cat_sub_category": [
// if sql- parent_category_id is equal to category_id then add that record here
{
"cat_parent_id": "79", // Required sql- SectionID
"subcat_id": "517", // use sql- CategoryID
"subcat_old_id": "517", // use sql- CategoryID
"subcat_name": "Stove", // use sql-EngName
"subcat_display_name":"", // use sql -CatgName
"subcat_type": null,
"subcat_summary": "", // use sql- display_summary
"subcat_above_summary": "",
"subcat_below_summary": "",
"subcat_slug": "stove", // use sql- url_name convert it into lowercase and replace all spaces with dash(-). --for hindi category_name please set new slug as per given excel.
"subcat_custom_field": {
"sub_category_meta_description": "",
"article_meta_title": "",
"article_meta_description": "",
"slideshow_meta_title": "",
"slideshow_meta_description": "",
"video_page_description": "",
"video_meta_description": "",
"google_ad_enable": "",
"display_html_template": "",
"html_template": "",
"tags": "",
"category_ref": "",
"logo": "",
"page_description_slideshow": "",
"page_description_video": "",
},
"subcat_meta": {
"meta_title": "",
"meta_descr":"",
"meta_tag": "",
"seo_tag": [],
"hash_tag": [],
"meta_counter": null,
"keyword_density": null,
"canonical_url": null,
"json_structured_data": null,
"robots": [],
"meta_social_tag": []
},
"subcat_status": "active", // if sql- is_active = 1 then 'active' else 'inactive'
"subcat_created_on": {
"$date": "2024-11-25T16:46:36.230Z" // default value
},
"subcat_created_by": {
"user_id": "-1",
"user_email": "[email protected]",
"user_full_name": "Admin Jagran",
"user_role": "super admin",
"user_mobile_number": "",
"user_emp_code": "P1291",
"user_slug": "",
"user_image": "",
"user_old_id": ""
}, // default value
"subcat_updated_on": {
"$date": "2024-11-25T16:46:36.230Z" // default value
},
"subcat_updated_by": {
"user_id": "-1",
"user_email": "[email protected]",
"user_full_name": "Admin Jagran",
"user_role": "super admin",
"user_mobile_number": "",
"user_emp_code": "P1291",
"user_slug": "",
"user_image": "",
"user_old_id": ""
}, // default value
"subcat_extra": {
}
}
],
"cat_extra": {
}
}