Skip to content

Set MenuItem.Id from AdminNode.UniqueId in the admin node navigation builders - #19771

Open
JesseRigon wants to merge 1 commit into
OrchardCMS:mainfrom
jesse-forked:AdminNodeUniqueId
Open

JesseRigon wants to merge 1 commit into
OrchardCMS:mainfrom
jesse-forked:AdminNodeUniqueId

Conversation

@JesseRigon

Copy link
Copy Markdown

This sets Id from UniqueId in the four admin node builders.

MenuItem.Id was previously null for these items, and NavigationManager.Merge continues to match on Text.Name regardless of whether Id is set. Nodes become targetable by templates via the existing NavigationItemText_Id__{Id} alternates, the same way provider items already are.

ContentTypesAdminNode and ListsAdminNode expand one node into many items, so their Ids are qualified with the content type name / content item id to stay unique per built item while remaining stable when display names change.

There was a discussion opened for this #19731 for more detail.

…builders

ContentTypesAdminNode and ListsAdminNode expand one node into many menu
items, so their Ids are qualified with the content type name and content
item id respectively to stay unique per built item.
@JesseRigon

Copy link
Copy Markdown
Author

@dotnet-policy-service agree

@hishamco

Copy link
Copy Markdown
Member

@Piedone, why has the First Time Contributor step failed?

@Piedone

Piedone commented Aug 23, 2026

Copy link
Copy Markdown
Member

I don't know.

@hishamco

Copy link
Copy Markdown
Member

We might need to check if this works after we updated in #19583

@JesseRigon

Copy link
Copy Markdown
Author

I'm just wondering if there is any issue with merging this change structurally or if this is just being deferred because one of the checks didn't pass. Just wanted to point out that check isn't anything to do with the changes I'm proposing.

Any clarification would be appreciated. I know with Harvest, the team is busy. I'm just hoping to know where I stand.

I'm working on a project that requires this change and so I'm having to use a custom implementation of orchardcore that I need to keep up to date with changes on main. Not the biggest deal in the world, but I would prefer not to if I could of course.

JesseRigon added a commit to JesseRigon/OrchardCore.Crest that referenced this pull request Sep 7, 2026
…Id, PR #19771)

Crest pins OrchardCore packages to 3.0.2-local, which only resolves from a feed
packed from jesse-forked/OrchardCore branch Crest until
OrchardCMS/OrchardCore#19771 merges. The note explains the pin, that the HOST
decides the package source, and points at OrchardCore.Crest.Host for the
working bootstrap.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
JesseRigon added a commit to JesseRigon/OrchardCore.Crest.Host that referenced this pull request Sep 7, 2026
…atically

- modules/OrchardCore: the jesse-forked/OrchardCore submodule (branch Crest,
  AdminNode UniqueId changes pending upstream in OrchardCMS/OrchardCore#19771)
  now lives alongside modules/OrchardCore.Crest instead of at the repo root.
- dev/dev.sh: 'up'/'build' now guarantee an OrchardCore 3.0.2-local feed -
  the prebuilt sibling /workspaces/local-nuget-feed when present (dev layout),
  otherwise the fork submodule is initialized and packed into the gitignored
  in-repo local-nuget-feed/ (standalone layout). New 'feed' command forces the
  pack. Solution file is OrchardCore.slnx.
- NuGet.config: map OrchardCore* to both feed folders; carve
  OrchardCore.Translations* out to nuget.org (real published packages, never
  in the monorepo feed - standalone restore failed NU1101 without it).
- README: document the custom-OrchardCore requirement and both layouts.
- Crest d777880: README fork-requirement note.

Validated: dev-mode build green; forced 'feed' pack produced 446 packages
byte-identical in file list to the sibling feed; standalone restore (cold
cache, in-repo feed only) succeeds.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Piedone

Piedone commented Sep 13, 2026

Copy link
Copy Markdown
Member

@all-contributors please add @JesseRigon for code.

@allcontributors

Copy link
Copy Markdown
Contributor

@Piedone

I've put up a pull request to add @JesseRigon! 🎉

@Piedone

Piedone commented Sep 13, 2026

Copy link
Copy Markdown
Member

Mistaken, sorry.

@JesseRigon

Copy link
Copy Markdown
Author

@all-contributors please add @JesseRigon for code.

Thank you very much

@allcontributors

Copy link
Copy Markdown
Contributor

@JesseRigon

@JesseRigon already contributed before to code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants