[Zope] dtml-if question
Arno Gross
arno.gross@consotec.de
Tue, 12 Jun 2001 12:25:29 -0100
I am not sure if I understand your question.
But let's assume that you have an image called 'school.jpg'
then you can write:
<img src="<dtml-var subject>".jpg>
Or an other solution could be:
- Have a folder with images and iterate over this folder
and try to find an image with id 'school'.
- If you cannot find, take a default image
Best regards
Arno
On Tue, 12 Jun 2001, you wrote:
> Hi all,
>
> I have a question about The dtml-if.
>
> I would like to call an image depending on the url I am at.
>
> Lets say Somsone searches for an article on school I have the folowing URL:
>
> http://codenamefuture.hurrah.com/nieuws/zoek?SearchableText=&Subject%3Atoken
> s=school
>
> If I wnated to write a dtml-method telling it should load the school image
> in stead of the standard image how would I call that image?
>
> Hope someone can help me on this.
>
> James
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
-------------------------------------------------------