thanks for your help :) I really appreciate it.
- I’m able to log
{{log page}}
, but only before the pagination. This is the output:
{
slug: 'blog-en',
id: '621e17c840c0cb78bc1af454',
uuid: '99c16cef-67ed-4fa6-bcd5-b1685db234b1',
title: 'Blog (EN)',
html: '<p>Blog content</p>',
comment_id: '620e5d1d3144a300012fa76e',
feature_image: null,
featured: false,
visibility: 'public',
created_at: '2022-02-17T14:35:09.000+00:00',
updated_at: '2022-03-07T16:23:45.000+00:00',
published_at: '2022-02-17T14:35:21.000+00:00',
custom_excerpt: null,
codeinjection_head: null,
codeinjection_foot: null,
custom_template: null,
canonical_url: null,
authors: [
{
id: '1',
name: 'Alina N.',
slug: 'alina',
profile_image: '//www.gravatar.com/avatar/342e93ef2a19e805a2de0de4faccab4d?s=250&d=mm&r=x',
cover_image: null,
bio: null,
website: null,
location: null,
facebook: null,
twitter: null,
meta_title: null,
meta_description: null,
url: 'http://localhost:2368/404/'
}
],
tags: [
{
id: '621e17c840c0cb78bc1af61e',
name: '#en',
slug: 'hash-en',
description: null,
feature_image: null,
visibility: 'internal',
og_image: null,
og_title: null,
og_description: null,
twitter_image: null,
twitter_title: null,
twitter_description: null,
meta_title: null,
meta_description: null,
codeinjection_head: null,
codeinjection_foot: null,
canonical_url: null,
accent_color: null,
url: 'http://localhost:2368/404/'
},
{
id: '621e17c840c0cb78bc1af62e',
name: '#translation-is-blog',
slug: 'hash-translation-is-blog',
description: null,
feature_image: null,
visibility: 'internal',
og_image: null,
og_title: null,
og_description: null,
twitter_image: null,
twitter_title: null,
twitter_description: null,
meta_title: null,
meta_description: null,
codeinjection_head: null,
codeinjection_foot: null,
canonical_url: null,
accent_color: null,
url: 'http://localhost:2368/404/'
}
],
tiers: [
{
id: '6215245313d77af8968f1881',
name: 'Free',
slug: 'free',
active: true,
welcome_page_url: '/',
monthly_price_id: null,
yearly_price_id: null,
description: null,
type: 'free',
created_at: 2022-02-22T17:58:43.000Z,
updated_at: 2022-02-22T18:18:27.000Z,
visibility: 'public'
},
{
id: '6215245313d77af8968f1882',
name: 'Default Product',
slug: 'default-product',
active: true,
welcome_page_url: '/',
monthly_price_id: null,
yearly_price_id: null,
description: null,
type: 'paid',
created_at: 2022-02-22T17:58:43.000Z,
updated_at: 2022-02-22T17:58:43.000Z,
visibility: 'none'
}
],
primary_author: {
id: '1',
name: 'Alina N.',
slug: 'alina',
profile_image: '//www.gravatar.com/avatar/342e93ef2a19e805a2de0de4faccab4d?s=250&d=mm&r=x',
cover_image: null,
bio: null,
website: null,
location: null,
facebook: null,
twitter: null,
meta_title: null,
meta_description: null,
url: 'http://localhost:2368/404/'
},
primary_tag: null,
url: 'http://localhost:2368/blog-en/',
excerpt: 'Blog content',
reading_time: 0,
page: true,
access: true,
og_image: null,
og_title: null,
og_description: null,
twitter_image: null,
twitter_title: null,
twitter_description: null,
meta_title: null,
meta_description: null,
frontmatter: null,
feature_image_alt: null,
feature_image_caption: null,
secure: false
}
If I try logging it after the pagination, nothing happens (also, {{#page}}{{content}}{{/page}}
renders undefined
when using it after the pagination)
- when adding the if-statement to my
blog.hbs
I get a 404-error. When adding it to the index.hbs
the match helper won’t work, since I don’t use this template for my blog-page (so, always “German version of pagination” is printed).
So I’m starting to ask myself: is it even possible to use a foreach-post-loop + pagination on a custom template that is not index.hbs
?