http://old.zope.org/Members/peterbe/DTML2ZPT/index_html?pp=1 section <http://old.zope.org/Members/peterbe/DTML2ZPT/examples/example15/view>Quickly displaying images
Delivered-To: c.nitu@finsiel.ro Date: Wed, 10 Dec 2003 15:19:32 +0100 From: fowlertrainer@anonym.hu X-Mailer: The Bat! (v2.00.6) CD5BF9353B3B7091 To: zope@zope.org X-Spam-Status: OK (zopelist 0.000) Subject: [Zope] Images Path X-BeenThere: zope@zope.org X-Mailman-Version: 2.1.4a0 Reply-To: fowlertrainer@anonym.hu List-Id: Users of the Z Object Publishing Environment <zope.zope.org> List-Unsubscribe: <http://mail.zope.org/mailman/listinfo/zope>, <mailto:zope-request@zope.org?subject=unsubscribe> List-Archive: <http://mail.zope.org/pipermail/zope> List-Post: <mailto:zope@zope.org> List-Help: <mailto:zope-request@zope.org?subject=help> List-Subscribe: <http://mail.zope.org/mailman/listinfo/zope>, <mailto:zope-request@zope.org?subject=subscribe> Sender: zope-bounces@zope.org
Hello zope,
I want to use images in Zope Server, but it is don't succeeds. The page is ZPT kind:
<td><img src="../Images/ULeft.jpg" width="143" height="73"></td>
<td width="32" height="50" background="../Images/TSILeft1.jpg"><img src="1PIX.gif" width="32"></td>
This file is placed in SUBDIR1 (RootFolder/SubDir1). The Images are in Root Folder. (RootFolder/Images)
This filed is called by the root folder:
<p tal:replace="structure SubDir1/mainzpt"/>
So where I must load the images ?
Thanx.
-- Best regards, fowlertrainer mailto:fowlertrainer@anonym.hu
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Hello Cornel, Wednesday, December 10, 2003, 3:20:34 PM, you wrote: It is Ok, but how I can change the parameters of image ? My image size is W/H, but I want to display as W1/H1. How can I do it with zope ??? Only way I see to parse the image source with python script, and replace the width/height tags. Have any a simply solution ??? Thanx. CN> http://old.zope.org/Members/peterbe/DTML2ZPT/index_html?pp=1 CN> sectionQuickly CN> displaying images CN> Hello zope, CN> I want to use images in Zope Server, but it is don't CN> succeeds. CN> The page is ZPT kind: CN> CN> <td><img src="../Images/ULeft.jpg" CN> width="143" height="73"></td> CN> <td width="32" height="50" CN> background="../Images/TSILeft1.jpg"><img CN> src="1PIX.gif" width="32"></td> CN> This file is placed in SUBDIR1 (RootFolder/SubDir1). CN> The Images are in Root Folder. (RootFolder/Images) CN> This filed is called by the root folder: CN> <p tal:replace="structure SubDir1/mainzpt"/>> CN> So where I must load the images ? CN> Thanx. -- Best regards, fowlertrainer mailto:fowlertrainer@anonym.hu
how about: <img tal:replace="structure python:image1.tag(width=W, height=H, alt='image1 description' )/> you still have to do joggling for your odd image folder path traversal requirements.... On Wednesday, December 10, 2003, at 09:48 AM, fowlertrainer@anonym.hu wrote:
Hello Cornel,
Wednesday, December 10, 2003, 3:20:34 PM, you wrote:
It is Ok, but how I can change the parameters of image ?
My image size is W/H, but I want to display as W1/H1.
How can I do it with zope ???
Only way I see to parse the image source with python script, and replace the width/height tags.
Have any a simply solution ???
Thanx.
CN> http://old.zope.org/Members/peterbe/DTML2ZPT/index_html?pp=1 CN> sectionQuickly CN> displaying images
CN> Hello zope,
CN> I want to use images in Zope Server, but it is don't CN> succeeds. CN> The page is ZPT kind: CN> CN> <td><img src="../Images/ULeft.jpg" CN> width="143" height="73"></td>
CN> <td width="32" height="50" CN> background="../Images/TSILeft1.jpg"><img CN> src="1PIX.gif" width="32"></td>
CN> This file is placed in SUBDIR1 (RootFolder/SubDir1). CN> The Images are in Root Folder. (RootFolder/Images)
CN> This filed is called by the root folder:
CN> <p tal:replace="structure SubDir1/mainzpt"/>>
CN> So where I must load the images ?
CN> Thanx.
-- Best regards, fowlertrainer mailto:fowlertrainer@anonym.hu
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Cornel Nitu -
fowlertrainer@anonym.hu -
Marc Lindahl