[Typo3] String concatenation SOLUTION!

Scotty C superscotty19 at yahoo.com
Tue Oct 11 05:49:28 CEST 2005


Hello again!

As usual, just when I post a message, I figure out my
problem (and the solution). So, I'd like to share with
everyone how the concatenation is done:

First of all, I found the solution at an old mailing
list post:
http://lists.netfielders.de/pipermail/typo3-english/2005-September/012518.html

That said, my solution (which involves subparts
instead of images) is:

subparts.PORTBACK = COA
subparts.PORTBACK {
    10 = TEXT
    10.dataWrap = fileadmin/images/{field:title}.png
}

That's it! It's so easy!


.... I LOVE TYPO3!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

*merrily dancing and singing*

-Scott.




--- Scotty C <superscotty19 at yahoo.com> wrote:

> Whoops - I made a typo! hahahaha
> 
> --- Scotty C <superscotty19 at yahoo.com> wrote:
> 
> > 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/
> > _______________________________________________
> > Typo3-english mailing list
> > Typo3-english at lists.netfielders.de
> >
>
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> > 
> 
> 
> 
> 		
> __________________________________ 
> Start your day with Yahoo! - Make it your home page!
> 
> http://www.yahoo.com/r/hs
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
>
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 



		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/



More information about the TYPO3-english mailing list