Status: offline

TennSeven

Forum User
Junior
Registered: 04/26/09
Posts: 16
Can I concatenate a variable and text if (for instance) I want my theme to be able to find a logo I am using regardless of what the geeklog path is?

As an example, I would like to change the header.thtml file from:

<img src="{site_logo}" width="151" height="56" alt="{site_name}"{xhtml}>

To something like:

<img src="{layout_url}/images/myLogo.png" width="151" height="56" alt="{site_name}"{xhtml}> (obviously this code doesn't work)

So that I could use my own logo file, and the theme would still find that file regardless of the absolute path of whatever geeklog installation it was being used in.

Is this possible?

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Hello TennSeven,

Text Formatted Code
<img src="{layout_url}/images/myLogo.png" width="151" height="56" alt="{site_name}"{xhtml}>


This code is working if myLogo.png exist under your_theme/images folder

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS

TennSeven

Anonymous
Thank you! I tried that earlier and it didn't work; I must have had an error somewhere else in the line.