PDA

View Full Version : Image Question


origami
10-28-2006, 02:01 AM
Hi,

I want to know whether there is any access to the tag (e.g {IMAGE}) in the .tpl file or not. I want to change the articles_Short.tpl such that if the Image is empty so don't show anything and if so show it.

Thanks

Micha
10-30-2006, 11:29 AM
Not quite sure I understand, If there isn't an image related to article the image wont show up.

origami
11-01-2006, 07:12 PM
But I put the image in a div box with borders, so if there is no image it shows me a blank square with black borders. What can I do? I don't want to remove the borders.

And is the template-engine smarty? how can I inlude file in the templates file?

{include file="new.tpl";} does not work

Micha
11-02-2006, 10:38 AM
When there isn't an abstract image related to article the script loads spacer.gif, so if you add a border to an image the border will show on spacer.gif also.
If you added a div with fixed width/height and with border this class will also affect spacer.gif.
There is no solution to this because it would require a lot of code hack, but we will try to make a simple one soon.

The template engine is not smarty and you can't include files in templates.