Archive for 'CMS'
Adding and removing javascript / css when and where you need it
Posted on 19. Feb, 2009 by Fido .
Adding and removing javascript and css is handled separately within Magento. CSS is added in the usual fashion, where you have a <link rel="stylesheet"... />. However, any included javascript (unless linked to "by hand" from a theme's skin) is pulled via a php files which reads through the "js" folder in the root directory (root/js/index.php is responsible for this). That is all well and good for Magento. The real question is how we, as developers, add these items when we need them. How you as a developer add css or javascript is, luckily, handled the same. In this post, we will show how to add and remove javascript and css to a CMS page (and anywhere else) that you may need.
Continue Reading
Using PHP code on a CMS page (custom Block/module)
Posted on 02. Sep, 2008 by Fido .
If you have ever wanted to do some sort of PHP processing within a CMS page that you created, here is how you do it. A limitation of this tutorials is form processing. That involves creating and/or extending and/or overriding a controller class (which I'll save for another day). This code will allow your code to accept arguments, making it handy for some sort of dynamic use!



