Workaround for having tagged Pages appear in search?

I have a site that is mostly free to read, but there’s some Premium content. I tag all of it with the tag ‘Premium’.

Some of the Premium content is Posts, yes, but the meatier Premium content is actually web Pages, where I’ve curated a whole bunch of helpful content together into mini-courses.

I have added a “Premium :bookmark: Content” menu item to my top Navigation bar, but of course when I, or anyone, bring back the results for my-website/tag/premium/, the only bits they see are the Posts that have been tagged.

Which under-sells the Premium content a little bit, because there’s so much more to it! (And also doesn’t help existing Premium Members to find their stuff.)

Can anyone suggest a workaround where I might be able to get all content tagged as “Premium” to appear in search? Including Pages?

Thanks

Giles

Ghost’s built-in search app (“sodo-search”) doesn’t search pages.

Pages are never part of a collection, so won’t appear at /tag/{slug}

You /could/ switch to using a different search package, which would solve the first. You /could/ add a separate #get statement in your tag.hbs to also retrieve (but without pagination) any pages that have the tag.

But… unless there’s a really compelling reason these are pages, maybe converting them to posts makes the most sense, since it would solve both your problems? There’s a function in gctools that automates this.

2 Likes

Hmm. Interesting question. I guess it’s because they don’t really fit into the idea of what a post is, for me. They’re collections of other posts (and content from elsewhere, like YouTube videos); they don’t have a particular date of publication and they don’t fit into the natural flow of my daily posts.

They’d be appearing in the Archives if I converted them to posts, wouldn’t they?

Thinking about this, another option would be to put together a landing page of sorts, that pulls together all of the posts and pages, using the /bookmark block. This would allow me to sort the kinds of Premium content into their different types, and also showcase some of the stuff that occurs away from Ghost (e.g. monthly meet-ups over Zoom).

I had a look at the GCTools thing… a bit above my pay grade, stuff like that. If I went down this route (I’m pondering it), is there anything to stop me from Selecting all, copying and pasting into a new Ghost post? And if I do that, once I’ve deleted the original page, could I re-use the same URL?

That’s a theme-specific question. But yes, they would then appear in a collection. You could steer them into a separate collection by adjusting your routing, if you are using a theme that respects routing. (Not Source.)

1 Like

Try Magic Pages hosting. They include pages in the search functionality. You can ask Jannis about the tagging side of things. He’s an accommodating kinda guy! ;) Good luck.

Another consideration for you. https://vellumine.com/ Still in beta.

1 Like

Another consideration for you. https://vellumine.com/ Still in beta.

Oh my word, would you look at that?! It looks like just the ticket, thank you! I have hundreds of value-driven posts and I do find Ghost’s native search to be painfully surface-level.

I can’t even find my own stuff, half the time! :joy:

Hope it helps you. Reach out to Chris at Vellumine if you need any help or encounter any road blocks. :blush:

I suggest looking at Search | Visiting Objects - it’s a serious Ghost search solution with all sorts of smart features. It can include Pages in search. It also comes with Ghost GEO stuff like LLM.txt and search analytics. It’s been a sanity and money saver for me for sure. One click install too, super easy to use.