Image Resolution for Input Buttons with SDL Tridion Compound Templates

I have the following code example output from the Dreamweaver Template Building Block (DWT TBB) in SDL Tridion 2011:

<input type="image" src="tcm:33-1995" name="submit"/>
<img src="tcm:33-1995"/>

After the DWT TBB, we use the default completion actions in the component component template to resolve paths, etc. When I look at this in Template Builder, we see that the SRC attribute is enabled in the IMG tag, but the INPUT tag is ignored.

Is there a way to force TBB to enable INPUT tags as well as IMG tags by default?

+5
source share
2 answers

If I put the following in DWT:

 
<input type="image" src="tcm:1-90" name="submit"/>
<img src="tcm:1-90" />

And then put this DWT in the page template as follows:

  • DWT
  • Publishing binary files in a package
  • Allow Links

In the end, I get this output element:

<input src="http://localhost/Preview/.../img.jpg"  type="image" name="submit"/>
<img src="http://localhost/Preview/.../img.jpg"  />

, ?

DWT :

<input type="image" src="tcm:1-90" tridion:href="tcm:1-90" 
       tridion:type="Multimedia" tridion:targetattribute="src" name="submit"/>
<img src="tcm:1-90" tridion:href="tcm:1-90" tridion:type="Multimedia" 
     tridion:targetattribute="src" />

TBB , Link Resolver I, .

+5

URL-

<input type="image" src= "url(tcm:33-1995)" name="submit"/> 

, .

0

All Articles