Replies

Nov 2, 2021 4 years ago
Haswari
has seen too much
User Avatar
Starling-

I've posted in places about this before, but pretty poorly explained. In an effort to explain what I'm doing, these are FC directories:

roryrps herorps angeldustmt

These directories show photos of celebrities. You can click a descriptive option in the sidebar to sort them by things such as age, race, hair color, etc. When you choose one or multiple sorting options, the people fitting that description are narrowed down.

I'm looking to do something similar to this, but instead of the descriptive sorting options used in these directories, I'd use people's names. Clicking a name would make other people in their specified group appear.

What makes this difficult is that I would have to reenter the same information repeatedly, only in different orders. I'm looking for a way to simplify this.

For example, say we have people named Adam, Cassie, and Frank. There will be other people, but these three all belong to the same group.

Each of them will have their names listed in the sidebar as a clickable option. I would have to enter code for Adam listing that he's grouped with Cassie and Frank. Then I'd have to enter code for Cassie listing that she's grouped with Adam and Frank… Then I'd have to do the equivalent again with Frank.

Old ass code example:

Jan 20, 2022 4 years ago
Mocha_377
User Avatar

To be completely honest, I'm really not sure what you're trying to do, or if it even relates to HTML (the code you posted) at all.

What you could do is make a class for each group, then apply that group to the places it applies.

// class group-1 relates to the adam/clair/frank group

Please log in to reply to this topic.