Hi,
I’m trying to get my brain into the modx gear and finding it a bit hard as I am used to working with the smarty template system, so I hope someone can help me with the following question.
I basically just want to include some javascript files for specific pages (using the same template). In a smarty template I would do something like this
{if $page_id == 4}
<script type="javascript/text" src="js/blah.js"></script>
{/if}
I’m just wondering how I would achieve this in modx without making a new template? Would I have to write a snippet or use a TV? Which method would be best?
Thanks.