Skip to main content
improved formatting for better readability and made some grammar fixes
Source Link
Glenn Stevens
  • 1.9k
  • 2
  • 18
  • 33

I have belowtried the following code in thea DWT and the internal link (tridion:href="@@Links0href= "@@Links0.Fields.link@@") does not get resolved.

<a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', 
   '@@Links0.Metadata.ga_action@@', '@@RenderComponentPresentation
   (Links0.ID,RemoveSpecialCharactersFromTitle)@@']);"
    tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

When iI place this internal link attribute(tridion:href="@@Links0.Fields.link@@") before the onclick  , the link get resolved successfully. But page get failedfails at the time of deployment and throw belowwith the following error -:

So as iI found that there is some issue with @@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@@@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@ passed as the parameter in the google analyticsGoogle Analytics.

There wereare some project limitationproject limitations, so we are rendering the ComponentPresentationComponent Presentation inside the google analyticsGoogle Analytics in above mentionedthe way mentioned above. When i

When I place the text returnreturned by this componentComponent Presentation, for example, "This is a sample product" it works correctly.

means in blow caseBy this I mean the following internal link get resolved successfully.:

<a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', 
   '@@Links0.Metadata.ga_action@@', 'This is sample product']);"
   tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

iI tried to set the output of this component presentationComponent Presentation in the RenderContextVariableRenderContextVariable

@@SetRenderContextVariable("linkTitle_withoutSC", 
  RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle))@@

andAnd also tried then belowthe following way -:

  <a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', 
      '@@Links0.Metadata.ga_action@@', '@@RenderContextVariable.linkTitle_withoutSC@@']);"
       tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

But this workaround is not working since we can not set and use RenderContextVariable in thethe same DWT,DWT. Please validatelet me hereknow if iI am wrong here.

Now i amI have been unable to find anyotherany other way to deal with the internal link in this casemy situation.

Could somebody help me on this.?

Point 1- Reason to use @@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@@@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@ inside the Google Analytics

Component for this presentation is nested linked component so iI can perform my task though a C# TBB or fragment having logic same to "RemoveSpecialCharactersFromTitle"RemoveSpecialCharactersFromTitle so I use RenderComponentPresentationRenderComponentPresentation here.

Point 2- I am trying to set and use RenderContextVariableRenderContextVariable in the same DWT of a CT sothatso that it return me the string ouput[Title]output[Title] .By this way iI can avoid the conflict of "tcdl:ComponentPresentation"tcdl:ComponentPresentation and "tcdl:Link"tcdl:Link tags during the deployment phase.

I have below code in the DWT and the internal link (tridion:href="@@Links0.Fields.link@@") does not get resolved.

<a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', '@@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

When i place this internal link attribute(tridion:href="@@Links0.Fields.link@@") before the onclick  , link get resolved successfully. But page get failed at the time of deployment and throw below error -

So as i found that there is some issue with @@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@ passed as the parameter in the google analytics.

There were some project limitation so we are rendering the ComponentPresentation inside the google analytics in above mentioned way. When i place the text return by this component Presentation for example "This is sample product" it works correctly.

means in blow case internal link get resolved successfully.

<a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', 'This is sample product']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

i tried to set the output of this component presentation in the RenderContextVariable

@@SetRenderContextVariable("linkTitle_withoutSC",RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle))@@

and tried then below way -

  <a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', '@@RenderContextVariable.linkTitle_withoutSC@@']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

But this workaround is not working since we can not set and use RenderContextVariable in the same DWT, Please validate me here if i am wrong.

Now i am unable to find anyother way to deal with the internal link in this case.

Could somebody help me on this.

Point 1- Reason to use @@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@ inside the Google Analytics

Component for this presentation is nested linked component so i can perform my task though a C# TBB or fragment having logic same to "RemoveSpecialCharactersFromTitle" so I use RenderComponentPresentation here.

Point 2- I am trying to set and use RenderContextVariable in the same DWT of a CT sothat it return me the string ouput[Title] .By this way i can avoid the conflict of "tcdl:ComponentPresentation" and "tcdl:Link" tags during the deployment phase.

I have tried the following code in a DWT and the internal link (tridion:href= "@@Links0.Fields.link@@") does not get resolved.

<a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', 
   '@@Links0.Metadata.ga_action@@', '@@RenderComponentPresentation
   (Links0.ID,RemoveSpecialCharactersFromTitle)@@']);"
    tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

When I place this internal link attribute(tridion:href="@@Links0.Fields.link@@") before the onclick, the link get resolved successfully. But page fails at the time of deployment with the following error:

So I found that there is some issue with @@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@ passed as the parameter in Google Analytics.

There are some project limitations, so we are rendering the Component Presentation inside the Google Analytics in the way mentioned above.

When I place the text returned by this Component Presentation, for example, "This is a sample product" it works correctly.

By this I mean the following internal link get resolved successfully:

<a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', 
   '@@Links0.Metadata.ga_action@@', 'This is sample product']);"
   tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

I tried to set the output of this Component Presentation in the RenderContextVariable

@@SetRenderContextVariable("linkTitle_withoutSC", 
  RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle))@@

And also tried the following way:

  <a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', 
      '@@Links0.Metadata.ga_action@@', '@@RenderContextVariable.linkTitle_withoutSC@@']);"
       tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

But this workaround is not working since we can not set and use RenderContextVariable in the same DWT. Please let me know if I am wrong here.

Now I have been unable to find any other way to deal with the internal link in my situation.

Could somebody help me on this?

Point 1- Reason to use @@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@ inside the Google Analytics

Component for this presentation is nested linked component so I can perform my task though a C# TBB or fragment having logic same to RemoveSpecialCharactersFromTitle so I use RenderComponentPresentation here.

Point 2- I am trying to set and use RenderContextVariable in the same DWT of a CT so that it return me the string output[Title] .By this way I can avoid the conflict of tcdl:ComponentPresentation and tcdl:Link tags during the deployment phase.

Tweeted twitter.com/#!/StackTridion/status/393400877937348608
added 663 characters in body
Source Link
user584
  • 1.1k
  • 5
  • 10

I have below code in the DWT and the internal link (tridion:href="@@Links0.Fields.link@@") does not get resolved.

<a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', '@@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

When i place this internal link attribute(tridion:href="@@Links0.Fields.link@@") before the onclick , link get resolved successfully. But page get failed at the time of deployment and throw below error -

Closing Tag tcdl:ComponentPresentation does not match tcdl:Link Stack: TAG: (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.DefaultTagHandler TAG:ComponentPresentation (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.ComponentPresentationTagHandler TAG:Link (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.LinkTagHandler ------ , Unbalanced tags in TCDL file Closing Tag tcdl:ComponentPresentation does not match tcdl:Link Stack: TAG: (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.DefaultTagHandler TAG:ComponentPresentation (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.ComponentPresentationTagHandler TAG:Link (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.LinkTagHandler

So as i found that there is some issue with @@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@ passed as the parameter in the google analytics.

There were some project limitation so we are rendering the ComponentPresentation inside the google analytics in above mentioned way. When i place the text return by this component Presentation for example "This is sample product" it works correctly.

means in blow case internal link get resolved successfully.

<a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', 'This is sample product']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

i tried to set the output of this component presentation in the RenderContextVariable

@@SetRenderContextVariable("linkTitle_withoutSC",RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle))@@

and tried then below way -

  <a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', '@@RenderContextVariable.linkTitle_withoutSC@@']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

But this workaround is not working since we can not set and use RenderContextVariable in the same DWT, Please validate me here if i am wrong.

Now i am unable to find anyother way to deal with the internal link in this case.

Could somebody help me on this.

EDIT-2 SOME MORE INFORMATION ABOUT THE REQUIREMENT

Point 1- Reason to use @@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@ inside the Google Analytics

Component for this presentation is nested linked component so i can perform my task though a C# TBB or fragment having logic same to "RemoveSpecialCharactersFromTitle" so I use RenderComponentPresentation here.

Point 2- I am trying to set and use RenderContextVariable in the same DWT of a CT sothat it return me the string ouput[Title] .By this way i can avoid the conflict of "tcdl:ComponentPresentation" and "tcdl:Link" tags during the deployment phase.

I have below code in the DWT and the internal link (tridion:href="@@Links0.Fields.link@@") does not get resolved.

<a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', '@@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

When i place this internal link attribute(tridion:href="@@Links0.Fields.link@@") before the onclick , link get resolved successfully. But page get failed at the time of deployment and throw below error -

Closing Tag tcdl:ComponentPresentation does not match tcdl:Link Stack: TAG: (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.DefaultTagHandler TAG:ComponentPresentation (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.ComponentPresentationTagHandler TAG:Link (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.LinkTagHandler ------ , Unbalanced tags in TCDL file Closing Tag tcdl:ComponentPresentation does not match tcdl:Link Stack: TAG: (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.DefaultTagHandler TAG:ComponentPresentation (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.ComponentPresentationTagHandler TAG:Link (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.LinkTagHandler

So as i found that there is some issue with @@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@ passed as the parameter in the google analytics.

There were some project limitation so we are rendering the ComponentPresentation inside the google analytics in above mentioned way. When i place the text return by this component Presentation for example "This is sample product" it works correctly.

means in blow case internal link get resolved successfully.

<a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', 'This is sample product']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

i tried to set the output of this component presentation in the RenderContextVariable

@@SetRenderContextVariable("linkTitle_withoutSC",RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle))@@

and tried then below way -

  <a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', '@@RenderContextVariable.linkTitle_withoutSC@@']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

But this workaround is not working since we can not set and use RenderContextVariable in the same DWT, Please validate me here if i am wrong.

Now i am unable to find anyother way to deal with the internal link in this case.

Could somebody help me on this.

I have below code in the DWT and the internal link (tridion:href="@@Links0.Fields.link@@") does not get resolved.

<a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', '@@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

When i place this internal link attribute(tridion:href="@@Links0.Fields.link@@") before the onclick , link get resolved successfully. But page get failed at the time of deployment and throw below error -

Closing Tag tcdl:ComponentPresentation does not match tcdl:Link Stack: TAG: (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.DefaultTagHandler TAG:ComponentPresentation (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.ComponentPresentationTagHandler TAG:Link (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.LinkTagHandler ------ , Unbalanced tags in TCDL file Closing Tag tcdl:ComponentPresentation does not match tcdl:Link Stack: TAG: (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.DefaultTagHandler TAG:ComponentPresentation (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.ComponentPresentationTagHandler TAG:Link (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.LinkTagHandler

So as i found that there is some issue with @@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@ passed as the parameter in the google analytics.

There were some project limitation so we are rendering the ComponentPresentation inside the google analytics in above mentioned way. When i place the text return by this component Presentation for example "This is sample product" it works correctly.

means in blow case internal link get resolved successfully.

<a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', 'This is sample product']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

i tried to set the output of this component presentation in the RenderContextVariable

@@SetRenderContextVariable("linkTitle_withoutSC",RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle))@@

and tried then below way -

  <a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', '@@RenderContextVariable.linkTitle_withoutSC@@']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

But this workaround is not working since we can not set and use RenderContextVariable in the same DWT, Please validate me here if i am wrong.

Now i am unable to find anyother way to deal with the internal link in this case.

Could somebody help me on this.

EDIT-2 SOME MORE INFORMATION ABOUT THE REQUIREMENT

Point 1- Reason to use @@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@ inside the Google Analytics

Component for this presentation is nested linked component so i can perform my task though a C# TBB or fragment having logic same to "RemoveSpecialCharactersFromTitle" so I use RenderComponentPresentation here.

Point 2- I am trying to set and use RenderContextVariable in the same DWT of a CT sothat it return me the string ouput[Title] .By this way i can avoid the conflict of "tcdl:ComponentPresentation" and "tcdl:Link" tags during the deployment phase.

Source Link
user584
  • 1.1k
  • 5
  • 10

Unable to resolve the internal links along with use of RenderComponentPresentation() in the anchor tag

I have below code in the DWT and the internal link (tridion:href="@@Links0.Fields.link@@") does not get resolved.

<a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', '@@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

When i place this internal link attribute(tridion:href="@@Links0.Fields.link@@") before the onclick , link get resolved successfully. But page get failed at the time of deployment and throw below error -

Closing Tag tcdl:ComponentPresentation does not match tcdl:Link Stack: TAG: (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.DefaultTagHandler TAG:ComponentPresentation (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.ComponentPresentationTagHandler TAG:Link (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.LinkTagHandler ------ , Unbalanced tags in TCDL file Closing Tag tcdl:ComponentPresentation does not match tcdl:Link Stack: TAG: (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.DefaultTagHandler TAG:ComponentPresentation (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.ComponentPresentationTagHandler TAG:Link (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.LinkTagHandler

So as i found that there is some issue with @@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@ passed as the parameter in the google analytics.

There were some project limitation so we are rendering the ComponentPresentation inside the google analytics in above mentioned way. When i place the text return by this component Presentation for example "This is sample product" it works correctly.

means in blow case internal link get resolved successfully.

<a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', 'This is sample product']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

i tried to set the output of this component presentation in the RenderContextVariable

@@SetRenderContextVariable("linkTitle_withoutSC",RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle))@@

and tried then below way -

  <a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', '@@RenderContextVariable.linkTitle_withoutSC@@']);" tridion:href="@@Links0.Fields.link@@"  target="_blank" class="button primary" >

But this workaround is not working since we can not set and use RenderContextVariable in the same DWT, Please validate me here if i am wrong.

Now i am unable to find anyother way to deal with the internal link in this case.

Could somebody help me on this.