I have the following code in my DW TBB (partially shown here):
<!-- TemplateBeginIf cond="Component.Schema.Name='EmployeeTestimonial'" --> <li> <a tridion:href="@@Component.ID@@" class="puff" > <div class="puffimg"> @@RenderComponentPresentation(Component.Fields.Thumbnail, CTImage)@@ <div class="pufflink" style="right: -47px;"></div> </div> <div class="pufftext"> <span class="type">@@Component.Fields.FirstName@@</span> @@Component.Fields.Office@@.<br/> <div class="years">@@Component.Fields.StartDate@@</div> </div> </a> </li> <!-- TemplateEndIf --> <!-- TemplateBeginIf cond="Component.Schema.Name='Office'" --> <div id="solna" class="office clearfix"> <div class="officeimg"> @@RenderComponentPresentation(Component.Fields.Image,CTImage)@@ </div> <div class="officetext"> <div class="officesquare" id=""></div> <p> @@Header@@ <br /> @@Address@@ <!-- TemplateBeginIf cond="Component.Fields.Phone != ''" --> <br /> Tel. @@Phone@@ <!-- TemplateEndIf --> </p> </div> </div> <!-- TemplateEndIf -->
This template is used by a DCP with output format HTML fragment and will be used to show content teaser (Blurbs) of components that are based on different Schemas.
Further, I have another component that will display on the content delivery side a list of those Blurbs DCP.
The solution works well if I don't use
<a tridion:href= ... >. However, it will not display any output for those components which template code uses dynamic links as
tridion:href. The dynamic links are resolved correctly when running Template Builder but not when retrieving from the Content delivery.
When I test to change the output format of the DCP to REL then it starts to work properly. BUT, I get confused beacause the SDL documentation states regarding the output format for DCPs:
REL (Render Engine Language)... Only select this value if you publish to a Publication Target with its Target Language also set to REL. (See http://goo.gl/LCUlKK - Login required)
The Target language of our Publication is JSP so my question is -- Why does a DCP that uses REL as output format works well on a target publication language JSP?
In our cd_storage_conf.xml (on target publication and upload-folder) we have the following line:
<Item typeMapping="ComponentPresentation" storageId="defaultDataFile" itemExtension=".Jsp">
The embedded component that I use to list the DCP Blurbs uses the Content Broker Query API and Dynamic Content APIs to add component presentations.
Thank you in advance for any answer that helps me to better understand the actual relation between output format REL and the target language on publication.
This is the first time I send a question to the StackExchange community. If you need more details I'll try to give them, just ask :) Cheers