Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

People List Filter Labels as a Global Setting #35

Merged
merged 2 commits into from
Nov 30, 2023
Merged

Conversation

patrickbrown-io
Copy link
Contributor

@patrickbrown-io patrickbrown-io commented Nov 27, 2023

Changes the People List Filter 1, Filter 2, and Filter 3 custom labels to a Global Setting in Site Configuration, rather than being set per-page. These labels will be set under Configuration => Cu Boulder Site Settings => Appearance and Layout.

Resolves #543

Includes:

@timurtripp
Copy link
Member

Does It make more sense to have them under "Pages and search" instead of "Appearance and layout"?

@timurtripp
Copy link
Member

timurtripp commented Nov 27, 2023

"Related articles" could be put under there too as part of a future update. Makes sense to have one place for all page type specific settings.

@timurtripp
Copy link
Member

timurtripp commented Nov 27, 2023

Unfortunately having them be theme settings makes it harder to move them out of "Appearance and layout" in the future. Generally for things that are strings I'm not a fan of making them theme settings. Consider making them site configuration module settings instead.

@patrickbrown-io
Copy link
Contributor Author

Does It make more sense to have them under "Pages and search" instead of "Appearance and layout"?

@timurtripp "Appearance and Layout" has the other display settings for choosing Article Date Formats, where things should render, etc so it seemed more appropriate since its just a display label.

Probably up to @jcsparks or @kevincrafts

@timurtripp
Copy link
Member

Does It make more sense to have them under "Pages and search" instead of "Appearance and layout"?

@timurtripp "Appearance and Layout" has the other display settings for choosing Article Date Formats, where things should render, etc so it seemed more appropriate since its just a display label.

Probably up to @jcsparks or @kevincrafts

Does that setting only affect articles? I was actually confused about whether that should be moved as well.

@timurtripp
Copy link
Member

GTM account number doesn't belong there either but was a holdover from the old theme settings before site configuration existed as a module. I will bring that one up with Jeremey at some point.

@patrickbrown-io
Copy link
Contributor Author

Does It make more sense to have them under "Pages and search" instead of "Appearance and layout"?

@timurtripp "Appearance and Layout" has the other display settings for choosing Article Date Formats, where things should render, etc so it seemed more appropriate since its just a display label.
Probably up to @jcsparks or @kevincrafts

Does that setting only affect articles? I was actually confused about whether that should be moved as well.

Currently I think Articles are the only content that actually use that setting to do something

@timurtripp
Copy link
Member

Does It make more sense to have them under "Pages and search" instead of "Appearance and layout"?

@timurtripp "Appearance and Layout" has the other display settings for choosing Article Date Formats, where things should render, etc so it seemed more appropriate since its just a display label.
Probably up to @jcsparks or @kevincrafts

Does that setting only affect articles? I was actually confused about whether that should be moved as well.

Currently I think Articles are the only content that actually use that setting to do something

Gotcha. I don't like that it's ambiguous when a setting applies to only a single page type.

@timurtripp
Copy link
Member

timurtripp commented Nov 27, 2023

Actually, now that "General" is accessible to site managers, I'd reorganize this a bit by moving the stuff currently under "Pages and search" into "General" and repurposing that tab for things specific to a single page type. That's a future issue but try not to make these theme settings and instead module settings which will make it easier to reorganize in the future.

@timurtripp
Copy link
Member

On second thought I could write an update hook to perform the conversion from theme setting to module setting when I move them out of "Appearance and layout", it's just more work.

@patrickbrown-io
Copy link
Contributor Author

Actually, now that "General" is accessible to site managers, I'd reorganize this a bit by moving the stuff currently under "Pages and search" into "General" and repurposing that tab for things specific to a single page type. That's a future issue but try not to make these theme settings and instead module settings which will make it easier to reorganize in the future.

Just made a new issue for this
#36

@jcsparks jcsparks merged commit b9e332c into main Nov 30, 2023
2 checks passed
@jcsparks jcsparks deleted the issue/tiamat-theme/543 branch November 30, 2023 16:28
github-actions bot pushed a commit that referenced this pull request Nov 30, 2023
People List Filter Labels as a Global Setting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

People Filter Labels
3 participants