PDA

View Full Version : Custom functions


erdsiger
11-24-2007, 12:16 PM
Hi,

I added some custom functions to the /lib/vivvo/core/Articles.class.php file, so I can call them like this:

<vte:value select="{article.custom_function}" />

It works, but this way is not the best because of the upgrades, I have to be careful not to automatically overwrite the modified files. So each time I need to copy the custom functions to the upgrade file. Is there a way to place these custom functions into a single file instead of the core ones? Thanks in advance!

shketuljko
11-26-2007, 08:47 AM
So each time I need to copy the custom functions to the upgrade file.


That is right.
This is the only way to apply customization to upgraded version.

erdsiger
11-28-2007, 05:01 PM
Thanks for the answer. I just hoped that there is an easier way. :)

shketuljko
11-29-2007, 08:55 AM
No problemo :)