komodosp
komodosp

Reputation: 3616

How to list all available themes in Magento?

Is there a function in Magento to list all available skins?

I know I could use the quick and dirty method of getting a directory list of the skin/ directory but wanted to know the correct method as I am developing a module that I want to be transportable.

Thanks!

Upvotes: 0

Views: 306

Answers (1)

Gerard de Visser
Gerard de Visser

Reputation: 8050

To get a list of all available packages, use:

Mage::getSingleton('core/design_package')->getPackageList();

To get a list of all available themes, use:

Mage::getSingleton('core/design_package')->getThemeList();

Upvotes: 1

Related Questions