Browser Detection in Velocity

Browser Detection in Velocity

This question is answered

Is there a way to detect browser type in Velocity?

Verified Answer
  • You always have the option of wrapping your logic in a custom ScriptedContentFragment extension:
     
     
    Patrick Mason
    Development Lead- Extensibility
    o: 214.420.1329
    telligent.com
     
    From: BlippMedia [mailto:bounce-JDRF@communities.telligent.com]
    Sent: Monday, July 23, 2012 12:56 PM
    To: bugsandissues@communities.telligent.com
    Subject: RE: [Bugs and Issues - Telligent Community] Browser Detection in Velocity
     

    Yes Javascript is an option but we need to do some heavy conditional statements that are a bit more secured on server side vs js...

All Replies
  • You can do browser detection using javascript, there is no need for specific velocity code
     
    Patrick Mason
    Development Lead- Extensibility
    o: 214.420.1329
    telligent.com
     
    From: BlippMedia [mailto:bounce-JDRF@communities.telligent.com]
    Sent: Friday, July 20, 2012 12:00 PM
    To: bugsandissues@communities.telligent.com
    Subject: [Bugs and Issues - Telligent Community] Browser Detection in Velocity
     

    Is there a way to detect browser type in Velocity?

  • Yes Javascript is an option but we need to do some heavy conditional statements that are a bit more secured on server side vs js...

  • You always have the option of wrapping your logic in a custom ScriptedContentFragment extension:
     
     
    Patrick Mason
    Development Lead- Extensibility
    o: 214.420.1329
    telligent.com
     
    From: BlippMedia [mailto:bounce-JDRF@communities.telligent.com]
    Sent: Monday, July 23, 2012 12:56 PM
    To: bugsandissues@communities.telligent.com
    Subject: RE: [Bugs and Issues - Telligent Community] Browser Detection in Velocity
     

    Yes Javascript is an option but we need to do some heavy conditional statements that are a bit more secured on server side vs js...