
This question has been answered by exside. See the first response.
if ($namespace = stristr($tv->get('caption'), '.', true)) {
$this->modx->lexicon->load($namespace . ':default');
if ($this->modx->lexicon(ltrim(stristr($tv->get('caption'), '.'), '.'))) {
$tv->set('caption', $this->modx->lexicon(ltrim(stristr($tv->get('caption'), '.'), '.')));
}
if ($this->modx->lexicon(ltrim(stristr($tv->get('description'), '.'), '.'))) {
$tv->set('description', $this->modx->lexicon(ltrim(stristr($tv->get('description'), '.'), '.')));
}
}
// insert the above code before this line that already exists...
$tvOutput = $this->fetchTemplate('resource/sections/tvs.tpl');
if ($namespace = stristr($tv->get('caption'), '.', true)) {
$this->modx->lexicon->load($namespace . ':default');
if ($this->modx->lexicon->exists(ltrim(stristr($tv->get('caption'), '.'), '.'))) {
$tv->set('caption', $this->modx->lexicon(ltrim(stristr($tv->get('caption'), '.'), '.')));
}
if ($this->modx->lexicon->exists(ltrim(stristr($tv->get('description'), '.'), '.'))) {
$tv->set('description', $this->modx->lexicon(ltrim(stristr($tv->get('description'), '.'), '.')));
}
}Hisato, you should know that any time you upgrade MODX, your work will be written over and you will have to do it again.Quote from: exside at May 24, 2014, 09:06 AM
Bob is right, core modifications get overridden when upgrading, so keep that in mind =)!OK!