Guest pghtech Posted September 4, 2008 Share Posted September 4, 2008 I have the following line of code in my viewCat.tpl file, that basically puts up an image using the name of the category. I have 3 categories, but one of the categories is comprised of two words (therefore there is a space). <div class="txtContentTitle" style="background-image:url(../../../../images/MainContent/section_hdrs/{TXT_CAT_TITLE}.jpg)"></div> The problem is that all the categories WITHOUT a space in the name display the .JPG file without issue. However, even if I save the .JPG file with a space, it still doesn't render. I have tested making the category just one word 'candlerings' vs. 'candle rings', and it works. But as mention, even if I save the file as two words.jpg it still won't display. Can anyone help? Quote Link to comment Share on other sites More sharing options...
burgensteen Posted September 4, 2008 Share Posted September 4, 2008 Try putting 'candle_rings' Quote Link to comment Share on other sites More sharing options...
Guest pghtech Posted September 4, 2008 Share Posted September 4, 2008 Thanks, I tried that just now - with capitals - without Capitals - I think you put the single quotes because i had that in the topic, but it is just "Candle Rings.jpg". But I still tried with single quotes, with double. Any other suggestions? Try putting 'candle_rings' Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.