I’m new to Ghost and currently researching building a custom website on the Ghost platform for a client.
Using the example of a law firm website. Say I’m displaying an article from the litigation category and within that post I want to display a list of lawyers (another collection) who specialise in litigation.
As far as I know from the documentation, I need to pass data to a filter that displays a specific list of authors (lawyers that specialise in litigation).
Does Ghost support custom tags for different authors, or is there a work around for this.
I don’t have an example to show as just researching at the moment, but if someone could let me know how this can be done in Ghost it would be much appreciated
Say I’m displaying an article from the litigation category and within that post I want to display a list of lawyers (another collection) who specialise in litigation.
To be clear, are you asking about displaying a list of authors who specialise in litigation, or a list of posts by those authors?
Thanks for the message. Sorry for the unclear post But yes, I want to display a list of authors who specialise in litigation - so I guess creating tags for different authors (i.e litigation, contract etc.)
Not to dismiss your usecase at all, tagging authors is not something that Ghost supports just yet.
You would need to hardcode the slugs of the authors, at least until we add this feature. Using partials, it should at least be possible to only hard code the list once per group of authors.
e.g. First create a template to cover as much of the shared logic for outputting authors as possible
Thanks very much for the quick reply, this certainly is a work around and I was thinking of something similar but didn’t come up with as simple solution as this.
So finally is this a feature that will be released anytime soon?