Import didn't import my menu #17435
Unanswered
RemcoW2002
asked this question in
Q&A
Replies: 1 comment
-
My first question is from which OC version you export the recipe and to which version you want to import it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
EDIT: I managed to fix it now by going into the database and setting Latest to true in the ContentItemIndex, though leaving this here and open incase someone would like to share additional insights
Hi there I have a sidebar menu in one of my projects, in there is quite a lot of content, I wanted this in another project but it doesn't show up in the actual menu page in the admin UI. The website actually works fine, the sidebar shows, it's navigatable and it shows the content that belongs to each sidebar, aka, menu item. So the sidebar including the website is fully functional works exactly like it does on the other website. It's just again, that I can't see the sidebar menu in the admin UI. Therefore I can't edit it or remove / add menu items
I've tried creating a new sidebar only to be met with the message that it already exists (item with alias sidebar already exists). Indicating that it is actually there, it's just now showing me it in the admin UI, which for obvious reasons isn't that great cause that means I can't edit the sidebar's content, or add/remove stuff from it.
I've decided to export the recipe.json from my old website (where the sidebar does work and show) and from my new website, where it doesn't show up, and the configuration of the menu sidebar is exactly the same, all settings are exactly the same.
I've even selected the individual sidebar item, and put only that as the deployment target, imported that resulting recipe.json and still the sidebar isn't there, not in the menu nor in the content items list
Here is the new recipe.json part where the sidebar is defined (sorry for the weird layout, I can't get it to work and a code block puts it all in one line):
{
"ContentItemId": "42drfwzyexktqtk2zkh7fvjcmv",
"ContentItemVersionId": "42y9tg81w2ewx5qhpyp7n122cn",
"ContentType": "Menu",
"DisplayText": "Sidebar",
"Latest": false,
"Published": true,
"ModifiedUtc": "2025-01-29T15:55:08.994594Z",
"PublishedUtc": "2025-01-29T15:55:09.6400647Z",
"CreatedUtc": "2025-01-29T15:55:08.9916173Z",
"Owner": "4w6829r722d02wjtz7r0nryjdp",
"Author": "admin",
"TitlePart": {
"Title": "Sidebar"
},
"AliasPart": {
"Alias": "sidebar"
},
"MenuPart": {},
"MenuItemsListPart": {
"MenuItems": [
{
"ContentItemId": "4atvdv9sgfakvzjgpb78th595q",
"ContentItemVersionId": null,
"ContentType": "LinkMenuItem",
"DisplayText": "Zoeken",
"Latest": false,
"Published": false,
"ModifiedUtc": "2025-01-27T14:31:00.2666469Z",
"PublishedUtc": null,
"CreatedUtc": null,
"Owner": null,
"Author": "admin",
"LinkMenuItemPart": {
"Url": "~/search",
"Target": null
},
"LinkMenuItem": {}
And the old recipe.json, aka from the website where I can see the sidebar menu in the admin UI:
Any ideas what exactly I am missing, or doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions