Skip to content

Blade Navigation - Getting Entry Relationship in Standard Nav Item #8656

Discussion options

You must be logged in to vote

I think I might be on to something here after reading through the core code... if I change the default relationship field slug from "entry" to anything else, then I can access it like $item['fieldName'] to get back Statamic\Entries\Entry.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jonathan-bird
Comment options

Answer selected by jonathan-bird
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
1 participant