Page 1 of 1

Ocmod Serach Problem

Posted: Thu May 05, 2016 9:51 pm
by jasar
im tring to make my first ocmod but i cant serach any thing on that
i did various tests and it not find that i want in tpl and php files

this is my actual code
<file path="catalog/controller/common/header.php">
<operation>
<search>
<![CDATA[$data['language'] = $this->load->controller('common/language');]]>
</search>
<add position="before">
<![CDATA[
my sql data query from a custom db
]]>
</add>
</operation>
</file>
and for tpl
<file path="catalog/view/theme/*/template/common/header.tpl">
<operation>
<search regex="true">
<![CDATA[~(\r{0,}\n{0,}\t{0,}<\/ul>\r{0,}\n{0,}\t{0,}<\/div>\r{0,}\n{0,}\t{0,}<\/nav>)~]]>
</search>
<add position="before">
<![CDATA[
my custom menu here
]]>
</add>
</operation>
</file>
this second operetion matches whit
</ul>
</div>
</nav>
that i have in header.tpl


both operation dont work
some one can help me to make it work?

Re: Ocmod Serach Problem

Posted: Thu May 05, 2016 11:41 pm
by jasar
fixed this is the rexex to make that

(\s{0,}<\/ul>\s{0,}<\/div>\s{0,}<\/nav>)