Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 304 Vote(s) - 3.66 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ghost: Display Posts From Multiple Tags On One Page

#1
I'm developing a website for a magazine using Ghost (

[To see links please register here]

) and would like to have pages that display posts from two related tags. Eg. "Science and Environment". I understand that when using a static page you do not have access to *posts* so I cannot for example do this. This would however be the ideal solution.

{{#foreach posts}}
{{#has tag="science, environment"}}
do thing
{{\has}}
{{/foreach}}

I have had a look on the Trello roadmap (

[To see links please register here]

) but couldn't spot anything there. I would appreciate any help on a workaround.

Cheers
Reply

#2
This is possible but a bit tricky

- You should install **self-hosted Ghost** . There is a lot of step-by-step manuals how to do this on Amazon, DigitalOcean, Heroku, etc.

- You should create your own custom Handlebars helper for your purposes.

1. Create `myhelpers.js` in the Ghost project root and put your own helper code here. For example: [{{bytag}} helper]() which selects posts by _one_ tag. You can extend this to query posts by more than one tag.

2. At the beginning of `config.js` place `require('./myhelpers')();`
to activate your custom helper.

3. Restart Ghost
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through