Retrieve AttributeType header/footer items
PermalinkHere's what I tried.. but coming up empty.
Loader::model('attribute/categories/collection'); $ao = CollectionAttributeKey::getByHandle($handle); if (is_object($ao)) { $avo = Page::getCurrentPage()->getAttributeValueObject($ao); $at = $ao->getAttributeType(); $atv = new AttributeTypeView($at, $ao, $avo); var_dump($atv->getHeaderItems()); var_dump($atv->outputFooterItems()); }
If I var_dump($atv), I get the correct AttributeTypeView object, but I'm at a loss for where to turn on this one.
Thanks anyway folks! :) Hope someone can save headache with this.