I am a newcomer to Ghost CMS and I’m really thrilled about it.
I come from an 8y old WP and was looking for something more straightforward, fast, sleek. I’m still in the process of setting up my Ghost blog, after quite a painful migration (zip archive was too big for import, could not increase PHP limits enough, ended up with uploading the json after some fixes in it, managed to clean most tags, still have to reupload and integrate my pictures).
Sorry if it’s been answered before but I could not find the fix.
I’m trying to use collections in order to separate my content at URL level and it went well. But it kinda messed my pagination up.
I used another template just to be sure it would not interfere but I actually duplicated index.hbs and renamed the copy.
The / condition being last, it misses every post already filtered before. If you go on my blog, the homepage is / and calling index.hbs, and the first page is empty.
I would like my index to show all the posts, newest first, keep the pagination full and working, but also keep the ability to use the collections with the distinct URLs.
Do you know how I can achieve this? Should I be using channels? If so, can I keep my automatic primary-tag based URL categories for the related posts?
Thank you for your time/help and kudos to the team.
Short answer is yes, this is what Channels is for . Channels let you produce post list views of any posts but it doesn’t make them exclusive, and lets the posts respect their collection permalinks. More documentation on Channels can be found here:
It’s a filtered slice of content from across your site, without modifying the content itself.
Thank you for your quick answer, seems like it’s working as expected!
Actually, I found out that my posts URLs are not synced anymore to the primary-tag they belong to, they have the permalink structure mywebsite[dot]com/$slug
I would like to get a “category” or so in the URL.
For example, I have several posts about photography (primary) tagged “photo”. I’d like them to:
be displayed with all the other posts on the Index page, order newest first
be channeled though a “photo” tag to quickly access them
get a path like mywebsite[dot]com/photo/my-post-about-photo-nb1(just like with the collections)
Is there any way to have this “hybrid” feature? 1 and 2 are OK but 3 is missing now…
I tried to use the permalink attribute but it had no effect so I commented involved lines. I then rolled back (to collections) as having structured URL is very important to me (I like my stuff sorted and I’m using Disqus with old comments from WP that can only be displayed if the URL is the same).
At the end of the day, my preferred choice would be using collections and having the possibility to display a homepage listing all the posts, no matter in which collection they are, so that visitors could identify the latest publications at a glance
# NOTE: if you plan on having posts without any of the above primary tags, you need to add a collection here to "catch" the posts that weren't caught by the other filters
I’m not 100% sure if you need to add a filter for the route
I could have recovered the tree structure and the files of the WP installation to keep the same paths, but I preferred to recover only the original photos and reinstall them cleanly on Ghost, to free myself from the “chaotic” management of WP with its 6 to 10 different dimensions for each image. I see it as an opportunity to go back in my memories and to have a well laid out content, even if it will take me some time.