Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.

"assetModel_styleCss_handler" for JS

ShadowdareShadowdare π Moderator
edited September 2016 in Development

We can use the assetModel_styleCss_handler to include a "CSS file in all non-Dashboard pages" (not admin back-end pages).

Is there a similar one for including JS files? If not, what's a good way to only include JS files on the front-end?

One way I like is if ($sender->MasterView !== 'admin').

Add Pages to Vanilla with the Basic Pages app | Publish articles with the Articles app


Sign In or Register to comment.