File tree Expand file tree Collapse file tree
app/code/community/ProxiBlue/GlobalHandle Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,8 +105,14 @@ The template itself would simply the the field:
105105 </div>
106106 </li>
107107
108+ Fixes Category Layout Handles
109+ =============================
108110
109- Our Premium extensions:
111+ ref: http://stackoverflow.com/questions/20249894/magento-1-7-how-to-use-the-page-layout-handle
112+ Will now inject the category handle, allowing you to target teh category via its own layout handle as set in admin
113+
114+
115+ Premium extensions:
110116----------------------
111117[ Magento Free Gift Promotions] ( http://www.proxiblue.com.au/magento-gift-promotions.html " Magento Free Gift Promotions ")
112118The ultimate magento gift promotions module - clean code, and it just works!
Original file line number Diff line number Diff line change @@ -32,6 +32,13 @@ public function controller_action_layout_load_before($observer)
3232 $ urlKey = str_replace ('- ' , '_ ' , strtolower ($ category ->getUrlKey ()));
3333 $ layout ->getUpdate ()->addHandle ('CATEGORY_ ' . $ name );
3434 $ layout ->getUpdate ()->addHandle ('CATEGORY_ ' . $ urlKey );
35+ // inject custom page layout handle
36+ // ref: http://stackoverflow.com/questions/20249894/magento-1-7-how-to-use-the-page-layout-handle
37+ $ design = Mage::getSingleton ('catalog/design ' );
38+ $ settings = $ design ->getDesignSettings ($ category );
39+ if ($ settings ->getPageLayout ()) {
40+ $ layout ->getUpdate ()->addHandle ($ settings ->getPageLayout ());
41+ }
3542 }
3643 }
3744
Original file line number Diff line number Diff line change 22<config >
33 <modules >
44 <ProxiBlue_GlobalHandle >
5- <version >1.0.1 </version >
5+ <version >1.0.2 </version >
66 </ProxiBlue_GlobalHandle >
77 </modules >
88 <global >
You can’t perform that action at this time.
0 commit comments