Magento: Add external javascript or css reference link through layout xml

Use case: You want to add a jQuery UI and its css library in the head tag by referencing a cdn link in Magento.
Given: You have a layout update xml file, helloworld.xml, and in the hellowworld.xml file, you have an update handler

	<reference name="head">
		<block type="core/text" name="google.jquery.cdn">
			<action method="setText">
<link rel="stylesheet" href="//" />
<script src="//"></script>

To include local javascript file or css file, see this post.

Search within Codexpedia

Custom Search

Search the entire web

Custom Search