Products

Solutions

Learn More

Partners

Community

Blog

About

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Newbie question - Edit template - Google Maps Loads twice.Newbie question - Edit template - Google Maps Loads twice.
Previous
 
Next
New Post
11/8/2018 9:12 AM
 
I am helping a person who is having problems loading the a Google map. I am VERY new to DNN and am having a difficult time finding where to edit the base template (or skin). I updated the api in the module and drilling down to the problem it seems that the Maps API is trying to load twice on the page. Previewing the  code, I see a line that does need to be removed.

Line 1141: <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>

This line falls outside the "modules" on the skin. So I don't see where it is editable. Can someone give me a click-through path that will show me where I can remove this line in the template? I've been digging for the file where this can be edited but thus far it's been elusive.

 

Thank You!

 

 
New Post
11/9/2018 6:44 AM
 
Daniel Houston wrote:
I am helping a person who is having problems loading the a Google map. I am VERY new to DNN and am having a difficult time finding where to edit the base template (or skin). I updated the api in the module and drilling down to the problem it seems that the Maps API is trying to load twice on the page. Previewing the  code, I see a line that does need to be removed.

Line 1141:

This line falls outside the "modules" on the skin. So I don't see where it is editable. Can someone give me a click-through path that will show me where I can remove this line in the template? I've been digging for the file where this can be edited but thus far it's been elusive.

 

Thank You!

 

As the map is content one would expect the script to be loaded by a module.
A module can also trigger loading the script outside the module's html.

But it can also be that the script is included in the skin.
In that case you need to find out what the skin is and edit the corresponding ascx in either

/Portals/_default/Skins/"Skinname"

OR

/Portals/"PortalFolder"/Skins/"Skinname"

 
New Post
11/9/2018 11:08 AM
 

I think we may be zeroing in... To reiterate, I'm super new to DNN.

Here's what I did:

  • I signed in on the font end.
  • From the top, I went to Host --> File Management
  • Then I went to the folder path: root/skins/20060-UnlimitedColorsPack-042

This makes perfect sense to me, only I'm not seeing any ascx files. I'm seeing plenty of images and xml, but no ascx.

Your instructions don't exactly match the steps I took, but it looks very similar. did I miss something? Maybe I'm working on an old version? Can ascx files not be accessed or modified when signing in through the browser?

Thank you so much for your patience and your help!

 

 
New Post
11/9/2018 2:51 PM
 
Daniel Houston wrote:

I think we may be zeroing in... To reiterate, I'm super new to DNN.

Here's what I did:

  • I signed in on the font end.
  • From the top, I went to Host --> File Management
  • Then I went to the folder path: root/skins/20060-UnlimitedColorsPack-042

This makes perfect sense to me, only I'm not seeing any ascx files. I'm seeing plenty of images and xml, but no ascx.

Your instructions don't exactly match the steps I took, but it looks very similar. did I miss something? Maybe I'm working on an old version? Can ascx files not be accessed or modified when signing in through the browser?

Thank you so much for your patience and your help!

 

Ascx files are not shown in the file manager for security reasons.
In principle you can execute any code if you would have access to them, which is why they are not shown.
So you would need access to the files through ftp or RDP.

BTW, this looks like a dnngo skin, make sure you install the latest updates as there were (very serious)  security issue in previous versions (which is quite uncommon for a DNN skin).
But I wonder if DNNGo skins have a google maps script tag in them. You could ask the vendor..
BTW some people also add script tags to the module header (module > settings > advanced > header)

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Newbie question - Edit template - Google Maps Loads twice.Newbie question - Edit template - Google Maps Loads twice.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out