I need to collect the current page as a variable and then pass that variable into a link that goes to Survey Monkey. Here's how it used to work in our SharePoint environment.
document.getElementById('__smlink').href = "https://www.surveymonkey.com/r/myform?url=" + window.location.pathname
What do I need to do in order to get that to work in DNN? Is there a script or something I need to get the URL to populate with this information?
You should be able to get something similar to that working in DNN, presuming that your page names are in the right form as evidenced by the URL. If the link is in a Text/HTML module, you could use one of DNN's replaceable tokens (in this case [Tab:TabName]) to insert the page name appropriately. If the link is built into your skin, you can use some ASP to call a tab method to place the page name appropriately. I think that there is a method to return the current tab's name:
<%= Server.HtmlEncode(PortalSettings.ActiveTab.TabName) %>
Hi Joe,
I'm still struggling with this. I would like to use this in the footer so whenever a user clicks on the link, it sends them to survey monkey with the current page as a variable. Is that possible in DNN? If so, please provide the URL nomenclature. I tried the following...didn't work. Could I do this in an HTML module or footer link? I don't have access to the skin scripting.
https://www.surveymonkey....#91;Tab:TabName]
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.