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

Content getter if elements are applied to Page #7

Open
korthjp17 opened this issue May 3, 2018 · 1 comment
Open

Content getter if elements are applied to Page #7

korthjp17 opened this issue May 3, 2018 · 1 comment
Assignees
Milestone

Comments

@korthjp17
Copy link
Contributor

Do we want to write an extension to get the content from the first content block on a page? If the user isn't writing anything in the preview zone, there will be no content showing on the front-end. We can call it out in the Readme for the usage of the extension.

We have something that we can pull from an existing project, just wasn't sure if it should be included in this module.

@muskie9
Copy link
Member

muskie9 commented May 10, 2018

I think this makes sense. Something along the lines of $this->hasExtension() to detect if it's implemented, then return the first content element if available. This can be baked out a bit more from a logic stand point, but minimally it would be first content element or the content zone.

@muskie9 muskie9 added this to the 2.2.0 milestone Mar 20, 2019
@mak001 mak001 removed their assignment Nov 9, 2022
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

4 participants