CoreBOSBB

Full Version: I dont see related documents in custom module created by Module Builder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
According to: http://corebos.tsolucio.com/development/view.php?id=310

- I need help to create a cbupdater changeset. I'm totally new to this Smile
Do i just copy setRelatedList(relatedmodule, header, actions, 'get_attachments') to /build/changeSets/example.php and run cbupdater?
Hi.

Here you have more information about how to create a new changeset to modify your installation.

http://corebos.org/documentation/doku.php?id=en:devel:corebosupdater
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:

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.
It works for module, but i dont see documents in Accounts list.
Sorry, I don't understand
Its ok - my bad sorry Smile