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

[Bug] Razor function parameter DataReferencefor for IImageFile - Data is null #761

Open
VolodymyrMuzyka opened this issue Nov 12, 2020 · 0 comments

Comments

@VolodymyrMuzyka
Copy link

Razor function with parameter:

[FunctionParameter(Label = "Background Image", DefaultValue = "724520be-b5ec-41c6-9be5-7e302cbd8e54")] public DataReference<IImageFile> BackgroundImage { get; set; }

this one works fine:

<section class="hero" style="background-image:url('~/media(@BackgroundImage)')">

but BackgroundImage.Data.Title not.. bug or by design? Any workarounds?

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

No branches or pull requests

1 participant