[TYPO3] Typoscript in Templavoila

Chris chris at oblady.com
Fri Jun 27 18:05:59 CEST 2008


Hello,

if you read TS Ref, you will see this :

"Now the input can be an alias or page-id. If the input is an integer
it's a page-id, if it's two comma separated integers, it's a id/type
pair, else it's an alias. For page-id's or aliases you can prepend a "#"
mark with a number indication tt_content record number on the page to
jump to! (if .section-property is present, it overrides this)."

=> if .section-property is present, it overrides this

means you should code like this :

<TypoScript>
   10 = IMAGE
   10.file = fileadmin/templates/img/relatedlink.jpg
   10.stdWrap.typolink.parameter = 6
   10.stdWrap.typolink.parameter.stdWrap.append=TEXT
   10.stdWrap.typolink.parameter.stdWrap.append {
   wrap=#|
   field=field_relatedlink
  }
</TypoScript>

not tested, but should work...

tell me if it's OK  :-)

LinTong a écrit :
> hallo everybody
> 
> 
> I modified an image content element in the XML of DS
> 
>  <TypoScript>
>     10 = IMAGE
>     10.file = fileadmin/templates/img/relatedlink.jpg
>     10.stdWrap.typolink.parameter = 6
>     10.stdWrap.typolink.section.field = field_relatedlink
>  </TypoScript>
> 
> this add a link "index.php?6#"+the input of field_relatedlink to the image "relatedlink.jpg". it works fine. 
> 
> but If i want to have a plain input field. e.g. if i input "aaaa", the output will look like:
> <a href="....index.php?6#aaa">related:(this is fixed) aaa </a>
> if "bbb"
> <a href="....index.php?6#bbb">related: bbb </a>
> 
> I tried to write codes similar to the above codes but it does not work. Who could do me a favor to show me the correct typoscript which can be add into the XML of templavoila.
> 
> Thanks very much.
> 
> _________________________________________________________________
> 新年换新颜,快来妆扮自己的MSN给心仪的TA一个惊喜!
> http://im.live.cn/emoticons/?ID=18


More information about the TYPO3-english mailing list