Skip to main content
highlighted the word where better and use single quotes for values inside linkAttributes
Source Link
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

Your template code is creating an ASP component link, where in SDL Tridion 2009 (and up) we normally use TCDL and let the Deployer transform that into the actual code which is needed (based on what is in the cd_deployer_conf.xml file).

If you could change your implementation to replace the word wherewhere in your text with:

<tcdl:Link type="Component" 
           origin="tcm:41-103594-64" 
           destination="tcm:41-87758" 
           templateURI="tcm:0-0-0" 
           linkAttributes="title=&#34;alinkAttributes="title='a Disclaimer&#34;"Disclaimer'" 
           textOnFail="True" 
           addAnchor="False">where</tcdl:Link>

Then the Deployer will treat it like all other dynamic Component links and generate the following for you on your page:

<tridion:ComponentLink runat="server" 
                       ComponentURI="tcm:41-87758" 
                       LinkText="where" 
                       LinkAttributes="title=&#34;a Disclaimer&#34;" 
                       PageURI="tcm:41-103594-64" 
                       TemplateURI="tcm:0-0-0" 
                       AddAnchor="false" 
                       TextOnFail="true" />

Which is the call to the ASP.NET dynamic linking control.

update

If you are using Modular Templating with a Dreamweaver (DWT) Template Building Block, then you could also change the word wherewhere with:

<a tridion:href="tcm:41-87758" title="a Disclaimer">where</a>

If you do this before the Link resolver TBB (normally in the Default Finish Actions), then the TCDL and eventually the dynamic link control, will also be generated for you.

Your template code is creating an ASP component link, where in SDL Tridion 2009 (and up) we normally use TCDL and let the Deployer transform that into the actual code which is needed (based on what is in the cd_deployer_conf.xml file).

If you could change your implementation to replace the word where with:

<tcdl:Link type="Component" 
           origin="tcm:41-103594-64" 
           destination="tcm:41-87758" 
           templateURI="tcm:0-0-0" 
           linkAttributes="title=&#34;a Disclaimer&#34;" 
           textOnFail="True" 
           addAnchor="False">where</tcdl:Link>

Then the Deployer will treat it like all other dynamic Component links and generate the following for you on your page:

<tridion:ComponentLink runat="server" 
                       ComponentURI="tcm:41-87758" 
                       LinkText="where" 
                       LinkAttributes="title=&#34;a Disclaimer&#34;" 
                       PageURI="tcm:41-103594-64" 
                       TemplateURI="tcm:0-0-0" 
                       AddAnchor="false" 
                       TextOnFail="true" />

Which is the call to the ASP.NET dynamic linking control.

update

If you are using Modular Templating with a Dreamweaver (DWT) Template Building Block, then you could also change the word where with:

<a tridion:href="tcm:41-87758" title="a Disclaimer">where</a>

If you do this before the Link resolver TBB (normally in the Default Finish Actions), then the TCDL and eventually the dynamic link control, will also be generated for you.

Your template code is creating an ASP component link, where in SDL Tridion 2009 (and up) we normally use TCDL and let the Deployer transform that into the actual code which is needed (based on what is in the cd_deployer_conf.xml file).

If you could change your implementation to replace the word where in your text with:

<tcdl:Link type="Component" origin="tcm:41-103594-64" destination="tcm:41-87758" 
           templateURI="tcm:0-0-0" linkAttributes="title='a Disclaimer'" 
           textOnFail="True" addAnchor="False">where</tcdl:Link>

Then the Deployer will treat it like all other dynamic Component links and generate the following for you on your page:

<tridion:ComponentLink runat="server" ComponentURI="tcm:41-87758" LinkText="where" 
                       LinkAttributes="title=&#34;a Disclaimer&#34;" 
                       PageURI="tcm:41-103594-64" TemplateURI="tcm:0-0-0" 
                       AddAnchor="false" TextOnFail="true" />

Which is the call to the ASP.NET dynamic linking control.

update

If you are using Modular Templating with a Dreamweaver (DWT) Template Building Block, then you could also change the word where with:

<a tridion:href="tcm:41-87758" title="a Disclaimer">where</a>

If you do this before the Link resolver TBB (normally in the Default Finish Actions), then the TCDL and eventually the dynamic link control, will also be generated for you.

added TCDL syntax and a second option
Source Link
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

Your template code is creating an ASP component link, where in SDL Tridion 2009 (and up) we normally use TCDL and let the Deployer transform that into the actual code which is needed (based on what is in the cd_deployer_conf.xml file).

If you could change your implementation to replace the word where with:

<tcdl:Link type="Component" 
           origin="tcm:41-103594-64" 
           destination="tcm:41-87758" 
           templateURI="tcm:0-0-0" 
           linkAttributes="title=&#34;a Disclaimer&#34;" 
           textOnFail="True" 
           addAnchor="False">where</tcdl:Link>

Then the Deployer will treat it like all other dynamic Component links and generate the following for you on your page:

<tridion:ComponentLink runat="server" 
                       ComponentURI="tcm:41-87758" 
                       LinkText="where" 
                       LinkAttributes="title=&#34;a Disclaimer&#34;" 
                       PageURI="tcm:41-103594-64" 
                       TemplateURI="tcm:0-0-0" 
                       AddAnchor="false" 
                       TextOnFail="true" />

Which is the call to the ASP.NET dynamic linking control.

update

If you are using Modular Templating with a Dreamweaver (DWT) Template Building Block, then you could also change the word where with:

<a tridion:href="tcm:41-87758" title="a Disclaimer">where</a>

If you do this before the Link resolver TBB (normally in the Default Finish Actions), then the TCDL and eventually the dynamic link control, will also be generated for you.

Your template code is creating an ASP component link, where in SDL Tridion 2009 (and up) we normally use TCDL and let the Deployer transform that into the actual code which is needed (based on what is in the cd_deployer_conf.xml file.

If you could change your implementation to replace the word where with:

<tcdl:Link type="Component" 
           origin="tcm:41-103594-64" 
           destination="tcm:41-87758" 
           templateURI="tcm:0-0-0" 
           linkAttributes="title=&#34;a Disclaimer&#34;" 
           textOnFail="True" 
           addAnchor="False">where</tcdl:Link>

Then the Deployer will treat it like all other dynamic Component links and generate the following for you on your page:

<tridion:ComponentLink runat="server" 
                       ComponentURI="tcm:41-87758" 
                       LinkText="where" 
                       LinkAttributes="title=&#34;a Disclaimer&#34;" 
                       PageURI="tcm:41-103594-64" 
                       TemplateURI="tcm:0-0-0" 
                       AddAnchor="false" 
                       TextOnFail="true" />

Which is the call to the ASP.NET dynamic linking control.

Your template code is creating an ASP component link, where in SDL Tridion 2009 (and up) we normally use TCDL and let the Deployer transform that into the actual code which is needed (based on what is in the cd_deployer_conf.xml file).

If you could change your implementation to replace the word where with:

<tcdl:Link type="Component" 
           origin="tcm:41-103594-64" 
           destination="tcm:41-87758" 
           templateURI="tcm:0-0-0" 
           linkAttributes="title=&#34;a Disclaimer&#34;" 
           textOnFail="True" 
           addAnchor="False">where</tcdl:Link>

Then the Deployer will treat it like all other dynamic Component links and generate the following for you on your page:

<tridion:ComponentLink runat="server" 
                       ComponentURI="tcm:41-87758" 
                       LinkText="where" 
                       LinkAttributes="title=&#34;a Disclaimer&#34;" 
                       PageURI="tcm:41-103594-64" 
                       TemplateURI="tcm:0-0-0" 
                       AddAnchor="false" 
                       TextOnFail="true" />

Which is the call to the ASP.NET dynamic linking control.

update

If you are using Modular Templating with a Dreamweaver (DWT) Template Building Block, then you could also change the word where with:

<a tridion:href="tcm:41-87758" title="a Disclaimer">where</a>

If you do this before the Link resolver TBB (normally in the Default Finish Actions), then the TCDL and eventually the dynamic link control, will also be generated for you.

added TCDL syntax
Source Link
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

Your template code is creating an ASP component link, where in SDL Tridion 2009 (and up) we normally use TCDL and let the Deployer transform that into the actual code which is needed (based on what is in the cd_deployer_conf.xml file.

If you could change your implementation to replace the word where with:

<tcdl:Link type="Component" 
           origin="tcm:41-103594-64" 
           destination="tcm:41-87758" 
           templateURI="tcm:0-0-0" 
           linkAttributes="title=&#34;a Disclaimer&#34;" 
           textOnFail="True" 
           addAnchor="False">where</tcdl:Link>

Then the Deployer will treat it like all other dynamic Component links and generate the following for you on your page:

<tridion:ComponentLink runat="server" 
                       ComponentURI="tcm:41-87758" 
                       LinkText="where" 
                       LinkAttributes="title=&#34;a Disclaimer&#34;" 
                       PageURI="tcm:41-103594-64" 
                       TemplateURI="tcm:0-0-0" 
                       AddAnchor="false" 
                       TextOnFail="true" />

ThenWhich is the Deployer should handle it like allcall to the otherASP.NET dynamic Component linkslinking control.

Your template code is creating an ASP component link, where in SDL Tridion 2009 (and up) we normally use TCDL and let the Deployer transform that into the actual code which is needed (based on what is in the cd_deployer_conf.xml file.

If you could change your implementation to replace the word where with:

<tridion:ComponentLink runat="server" 
    ComponentURI="tcm:41-87758" 
    LinkText="where" 
    LinkAttributes="title=&#34;a Disclaimer&#34;" 
    PageURI="tcm:41-103594-64" TemplateURI="tcm:0-0-0" AddAnchor="false" 
    TextOnFail="true"/>

Then the Deployer should handle it like all the other dynamic Component links.

Your template code is creating an ASP component link, where in SDL Tridion 2009 (and up) we normally use TCDL and let the Deployer transform that into the actual code which is needed (based on what is in the cd_deployer_conf.xml file.

If you could change your implementation to replace the word where with:

<tcdl:Link type="Component" 
           origin="tcm:41-103594-64" 
           destination="tcm:41-87758" 
           templateURI="tcm:0-0-0" 
           linkAttributes="title=&#34;a Disclaimer&#34;" 
           textOnFail="True" 
           addAnchor="False">where</tcdl:Link>

Then the Deployer will treat it like all other dynamic Component links and generate the following for you on your page:

<tridion:ComponentLink runat="server" 
                       ComponentURI="tcm:41-87758" 
                       LinkText="where" 
                       LinkAttributes="title=&#34;a Disclaimer&#34;" 
                       PageURI="tcm:41-103594-64" 
                       TemplateURI="tcm:0-0-0" 
                       AddAnchor="false" 
                       TextOnFail="true" />

Which is the call to the ASP.NET dynamic linking control.

Source Link
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90
Loading