Форуми / Cotonti / Extensions / Gallery of URLkiller

Kort
#29003 20.03.2011 07:14

Pieter, the idea is to play with the names and specify paths in the template. So "no path" is absolutely fine. Check if ./datas/fotos/thumb_{PAGE_AVATAR} exists and try ...src="./datas/fotos... if it does.

That is what I use:

<!-- IF {PAGE_AVATAR} --><img src="./datas/agencies/thumb_{PAGE_AVATAR}" alt="{PAGE_SHORTTITLE}" /><!-- ELSE --><img src="./datas/agencies/nologo.png" alt="{PAGE_SHORTTITLE}" /><!-- ENDIF -->

SED.by - создание сайтов, разработка плагинов и тем для Котонти

Відредаговано: Kort (20.03.2011 07:22, 14 років тому)