Issue Summary
I’m trying to show “hidden” tiers on a custom template page.
I have the following in portal config:
I’m trying to fetch the unchecked tiers using the following:
{{#get "tiers" include="monthly_price,yearly_price,benefits" filter="visibility:none" limit="all"}}
But the query returns empty. If I change it to visibility:public, the two checked tiers show up.
All tiers show up when I hit the API endpoint directly, http://127.0.0.1:2368/ghost/api/content/tiers/
{
"tiers": [
{
"id": "64d410421546084bb3c3f75e",
"name": "Free",
"description": null,
"slug": "free",
"active": true,
"type": "free",
"welcome_page_url": null,
"created_at": "2023-08-09T22:16:34.000Z",
"updated_at": "2023-08-09T22:16:34.000Z",
"visibility": "public",
"benefits": [
],
"trial_days": 0
},
{
"id": "64d410421546084bb3c3f75f",
"name": "Supporter",
"description": null,
"slug": "default-product",
"active": true,
"type": "paid",
"welcome_page_url": null,
"created_at": "2023-08-09T22:16:34.000Z",
"updated_at": "2023-10-17T23:22:34.000Z",
"visibility": "public",
"benefits": [
],
"currency": "USD",
"monthly_price": 400,
"yearly_price": 4000,
"trial_days": 0
},
{
"id": "652f1750f2633823c3a0f875",
"name": "Basic Sponsor",
"description": null,
"slug": "basic-sponsor",
"active": true,
"type": "paid",
"welcome_page_url": null,
"created_at": "2023-10-17T23:22:56.000Z",
"updated_at": "2023-10-18T00:15:38.000Z",
"visibility": "none",
"benefits": [
],
"currency": "USD",
"monthly_price": 4000,
"yearly_price": 35000,
"trial_days": 0
},
{
"id": "652f1765f2633823c3a0f879",
"name": "Special Sponsor",
"description": null,
"slug": "special-sponsor",
"active": true,
"type": "paid",
"welcome_page_url": null,
"created_at": "2023-10-17T23:23:17.000Z",
"updated_at": "2023-10-18T00:15:38.000Z",
"visibility": "none",
"benefits": [
],
"currency": "USD",
"monthly_price": 9900,
"yearly_price": 80000,
"trial_days": 0
},
{
"id": "652f1779f2633823c3a0f87d",
"name": "Global Sponsor",
"description": null,
"slug": "global-sponsor",
"active": true,
"type": "paid",
"welcome_page_url": null,
"created_at": "2023-10-17T23:23:37.000Z",
"updated_at": "2023-10-18T00:15:38.000Z",
"visibility": "none",
"benefits": [
],
"currency": "USD",
"monthly_price": 49900,
"yearly_price": 450000,
"trial_days": 0
}
],
"meta": {
"pagination": {
"page": 1,
"pages": 1,
"limit": 5,
"total": 5,
"prev": null,
"next": null
}
}
}
Setup information
Ghost Version
v5.69.3
Node.js Version
v16.15.0
How did you install Ghost?
Self hosted, dev install
Provide details of your host & operating system
OSX