Quantcast
Channel: #get helper to retrieve all users
Viewing all articles
Browse latest Browse all 4

#get helper to retrieve all users

$
0
0

Hi! I’ve made a custom Ghost theme, and after the latest Ghost update (version 2.12.0) I’m having some issues with the #get helper. Previously I had used it in a static page template to display a formatted list of all of the Team members by using {{#get "users" limit="all" order="created_on asc"}}.

The latest update apparently changed the #get parameter to "authors" instead of "users", but even after fixing that, it only seems to retrieve the authors of the current page rather than all the users on the site. I can display the proper list by adding all the current team members as authors of the page, but I was wondering if I’m missing something a little less cumbersome.

Here’s my latest attempt to get this to work. I looked into some recent posts on the #get helper, and I’ve updated my package.json to use ghost-api v2.

I’d greatly appreciate any guidance anyone can provide on this matter. Thanks!

EDIT: I continued to look into this after making this post, and thought it might be the fact that the template I linked above has all its contents within a {{#post}} block. The problem persisted even after removing this block, however.

Read full topic


Viewing all articles
Browse latest Browse all 4

Trending Articles