branko ajzele, senior developer / project manager

Posts / Articles

ExtraLayouts, Magento module

Wrote a little module that adds extra layouts to your store. Unzip and modify config.xml and template .phtml files to suite your needs.

I’ve been doing a lot of “fixes” development lately and noticed how badly Magento theme can be fragmented when work is distributed across more development teams. Seems like everyone has it’s own way of doing things.

Personally I like to keep all my template view files in one root theme folder. This little module is merely my way of handling special page needs.

Download ExtraLayouts module. Module is written and tested on Magento 1.3.1 version. However, it does not use any advanced or complex features so it should be safe to use it even upon Magento upgrade.

capture_05062009_214447

Hope you find some use of it.

  • http://classyllama.com/ Erik Hansen

    Very cool. Have you released this module to Magento Connect? I think this is a module a lot of people could benefit from.

  • http://classyllama.com Erik Hansen

    Very cool. Have you released this module to Magento Connect? I think this is a module a lot of people could benefit from.

  • anon

    If you get the error

    Invalid id or tag ” : must use only [a-zA-Z0-9_]

    check if the filename of your layout-template contains characters not matched by this regex [a-zA-Z0-9_]+
    If yes, Magento will throw an error on the pages which use your layout-template.

    Starting with Magento 1.3.2 there is an additional tag called layout_handle which you can use to specify a handle name which only contains allowed characters (or just rename the file).

    Check app/code/core/Mage/Page/etc/config.xml for an example. Which now holds the layouts template definitions which previously where defined in app/code/core/Mage/Cms/etc/config.xml

  • anon

    If you get the error

    Invalid id or tag ” : must use only [a-zA-Z0-9_]

    check if the filename of your layout-template contains characters not matched by this regex [a-zA-Z0-9_]+
    If yes, Magento will throw an error on the pages which use your layout-template.

    Starting with Magento 1.3.2 there is an additional tag called layout_handle which you can use to specify a handle name which only contains allowed characters (or just rename the file).

    Check app/code/core/Mage/Page/etc/config.xml for an example. Which now holds the layouts template definitions which previously where defined in app/code/core/Mage/Cms/etc/config.xml

  • http://artesiandesigninc.com/ Daniel Peterson

    Awesome, Branko!
    How would I go about applying XML layout updates that would be attached to one of these new specific layouts?

  • http://artesiandesigninc.com Daniel Peterson

    Awesome, Branko!
    How would I go about applying XML layout updates that would be attached to one of these new specific layouts?

  • http://royalweb.pl/ Wojtek_royalweb.pl

    @anon

    If you see this error, just add into config.xml part <layout_handle>layoutname[a-zA-Z0-9_]</layout_handle> like in my config:
    <custom_layout_one>
    <label>info page</label>
    <template>page/3columnsinfo.phtml</template>
    <layout_handle>3columnsinfo</layout_handle>
    </custom_layout_one>

    That's all folks ;)

  • youst

    Hello from 2column_left_sidebar.phtml file. For start, try copy > paste entire page/2columns-left then customize

  • youst

    Hello from 2column_left_sidebar.phtml file. For start, try copy > paste entire page/2columns-left then customize

blog comments powered by Disqus