stefansegers Posted October 30, 2021 Share Posted October 30, 2021 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
derricksrandomviews Posted October 30, 2021 Share Posted October 30, 2021 (edited) 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 October 30, 2021 by derricksrandomviews stefansegers 1 Link to comment
stefansegers Posted October 31, 2021 Author Share Posted October 31, 2021 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
derricksrandomviews Posted October 31, 2021 Share Posted October 31, 2021 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
stefansegers Posted October 31, 2021 Author Share Posted October 31, 2021 thanks Derreck, I think this is a workaround but really love to have a pagination like a Wordpress blog. Link to comment
stefansegers Posted October 31, 2021 Author Share Posted October 31, 2021 I was hoping for something like this: domain/category instead of domain/blog?category=family it is more seo friendly to use domain/category Link to comment
paul2009 Posted October 31, 2021 Share Posted October 31, 2021 (edited) 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 October 31, 2021 by paul2009 added URL About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
stefansegers Posted November 3, 2021 Author Share Posted November 3, 2021 Thanks Paul for your reply! Is it possible to shorten the URL even more and remove the /category? So this way it will look like https://www.familieshoot.nl/blog/category/familie -> https://www.familieshoot.nl/blog/familie Link to comment
paul2009 Posted November 3, 2021 Share Posted November 3, 2021 27 minutes ago, stefansegers said: Is it possible to shorten the URL even more No. These are fixed. About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment