Skip to content

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

@cathysarisky

Description

@cathysarisky

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug[triage] something behaving unexpectedlycommunity[triage] Community features and bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions