User Tools

Site Tools


how_to_create_a_vqmod

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
how_to_create_a_vqmod [2020/07/17 12:57]
A User Not Logged in Adsbygushed
how_to_create_a_vqmod [2020/07/31 14:30] (current)
admin old revision restored
Line 3: Line 3:
 For more information visit https://github.com/vqmod/vqmod/wiki For more information visit https://github.com/vqmod/vqmod/wiki
  
-<code xml ~/vqmods/xml/Adsbygushed.xml>+===== Example ===== 
 + 
 +<code xml ~/vqmods/xml/sample.xml>
 <?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
 <modification> <modification>
-  <id>Adsbygushed</id> +  <id>Sample</id> 
-  <version>1.0.9</version>+  <version>1.0</version> 
 +  <vqmver required="true">2.5.2</vqmver> 
 +  <author>ACME Corp.</author> 
 +   
 +  <file name="relative/path/to/file.php"> 
 +    <operation error="skip|log|abort"> 
 +      <search position="replace|before|after|top|bottom|ibefore|iafter" index="0" offset="0"><![CDATA[ 
 +        ... 
 +      ]]></search> 
 +      <add><![CDATA[ 
 +        ... 
 +      ]]></add> 
 +    </operation> 
 +     
 +    <!-- Another operation ... --> 
 +  </file> 
 +   
 +  <!-- Another file ... --> 
 +</modification> 
 +</code> 
 + 
 +Here is a sample how to edit pages/index.inc.php and output Hello World before the content. 
 + 
 +<code xml ~/vqmods/xml/hello_world.xml> 
 +<?xml version="1.0" encoding="utf-8"?> 
 +<modification> 
 +  <id>Hello World</id> 
 +  <version>1.0</version>
   <vqmver required="true">2.4.0</vqmver>   <vqmver required="true">2.4.0</vqmver>
-  <author>gushedsoft.</author>+  <author>ACME Corp.</author>
      
   <file name="pages/index.inc.php">   <file name="pages/index.inc.php">
     <operation error="log">     <operation error="log">
-      <categories position=""><![CDATA[+      <search position="before"><![CDATA[
   echo $page->stitch('views/index');   echo $page->stitch('views/index');
-      ]]></categories>+      ]]></search>
       <add><![CDATA[       <add><![CDATA[
   echo 'Hello World';   echo 'Hello World';
how_to_create_a_vqmod.txt · Last modified: 2020/07/31 14:30 by admin