ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to combine 2 variables in EE

July 10, 2007 4:52am

Subscribe [2]
  • #1 / Jul 10, 2007 4:52am

    rmcoolen

    2 posts

    Hello,

    Anyone who can help me with the following:
    I’m trying to combine 2 variables. I have one declared in de top of the template containing the path to a picture directory and another containing the name op the jpg file.
    At display time I want to dinamycally combine the to in order to display the correct picture as named in the record. e.g.:
    <img src=”{my_pic}{CD-Hoesje}” alt=”” width=“120” height=“120” />
    where my_pics is the path and CD-Hoesje is the name of the jpg file.
    But this somehow doesn’t work. Any idea’s?

    Regards, René

  • #2 / Jul 10, 2007 5:12am

    Ingmar

    29245 posts

    Show us a link to the site in question. Generally, that should work fine.

  • #3 / Jul 10, 2007 5:21am

    rmcoolen

    2 posts

    Hi,

    Thanks for your response, but I meanwhile found the problem. Picturename contained capitals and the fieldname did not. 😊

    Regards, René.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases