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

Publish or configure set icon folder #1039

Closed
mikemartin opened this issue Aug 26, 2023 · 5 comments
Closed

Publish or configure set icon folder #1039

mikemartin opened this issue Aug 26, 2023 · 5 comments

Comments

@mikemartin
Copy link

Would be really great if we could easily publish the folder for the Replicator and Bard set svg icons.

I would expect to publish the icons to /resources/svg/icons/ and then extend it with my own icons.

Alternatively, a simple configuration to set the icon folder would also work but that would involve manually copying the Statamic icons over which is a little more work for the user.

@jackmcdade
Copy link
Member

Did you mean to open this FR 5 times?

@mikemartin
Copy link
Author

@jackmcdade Oh did it? I was using the GitHub app and it wasn’t saving. I guess it did. 🙈

@mikemartin
Copy link
Author

@jackmcdade I've closed the other issues. What an awful way to get your attention. 🤣

@duncanmcclean
Copy link
Member

duncanmcclean commented Mar 12, 2024

You're now able to customize the directory used for the Replicator & Bard set icons (see statamic/cms#8931).

Choose a different icon set for bard/replicator set icons...

\Statamic\Fieldtypes\Sets::setIconsDirectory(folder: 'light');

Choose a different base directory altogether...

\Statamic\Fieldtypes\Sets::setIconsDirectory(directory: resource_path('custom-icons'));

@mikemartin
Copy link
Author

This is rad. Thanks @duncanmcclean!

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

No branches or pull requests

3 participants