Jump to content

Filter Blog Posts by Author's Name From the Blog Page

Recommended Posts

  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

On 7/16/2023 at 3:52 AM, Cribinal said:

I didn't think I had, sorry! There is no password, it's here.

www.inkfoundry.net/browse
 

Can you share link to these author pages? We can give code to make text clickable to those url

 Carrie Vaughn

Marie Vibbert

J. T. Greathouse

Matt Dovey

Sarah Pinsker

Delilah S. Dawson

C. L. Clark 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

I'm not sure that's what I want? I'd like to make them clickable so that the blog page sorts into the entries they've written, the way it does when you click on their names from the blog post.
So the blog page is: https://www.inkfoundry.net/browse
And a blog post for a Carrie Vaughn entry is: https://www.inkfoundry.net/browse/that-game-we-played-during-the-war-vaughn

When I click on her name from the blog post, it automatically creates this URL: https://www.inkfoundry.net/browse?author=648cc18fa8f1606e6d517f62
Which is a list of all her entries on the blog.
I want to be able to do that from the blog page too.

Link to comment
Quote

I want to be able to do that from the blog page too.

Unfortunately SS has all this meta data available in their backend but when they are constructing the page output they often don't expose that meta data in a way that makes it easy to make an effect like you want. In other words they use it in their backend for their needs but are not considering needs outside their own.

From what I can see, to automatically reconstruct the data needed would be clumsy and inefficient.

I have no code for the the effect you want.

Here is how I would approach this effect. Create some code that has a map between author names and their profile ids and adds the link where wanted. This map would need to be maintained manually so every time there was a change in the authors, you'd need to update the code map. The map would be something like...

const authorNameToIdMap = {

  'Carrie Vaughn' : '648cc18fa8f1606e6d517f62',
  
  'Jack Skillingstead and Burt Courtier' : '64b966a7b28c8c01de577c73',
  
  };

 

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
18 hours ago, creedon said:

Unfortunately SS has all this meta data available in their backend but when they are constructing the page output they often don't expose that meta data in a way that makes it easy to make an effect like you want. In other words they use it in their backend for their needs but are not considering needs outside their own.

From what I can see, to automatically reconstruct the data needed would be clumsy and inefficient.

I have no code for the the effect you want.

Here is how I would approach this effect. Create some code that has a map between author names and their profile ids and adds the link where wanted. This map would need to be maintained manually so every time there was a change in the authors, you'd need to update the code map. The map would be something like...

const authorNameToIdMap = {

  'Carrie Vaughn' : '648cc18fa8f1606e6d517f62',
  
  'Jack Skillingstead and Burt Courtier' : '64b966a7b28c8c01de577c73',
  
  };

 

Woof, that seems a bit brute force for me. If that's the best option, I may end up just making each author's name into a Category. I'm going to mess around with jquery a bit, but I'm not a coder, so I may just leave it as is.

Thank you so much for your help! I apologize for the earlier confusion!

Link to comment
3 hours ago, Cribinal said:

Woof, that seems a bit brute force for me.

Oh it is!

But as I say trying to get the meta info gathered is inelegant and more brutish as you'd be loading multiple pages with Ajax to walk the information in the databases.

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

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.