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

Global Block Content #358

Open
HeyJoel opened this issue Dec 17, 2019 · 1 comment
Open

Global Block Content #358

HeyJoel opened this issue Dec 17, 2019 · 1 comment
Milestone

Comments

@HeyJoel
Copy link
Member

HeyJoel commented Dec 17, 2019

Hi. I want to reuse "Footer" block type. I have multiple templates for different pages (f.e. home, projects), but want to use one footer for all of them. Am I missing something and maybe it's possible right now? Right now footer info is hardcoded into global _Layout, but I think a custom entity can be created for this purpose and accessed by inserting viewcomponent in all templates, that's the only way it can be implemented, as I see it.

Originally posted by @VladMstv in #244 (comment)

@HeyJoel
Copy link
Member Author

HeyJoel commented Dec 17, 2019

You're right in that a custom entity is the only way to do this now, but it's a bit clunky. The closest thing we'd probably look at next would be #243 which covers global settings and single-object custom entities which would allow you to model the data for your footer in a separate section.

To have global block content we'd need to look at how this would be handled in the visual editor i.e. how the interface would have to change to allow multiple edit context - as a user I'd need to clearly know when im editing data scoped to a page, custom entity or global element.

For now #243 would at least make this kind of thing more intuitive and less clunky.

@HeyJoel HeyJoel added this to the Backlog milestone Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant