1

Is it possible tu add a Css file from the "media" folder!? In the normal way we put the css file into the "skin" folder and then we use "addCss()"! But I need it to be in the "media" folder ! Thanks for Helping

2 Answers 2

1
$path = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'my_folder/';
$file=$this->getTypeCss();
$param='rel="stylesheet" type="text/css"';
$this->getLayout()->getBlock('head')->addItem('link_rel', $path.$file, $param);

return parent::_prepareLayout();
Sign up to request clarification or add additional context in comments.

Comments

0

Can this not just be done by using the <link> tag in head.phtml?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.