[Typo3] Strong concatenation
Scotty C
superscotty19 at yahoo.com
Tue Oct 11 05:31:43 CEST 2005
Hi everyone,
This may be my inexperience with TS talking, but I
need to do something that I "thought" was pretty
simple, but can't seem to figure out. Here's the deal:
I'm using a template file with subparts. The supart in
question is for the placement of an image, like this:
<!-- ###PORTBACK### -->
(portback stands for "portfolio background")
In that section of the template, I want to put an
<img> tag that will display the image relevant to the
page you're at. So, if you were at the "*web*
portfolio" page, you'd see web.png; if you were at
"*graphics* portfolio", you'd see graphics.png.
Now here's my problem: The image name is the same as
the page name, so I can just get the page name by
using the "title" property. But, I need to add text
before and after the title - more specifically, I need
to add the file location and ".png" respectively. So,
the end result would be
fileadmin/storm/images/___.png, where "___" is the
name of the page. Can someboyd please tell me how to
concatenate everything to form one string which can be
placed into the subpart? This is what I have so far:
temp.PAGENAME = TEXT
temp.PAGENAME.field = title
subparts.PORTBACK = TEXT
subparts.PORTBACK.value = fileadmin/storm/images/
subparts.PORTBACK < temp.PAGENAME
subparts.PORTBACK.value < .png
Thanks in advance!
-Scott.
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/
More information about the TYPO3-english
mailing list