image border in Zope 2.7.x
Hi, this is a rather trivial problem: I updated a Server from 2.6.2 to 2.7.4 I noticed that all images used within link tags are shown with a border if <a href="#"><dtml-var my_image></a> is used (yes, I know: use PT ... it's not my code) unless I set a style (border-width:0). 2.6.x did not show this border. Is there a simple way to change Zope's way to render image-objects globally? I dont' want to change the dtml-code of other people's if possible. Regards Chris
Chris wrote:
Is there a simple way to change Zope's way to render image-objects globally? I dont' want to change the dtml-code of other people's if possible.
Don't change Zope's rendering, just put: img { border: none; } ...in your css file. cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Hi Chris, Chris Withers schrieb:
Is there a simple way to change Zope's way to render image-objects globally? I dont' want to change the dtml-code of other people's
Don't change Zope's rendering, just put:
img { border: none; }
...in your css file.
I 've done that for my Zope stuff. But as I said: there are other users with Zope projects, which I provide the the Zope environment. I have no idea what the do nor do I want to interfere with there code. So instead of telling everybody what to change, I'd rather be nice and do that for them in a central place. Maybe someone had the same problem and knows a quick hack. If not ... o well ;-) Regards Chris
Chris wrote:
I 've done that for my Zope stuff. But as I said: there are other users with Zope projects, which I provide the the Zope environment. I have no idea what the do nor do I want to interfere with there code.
So instead of telling everybody what to change, I'd rather be nice and do that for them in a central place. Maybe someone had the same problem and knows a quick hack. If not ... o well ;-)
Look for "def tag(" in lib/python/OFS/Image.py cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (2)
-
Chris -
Chris Withers