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

[PagePartBundle] Hide pagepart dropdown when there are no options configured #679

Merged
merged 1 commit into from Sep 1, 2015
Merged

Conversation

jverdeyen
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets -

Sometimes u use a context as a placeholder (for a very custom context) on a page.
A user can't add any pageparts to it, so there shouldn't be a useless dropdown with no select options.

@jverdeyen jverdeyen changed the title Hide pagepart dropdown when there are no options configured [PagePartBundle] Hide pagepart dropdown when there are no options configured Sep 1, 2015
@roderik roderik added this to the 3.3.0 milestone Sep 1, 2015
roderik pushed a commit that referenced this pull request Sep 1, 2015
[PagePartBundle] Hide pagepart dropdown when there are no options configured
@roderik roderik merged commit 033f5ae into Kunstmaan:master Sep 1, 2015
@jockri
Copy link
Contributor

jockri commented Sep 1, 2015

Btw, you can also use a template file as a region in the backend. This is probably what you are looking for.

name: "Test page"
rows:
    - regions:
        - { name: "region_1", span: 12 }
        - { name: "description", span: 12, template: "YourCompanyWebsiteBundle:Pages:TestPage/description.html.twig" }
        - { name: "region_2", span: 12 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants