Jump to content

url blog category

Recommended Posts

Site URL: https://www.familieshoot.nl/blog

Hi guys,

I was wondering is it is possible to do the following. On my website i have a blog with different categories.

In the menu I want to make a dropdown with different categories. When you click on one of the categories I want to get domain/category to show the filtered posts.

Right now the only 2 ways I found are:

1. add a link with blogpage + category. This will result domain/blog?category=family

2. create a new page and add a summery block. This will result with the correct URL but a max of 30 articles. The problem is that when I want to show 10 articles on the page and go to the next page for the next 10 articles, this is not possible?

 

Does anybody have tips for me to do this correctly? So show domain/category to show all articles of that category split in pages with next/prev links 

 

Love to hear your thoughts.

 

Stefan

Link to comment

I think I have a way of doing this, if you want to split same category of posts over two "pages" 

You would have to cheat a bit with your cats, like the first 30 are "family photography-1" and the next 30 "family photopgraphy-2" or whatever you want to name the cats. I ran into a situation a bit like this so I came up with the idea of putting my summary blocks in a second blog page each category with its own post containing one summary block. You are using a drop down which can be linked directly to a blog post. I could do that but I choose to use an archive block which searches by subject, which is a category. The url of the post in the browser address bar changes depending on how they got there, content link, archive block, or post url. 

Like these, all go to the same place:

https://myrandomviews.com/storyarchive/category/Living+in+an+RV  from the seach block 

https://myrandomviews.com/storyarchive/livinginamotorhome  direct link to post. 

The advantage of using the direct link (the bottom one) to the post with that summary category  is I get the pagination at the bottom of that post. That direct link can be in a dropdown menu. 

It takes a bit of work but if your summary is on a page and you are using multiple pages for one category, you can make your own pagination at the bottom with  text links or buttons. 

 

Edited by derricksrandomviews
Link to comment

Hi Derrick,

Thanks for your quick reply. It is not really clear.

1. create a page with a summery -> blog category -> show for example 5 blog posts

2. show this page in the browser and open up the latest post

3. below there should be a Next Article link

 

So how can I get another page with the next 5 articles?!

 

Sorry for the confusion.

Link to comment

If you are using a summary in a blog post,  then that summary block will group posts. Here is an example, all my photo lessons are blog posts, then I have one post with a summary block that puts all those articles on one page, I used a category filter to do it. "Lessons" I gave each of my seven articles that category and the blog summay block, which pulls content from the blog,  filters the content using that cat. If I had say 10 lessons, I could put five in one block with the cat "lessons 1-5"  and the next post would have a summary block filtering  the cat "lessons 6-10" I would assign those categories to the posts themselves. You can make the next and previous show up in the order you want by changing the post publication date. I do that all the time to make posts appear in the order I want like part 1 and part 2 that kind of thing. 

https://myrandomviews.com/stories/lessons

Check this out also, this is my second blog page where  I use summaries  to sort my blog posts. If you scroll to the bottom there is no pagination, because this page is a "list" of all my categories, click on any title and then you go to that category in a post by itself, scroll down and you will see the pagination. 

https://myrandomviews.com/storyarchive

 

 

Link to comment
2 hours ago, stefansegers said:

In the menu I want to make a dropdown with different categories. When you click on one of the categories I want to get domain/category to show the filtered posts. Right now the only 2 ways I found are:

1. add a link with blogpage + category. This will result domain/blog?category=family
2. create a new page and add a summary block.

I was hoping for something like... domain/category instead of domain/blog?category=family

In the past, filtered blog pages had dynamic URLs, like this:

https://www.familieshoot.nl/blog?category=familie

However, these only exist for backward compatibility. You can now use static URLs like this:

https://www.familieshoot.nl/blog/category/familie

 

  If this post has helped you, please click a 'Like' or 'Thanks' icon below  ⬇️

Edited by paul2009
added URL

About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

Link to comment
27 minutes ago, stefansegers said:

Is it possible to shorten the URL even more

No. These are fixed. 

About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.