View Single Post
  #10  
Old 05-12-2015, 10:13 AM
 
cvaughan02 cvaughan02 is offline
 

Member
  
Join Date: Mar 2014
Location: st. louis, mo
Posts: 22
 

Default Re: is it possible to override a module's yaml info

Quote:
Originally Posted by totaltec
I was able to get my hands on a copy of the Brands module.

In Module/QSL/ShopByBrand/View/Brand.php I see this method:

Code:
/** * Brand page view * * @ListChild (list="admin.center", zone="admin") */ class Brand extends \XLite\View\AView { /** * Return list of allowed targets * * @return array */ public static function getAllowedTargets() { return array_merge(parent::getAllowedTargets(), array('brand')); }

this is the method I would override in my decorator. It may be other places, this is just the first I found.


Ahhhh, thank you! I will try that shortly. I'm pretty sure that's what i need though. I saw this function early on in my search, but I hadn't figured out I was looking for targets yet.. its much more relevant now
__________________
SEEK HAPPINESS. EVERYTHING ELSE IS DETAILS.
Reply With Quote