Including A Script File For A Specific Category
Category: Graffiti Tips
If you want to include a JavaScript file for only a specific category, surround the script tag with a conditional statement based on the category name.
#if ($category.Name == "My Category")
<script language="JavaScript" type="text/javascript" src="$data.Site.BaseUrl$urls.Home/js/MyCategory.js"></script>
#end
This technique will also work for other mark-up that you want to include only when the category is a specific category.
