My problem is that i want to search for this code inside my install.xml file :
Code: Select all
<file path="catalog/view/theme/*/template/common/header.twig">
<operation>
<search><![CDATA[
{% if logged %}
<a href="{{ account }}">
<div class="col-sm-2 pull-right txt-left user-account-btn" id="user-account-btn-id">
<i class="fa fa-user-o"></i><span class="hidden-xs hidden-sm hidden-md">{{ text_account }}</span>
</div>
</a>
{% endif %}
]]></search>
<add position="replace"><![CDATA[
// MY NEW CODE GOES HERE
]]></add>
</operation>
</file>
The problem is that ocmod cant search and find multi lines of code inside the file header.twig
I searched so many hours to find a solution but no luck!!! Can someone show me with an example how can i search for mutli lines of code in ocmod xml ??
Thanks in advance