I have the following sample code output from a 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 are using the Default Finish Actions in the Compound Component Template to resolve the paths etc. When I view this in Template Builder we see that the IMG tag is resolved SRC attribute, but the INPUT tag is ignored.
Is there a way to make the default TBBs resolve INPUT tags as well as IMG tags?
If I put the following in a DWT:
<input type="image" src="tcm:1-90" name="submit"/>
<img src="tcm:1-90" />
And then put that DWT in a Page Template like this:
I end up with this Output item in the end:
<input src="http://localhost/Preview/.../img.jpg" type="image" name="submit"/>
<img src="http://localhost/Preview/.../img.jpg" />
So how is your output different?
After the DWT is executed, this is the Output item:
<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" />
The Publish Binaries in Package TBB doesn't modify the Output item, so the Link Resolver changes this to the final Output I showed above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With