[TYPO3] stdWrap Image from Template Resource
Ronald Renfro
rr at dreimorgen.com
Wed Jun 13 18:31:56 CEST 2007
Hi,
I would like to use a separator image between menu items - output an
image if it is defined e.g. uploaded to the template resource field.
The problem with my code is typo3 outputs <img src="example*.gif" />
instead of a valid path
How can I accomplish this?
Thanks.
Ronald
[globalVar = LIT:1 = {$template.pictspace.itemWrap.enable}]
template.pictspace.itemWrap = |*| |<img
src="{$template.pictspace.itemWrap.file}">|*| |*|
[global]
PICTSPACE = COA
PICTSPACE {
20 = HMENU
20 {
special = list
special.value = {$template.pictspace.navigationPageList}
1 = TMENU
1 {
noBlur = 1
wrap = <ul>|</ul>
NO = 1
NO.ATagTitle.field = abstract // description //
subtitle
// optionsplit
NO.allWrap = <li>|
{$template.pictspace.separatorChar}</li> |*| <li>|
{$template.pictspace.separatorChar}</li> |*| <li>|</li>
NO.linkWrap = |
NO.ATagBeforeWrap = 1
NO.stdWrap.htmlSpecialChars = 1
NO.beforeImg = {$template.pictspace.beforeImg}
NO.beforeROImg = {$template.pictspace.beforeImgRO}
#NO.beforeImgLink = 1
NO.RO = 1
NO.ACT = 1
ACT < .NO
ACT.beforeImg = {$template.pictspace.beforeImgRO}
ACT.allWrap = <li class="current">|
{$template.pictspace.separatorChar}</li> |*| <li class="current">|
{$template.pictspace.separatorChar}</li> |*| <li class="current">|</li>
}
}
wrap = <div id="pictspace">|</div>
}
etc.
More information about the TYPO3-english
mailing list