Loading data in custom page


#1

I am using Ghost 2.0 and I have created a page called news.hbs.

I have the routes as follows,

    routes:
      /news/: news

    collections:
      /:
        permalink: /{slug}/
        template: index

    taxonomies:
      tag: /tag/{slug}/
      author: /author/{slug}/

The routes are working fine and when I try to load the posts by the following method,

{{#foreach posts}}
{{> "loop"}}
{{/foreach}}

I can’t get all the posts but by using {{get}} I can get the posts but I need to integrate custom pagination (LOAD MORE) in that page. So I want to get the posts without using {{get}} helper.

How to get all the posts without using {{get}}.

Kindly assist me.


#2

You probably want to use a channel.


closed #3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.