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

Page body text is not shown unless body text is given as well on a page #2178

Closed
canstudios-joes opened this issue Jul 20, 2018 · 0 comments
Closed

Comments

@canstudios-joes
Copy link

canstudios-joes commented Jul 20, 2018

Subject of the issue

Page body text is not shown unless body text is given as well on a page.

Your environment

  • Framework: 3.x.x
  • Browser: Chrome - v59.0
  • Ubuntu 14.04

Steps to reproduce

  • Have a page both with a page body and body, see that they both show as expected.
  • Have a page with only the page body - it doesn't show.

Expected behaviour

A page should be able to have a visible page body without a body being set.

Actual behaviour

Inputting only a page body means it won't display. If you were to want it to display, you would need to also input something into the body text, but this may not be wanted by the user.

{{#if body}}
<div class="page-body">
<div class="page-body-inner">
{{#if pageBody}}
{{{compile_a11y_text pageBody this}}}
{{else}}
{{{compile_a11y_text body this}}}
{{/if}}
</div>
</div>
{{/if}}

I believe the issue is this above, just needs the first if removed.

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