Jump to content

I have a problem and need help please!


Guest pghtech
 Share

Recommended Posts

Guest pghtech

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?

Link to comment
Share on other sites

Guest pghtech

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'
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...