[TYPO3-core] RFC: Bug #10744: Icon path calculated incorrectly in t3lib_tceforms->getIcon()

Martin Kutschker masi-no at spam-typo3.org
Thu May 28 21:53:34 CEST 2009


Steffen Kamper schrieb:
> Hi,
> 
> Martin Kutschker schrieb:
>> Steffen Kamper schrieb:
>>> Hi,
>>>
>>> Martin Kutschker schrieb:
>>>> Jeff Segars schrieb:
>>>>> This works fine as long as backPath is empty, as it is in alt_doc,
>>>>> db_list, and all other classes that live directly inside typo3/.
>>>> Sidenote: also setModuleTemplate() in template.php works only
>>>> satisfactory when the back path is empty.
>>>>
>>>> Masi
>>> that's why i always use it with extMgm::extPath(extkey) Reason was that
>>> it was used by core mods having templates in typo3-folder.
>>
>> Doesn't work either if back_path is non-empty!
>>
> 
> 
> it does, even if code says something else :D try it.
> 
> It can be done also by
> $this->doc->moduleTemplate =
> t3lib_div::getURL(t3lib_extMgm::extPath('extkey') .
> 'mod1/mod_template.html');

I did it that way because
$this->doc->setModuleTemplate(t3lib_div::getURL(t3lib_extMgm::extPath('extkey'))
doesn't work. And I read the code, not the documentation ;)

What I would expect as a programmer is that
$this->doc->setModuleTemplate('EXT:myext/mod1/template.html') would work.

Masi


More information about the TYPO3-team-core mailing list