Forum

Thread tagged as: Question

Multiple Blogs

I'm created 2 separate Blogs in Runway but it seems that you can only have one post path for both blogs ie Blog /blog/post?s={postSlug}

/blog/post?s={postSlug}

Is there a way of having different post paths as I have separate body classes which I need to each Blog Post, eg

Blog /blog/post?s={postSlug}

Blog2 /blog2/post?s={postSlug}

Richard Lowe

Richard Lowe 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You can use the blog slug in the post path

/{blogSlug}/post?s={postSlug}
Richard Lowe

Richard Lowe 0 points
Registered Developer

What about the Archive Template?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you mean the archive.php example page?

Richard Lowe

Richard Lowe 0 points
Registered Developer

When I click on the archive date links, in the second blog, they point to the first blog archive page.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you updated the slug and re-saved the post?

Richard Lowe

Richard Lowe 0 points
Registered Developer

Yes, I updated the blog slug in setting, which correct the post link, but the archive still goes to the template for the first blog. (If that makes sense!)

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you using postURL to create the link?

Drew McLellan said:

You can use the blog slug in the post path

/{blogSlug}/post?s={postSlug}

What does {blogSlug} output?

I have two section, "Case Studies" and "News". I want "/case-studies/post?..." and "/news/post?..." so they have unique post page paths. Is this possible?

Elliott Mangham said:

Drew McLellan said:

You can use the blog slug in the post path

/{blogSlug}/post?s={postSlug}

What does {blogSlug} output?

I have two section, "Case Studies" and "News". I want "/case-studies/post?..." and "/news/post?..." so they have unique post page paths. Is this possible?

blogSlug is based on the slug of each blog. You can see which one when you view the blogs section. What you have asked is possible. Just go to Blogs section and add each section.

That said there is no way to change the slug of each added blog. @Drew, will this be added in the new Blog app release?

Richard Lowe

Richard Lowe 0 points
Registered Developer

What he said (Robin)!

Drew McLellan

Drew McLellan 2638 points
Perch Support

Change in what way? You created the blog, so you set the slug, no?

Drew McLellan said:

Change in what way? You created the blog, so you set the slug, no?

@Drew, no. I can only set Title, no navigation URL/slug.