Not very experienced with Magento layouts, so forgive me, if the question is too vague.
I have defined a layout in config.xml similar to this:
<page>
<layouts>
<campaign module="page" translate="label">
<label>Campaign</label>
<template>page/campaign.phtml</template>
<layout_handle>campaign</layout_handle>
</campaign>
</layouts>
</page>
But I seem not the get the <layout_handle>
definition correct, have tried define a separate file, using another handle, etc. Nothing seems to work, the default layout for the page (category) is always used.
Edit: the code is in module's config.xml. I wish to use my own layout instead of the catalog_category_default
Best Answer
Layout handle, defined in Page Layout, for some reason, works only for CMS pages (Alan Storm described it here). If you want add custom handle to specified categories, you could use this code:
app/etc/modules/SeStro_CatalogPageLayoutHandle.xml
app/code/local/SeStro/CatalogPageLayoutHandle/etc/config.xml
app/code/local/SeStro/CatalogPageLayoutHandle/Model/Observer.php
app/code/local/SeStro/CatalogPageLayoutHandle/sql/catalogpagelayouthandle_setup/install-0.1.0.php
local.xml
Then go to Catalog->Manage Categories->Category->Custom Design tab, and add 'bazinga' as Layout Handle. Of course you could use another handle name and content. You could also use your module to add observer and category attribute.