I have modzzz Advanced Articles installed on 7.2.
I would like to override and change the format of one of the page elements.
The function responsible for producing the text I want to format differently is defined in BxBaseMenu (line 381):
function genSubHeader(
...and specifically the variable $sCaptionWL:
$sCaptionWL = $this->sCustomSubHeader != '' ? $this->sCustomSubHeader : $this->genSubHeaderCaption($this->aTopMenu[$iFirstID], $sCaption);
...this variable is replaced in the templates/templ_evo/navigation_menu_sub_header.html:
<div class="sys_page_header bx-def-padding-right">__caption__<bx_injection:injection_title_zone /></div>
...which I have over-ridden by copying the file to modules/modzzz/articles/templates/navigation_menu_sub_header.html
It seems the best way to achieve this is to extend the BxBaseMenu class and then redeclare the genSubHeader with the changes I want to make, but I cannot seem to extend the BxBaseMenu class. After looking closely at the directory and file structure, it seems that only templates themselves override BxBaseMenu.
I have tried to add a scripts folder to the module and extend BxBaseMenu in there, with no success.
What is the best way to proceed, does anybody have to time and knowledge to point me in the right direction?
Thanks :)