Skip to content

show_title_and_feature_image not included when using #get for page content #23316

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

Open
1 task done
cathysarisky opened this issue May 13, 2025 · 0 comments
Open
1 task done
Labels
bug [triage] something behaving unexpectedly community [triage] Community features and bugs

Comments

@cathysarisky
Copy link
Member

Issue Summary

On a single page, @page.show_title_and_feature_image is set for the page object, and can be used in logic.

However, if retrieving page content with a #get request, there seems to be no way to get that setting.

Steps to Reproduce

In home.hbs:
{{#get "pages" filter="slug:new-test" limit="1" }}
{{#if pages}}
{{#foreach pages}}
{{log @page.show_title_and_feature_image}}
{{/foreach}}
{{/get}}

Logging always shows undefined. (Attempts to check the value also fail - it is false (really unset) for any setting of the new-test page.)

Ghost Version

5.119.2

Node.js Version

20

How did you install Ghost?

local

Database type

SQLite3

Browser & OS version

N/A

Relevant log / error output

Logging 'this' or the page object (within foreach) does not show the show_title_and_feature_image option there either.

Code of Conduct

  • I agree to be friendly and polite to people in this repository
@github-actions github-actions bot added the needs:triage [triage] this needs to be triaged by the Ghost team label May 13, 2025
@allouis allouis added bug [triage] something behaving unexpectedly community [triage] Community features and bugs labels May 19, 2025
@github-actions github-actions bot removed the needs:triage [triage] this needs to be triaged by the Ghost team label May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [triage] something behaving unexpectedly community [triage] Community features and bugs
Projects
None yet
Development

No branches or pull requests

2 participants