Pius Graber <pius.graber <at> ceweb.ch> writes:

> What I want to do is to display an image whose name is depending on a database
> record field value. So I was looking for something like an image-widget:
> ...
> <ft:widget id="img"/>   <!-- this should diplay my image -->

This does not make much sense except you want to put the image directly into the
page as base64 encoded string. Otherwise you only need to put the id of the
image into your form model, bring it somehow into your page

<ft:widget id="img">
  <fi:styling type="image"/>
</ft:widget>

so that you can react on it in your XSLT

<xsl:template match="fi:widget[fi:styling/@type='image']">
  <img src="[EMAIL PROTECTED]"/>
</xsl:template>

and create a pipeline in your sitemap matching on it

<map:match pattern="dbimage">
  <map:read type="database">
    <!-- get the image from the database by using the request parameter "id" -->
  </map:read>
</map:match>

My CForms knowledge is a bit outdated, but the above should give you the idea.

A special image widget is IMO not necessary.

Regards
Joerg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to