Skip to main content
Tweeted twitter.com/#!/StackTridion/status/595256334242709505
improved formatting
Source Link
Siva Charan
  • 4.3k
  • 1
  • 20
  • 36

On my current project we need to implement custom TCDLTCDL tag. The purpose of the tag is to recognize the device that is used (mobile, tablet, desktop) and to return the content for that device. We implemented the com.tridion.tcdl.TagRenderercom.tridion.tcdl.TagRenderer interface in our code but I cannot see any method that will give me current request so I can check the device that is used.

Is this solution even possible with TCDLTCDL tags?

On my current project we need to implement custom TCDL tag. The purpose of the tag is to recognize the device that is used (mobile, tablet, desktop) and to return the content for that device. We implemented the com.tridion.tcdl.TagRenderer interface in our code but I cannot see any method that will give me current request so I can check the device that is used.

Is this solution even possible with TCDL tags?

On my current project we need to implement custom TCDL tag. The purpose of the tag is to recognize the device that is used (mobile, tablet, desktop) and to return the content for that device. We implemented the com.tridion.tcdl.TagRenderer interface in our code but I cannot see any method that will give me current request so I can check the device that is used.

Is this solution even possible with TCDL tags?

Source Link

Custom TCDL tag

On my current project we need to implement custom TCDL tag. The purpose of the tag is to recognize the device that is used (mobile, tablet, desktop) and to return the content for that device. We implemented the com.tridion.tcdl.TagRenderer interface in our code but I cannot see any method that will give me current request so I can check the device that is used.

Is this solution even possible with TCDL tags?