Forum

Thread tagged as: Question, Problem, Feathers

Choosing which feathers to add...

Hi, could someone give me advice how I could solve this problem. I am using feathers and adding them to my pages with <?php perch_get_javascript(); ?> & <?php perch_get_css(); ?>

Works great.

But

for one page I would like to add only certain scripts, for example NOT the mediaelementsjs feather. Is there a way to simply do this?

Thanks!

Matthew Owen

Matthew Owen 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You can pass an options array as the first argument. This gets passed to the feathers in turn. So provided you added the functionality to your feathers then you could do it that way.

Thanks Drew that sounds good. Do you have have a simple example you could share with me?

Drew McLellan

Drew McLellan 2638 points
Perch Support

The Sass feather uses this approach to pass options from the page to Sass.