This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

matt.bryant
matt.bryant

I'm using the Rainlab Blog plugin, and have customized it using partials in my theme. Everything works, except the category links on the category page don't go anywhere (empty links). The list of categories shows up as they should, with the correct counts of posts for each, the listed categories matches up with all my blog post categories, and when you click on each category link the URL slug changes to match each category name, but you don't leave the current page, as if the links are empty. I've tried all the suggestions in this thread: https://github.com/rainlab/blog-plugin/issues/106 Any other ideas on what I could check or try?

Last updated

matt.bryant
matt.bryant

Okay issue resolved, and I am going to post my findings here for any other October newbies that might stumble across the same issue. There were two problems in my category.htm page: The URL of the page should be:

url = "/blog/category/:slug/:page?"

But I managed to leave off the :page? part.

Also, I was calling my custom blogCategories partial component instead of my custom blogPosts partial component - which is what I thought I needed to do since it is the category.htm page. So I should have had:

{% component 'postsList' %} where postsList is the name of my custom component that overrides the original plugin blogPosts.

Two newbie mistakes that resulted in me chasing my tail for quite some time. All is working perfectly now.

Last updated

anuraggharat5552360
anuraggharat5552360

Hey I am stuck on the same thing and even after trying the suggestion of adding /:page? in url there are no changes . Can you help me out please?

mjauvin
mjauvin

Please provide more details so we can help

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.