View more context

 

Hels

whats the best way to use font-awesome in templates in silverstripe? use the free “kits” thing or download the css?

phyzical

why not just include teh cdn in your base tempalte

Hels

???? I don’t know. On their website the 2 options are “kits” or download

dorsetdigital

I use the kits

Hels

after you sign up does it have instructions for silverstripe?

dorsetdigital

There's nothing SilverStripe specific. The kit is deployed with a single JS file. So you can just add this to your page with a Requirements call in the usual way

dorsetdigital

Using the kits is in theory more efficient, since it only loads the subsets you need, and does everything asynchronously

dorsetdigital

As opposed to loading the entire CSS with the page, which can be a bit bulky

phyzical

oh really? i thought it still included everything

phyzical

so it has magic like webpack coolies, is that on the silverstripe level in requirements?

Hels

so I’ve just registered, & it says to use it like this: Copy your kit's code into the <head> of each template or page in your project where you want to use Font Awesome.. so If I just put that in the main http://Page.ss it should work right? no need for requirement in controller?

phyzical

end of the day all requirments (mostly) does is make a list of all the scripts and put them in your http://page.ss head anyway


Show less replies