Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout properties on _Layout.cshtml are all null #12

Open
1 task done
Chris1415 opened this issue Nov 20, 2024 · 1 comment
Open
1 task done

Layout properties on _Layout.cshtml are all null #12

Chris1415 opened this issue Nov 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Chris1415
Copy link
Collaborator

Chris1415 commented Nov 20, 2024

What happened?

Description

  • The Layout properties used e.g. for <Title> are all null
  • Because of that it is impossible to set page title, which should be the Context Item Display Name.

Reproduction Steps

  1. Open standard skatepark and examine the Layout properties.

Actual Behavior

  • All the properties are null
  • For testing purpose I outputted the layout model to page
    image

Expected Behavior

  • The properties have the proper values from CM (Preview) or Edge (Live)
    image

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Chris1415 Chris1415 added the bug Something isn't working label Nov 20, 2024
@Chris1415
Copy link
Collaborator Author

I had a look at the SDK for the route field mapping things. I can see in the log following (While saying this, it might make sense to put the issue into SDK rather than starter kit as it seems to be an issue there)

image

When moving into the SDK it drills down to this level ultimately. It tries to find the field / value based on a "fixed" list of Fields. But those are the standard fields of the context item, not the route fields.

image

I can see that "one" step earlier the route is still there. But as soon as it enters this custom tryreadvalue custom function the context of the currentRoute is lost and it used fixed fields

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant