07-07-2015, 07:27 AM
Look at this changeset:
build/changeSets/addvendorrelatedlist2contact.php
that adds a related list to contacts pointing to vendors, so it is very close to what you need. Copy this file and modify it.
Then create a new file here:
modules/cbupdater/cbupdates/shao.xml
inside that file you add blocks of changeset definitions for each changeset you create.
Let's suppose you copy the changeset above and name it: addDocumentsToMyModule.php, so you will have:
build/changeSets/addDocumentsToMyModule.php
now you edit modules/cbupdater/cbupdates/shao.xml and write this:
in the future you will add <changeset></changeset> blocks to this file.
build/changeSets/addvendorrelatedlist2contact.php
that adds a related list to contacts pointing to vendors, so it is very close to what you need. Copy this file and modify it.
Then create a new file here:
modules/cbupdater/cbupdates/shao.xml
inside that file you add blocks of changeset definitions for each changeset you create.
Let's suppose you copy the changeset above and name it: addDocumentsToMyModule.php, so you will have:
build/changeSets/addDocumentsToMyModule.php
now you edit modules/cbupdater/cbupdates/shao.xml and write this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<updatesChangeLog>
<changeSet>
<author>Shao</author>
<description>add Documents relation to MyModule</description>
<filename>build/changeSets/addDocumentsToMyModule.php</filename>
<classname>addDocumentsToMyModule</classname>
<systemupdate>false</systemupdate>
</changeSet>
</updatesChangeLog>
in the future you will add <changeset></changeset> blocks to this file.
Joe
TSolucio
TSolucio