Page 1 of 1

vqmod edit

Posted: Thu May 29, 2014 10:36 am
by boldidear
hello.

can you help me making simple vqmod?

what i am trying to do is i want to add extra code on header.tpl file

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<modification>
        <id>menu custom link</id>
        <version>1.00</version>
        <vqmver>2.3.0</vqmver>
        <author>john</author>
        <file name="catalog/view/theme/*/template/common/header.tpl">
                <operation error="skip">
                        <search position="before"><![CDATA[
      </ul>
</div>
						]]></search>
                        <add><![CDATA[
<li><a href="http://issuu.com/hanjuinc/docs/hanju-2014-catalog" target="_blank">Catalog 2014</a></li>
                        ]]></add>
                </operation>
        </file>
</modification>

but it didn't work.

can anybody help me, please~~~~

Re: vqmod edit

Posted: Thu May 29, 2014 11:56 am
by NoJoke
Try this one :

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<modification>
        <id>menu custom link</id>
        <version>1.00</version>
        <vqmver>2.3.0</vqmver>
        <author>john</author>
        <file name="catalog/view/theme/*/template/common/header.tpl">
                <operation error="skip">
                        <search position="before"><![CDATA[
      </ul>
						]]></search>
                        <add><![CDATA[


<li><a href="http://issuu.com/hanjuinc/docs/hanju-2014-catalog" target="_blank">Catalog 2014</a></li>


                        ]]></add>
                </operation>
        </file>
</modification>

Re: vqmod edit

Posted: Thu May 29, 2014 12:05 pm
by boldidear
it is working.... i found the error.
i had same link name, that's why.


thank you for your hlep

Re: vqmod edit

Posted: Thu May 29, 2014 12:12 pm
by pprmkr

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<modification>
	<id>menu custom link</id>
	<version>1.00</version>
	<vqmver>2.3.0</vqmver>
	<author>john</author>
	
	<file name="catalog/view/theme/*/template/common/header.tpl">
		<operation error="skip">
			<search position="before" index="2"><![CDATA[</ul>]]></search>
			<add><![CDATA[    <li><a href="http://issuu.com/hanjuinc/docs/hanju-2014-catalog" target="_blank">Catalog 2014</a></li>]]></add>
		</operation>
	</file>
	
</modification>

Re: vqmod edit

Posted: Thu May 29, 2014 12:20 pm
by boldidear
wait~~~

i still having error.

if i use just one </ul>

two link come out.

if i use "pprmkr" code, nothing come out.

help me~~~~