Closed SeregPie closed 9 years ago
I have Contao 3.2.14 installed.
I needed to rewrite the whole function replaceTags to make insert tags work.
public static function replaceTags($strTag) { $arrTag = trimsplit('::', $strTag); $strKey; switch($arrTag[0]) { case 'pageimage': case 'pageimage_src': $strKey = 'path'; break; case 'pageimage_alt': $strKey = 'name'; break; case 'pageimage_title': $strKey = 'name'; break; case 'pageimage_href': $strKey = 'path'; break; default: return false; } global $objPage; $arrImage = static::getOne($objPage, (int) $arrTag[1]); if (null === $arrImage || !isset($arrImage[$strKey])) { return ''; } return $arrImage[$strKey]; }
See #18
No, but feel free to make a pull request for fixes ;-)
I have Contao 3.2.14 installed.
I needed to rewrite the whole function replaceTags to make insert tags work.