2

In the upgraded SDL Web 8.5 system.

One of the DCP template output has component link tag. which is not getting resolved in the web app.

<a tridion:href="@@Component.ID@@">
@@Component.Fields.Heading@@
</a>

We added this below config tags in the deployer service tcdl-config.xml also changed the DCP template output type to REL and republished the DCP components then tested it’s working fine it’s resolving the links for DCP component.

<TCDLEngine>
   <Properties> 
    <Property Name=”tcdl.jsp.style” Value=”tags” />
    <Property Name="tcdl.target.language" Value="jsp" />
    <Property Name="tcdl.target.language" Value="rel"/>
   </Properties>
</TCDLEngine>

but, We noticed that now republished JSP pages on file system RTF field component links are not working.

We can see published JSP pages link tags are getting written as <tcdl:Link instead of <tridion:ComponentLink tag.

And then we removed the REL tag (<Property Name="tcdl.target.language" Value="rel"/>) in deployer service tcdl-config – restarted, and republished the JSP page and tested JSP RTF field component links are working fine and noticed that published JSP page on filesystem has <tridion:ComponentLink tags.

The question is: Can tcdl tags be expanded to rel ánd jsp in one environment, depending on the targeted object. So

  • file based jsp - expand tcdl to jsp tags
  • Broker based rel dcps - expand tcdl to rel tags

Note:

Pages – stored in the filesystem

DCP – stored in DB

Web app Java jsp uses CIL.

Did anyone face this issue?

2

Finally, Found the culprit it's a config issue values are not correct:

Before:

<Property Name="tcdl.target.language" Value="jsp" />
<Property Name="tcdl.target.language" Value="rel"/>

Correct config:

<Property Name="tcdl.target.language" Value="rel"/>
<Property Name="tcdl.page.target.language" Value="jsp" />

Refer to documentation Enabling publishing of Pages with REL format Dynamic Component Presentation

  • Please accept the link which I have added in my comments as helpful – k951 Jan 11 at 4:38
  • I did upvote to your link, which is helpful – Velmurugan Jan 12 at 16:40

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.