kirkroberts Posted September 21, 2020 Share Posted September 21, 2020 I have a blog page on a 7.1 site, with categories. When a category link is clicked (in an archive block or in post meta info) it takes the viewer to the blog index, filtered to only show the posts with the selected category. But, there is no on-page indication that the list has been filtered. On 7.0 sites (at least in some of the templates) there was a "Showing posts in [category name]" or similar. Is this missing in 7.1? I can't see it in the code or a way to enable it and hope I'm just missing it so far (we're certainly missing it, but you know what I mean). If it is missing, does anyone know if it is on a road map to be implemented? This seems like a basic feature (I know, everyone says that about their particular request :-). Thanks for your help! Link to comment
creedon Posted September 21, 2020 Share Posted September 21, 2020 There was a similar recent question that may be of interest to you. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
SueF Posted October 18, 2020 Share Posted October 18, 2020 HI . I added some script to the posts page, clunky but the link returns the url of the page, last part of the link shows the category selected. <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Get Current URL in JavaScript</title> </head> <body> <script> function getURL() { alert("The URL of this page is: " + window.location.href); } </script> <button type="button" onclick="getURL();">See page criteria</button> </body> </html> ............ Really should go further and strip text for all but the last / . Link to comment
SueF Posted October 18, 2020 Share Posted October 18, 2020 Does seem like an omission, as the events show the filter. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.