Reply
Highlighted
New Member
Posts: 4
Registered: ‎08-01-2018

Edit AngularJS portal

Hey guys!

 

I'm new here and I've stumbled upon an issue, I need to edit the text of an AngularJS captive portal myself. However I cannot find the files anywhere on my cloud key. I have been able only to access the legacy files. Does anyone know the directory where I could find the AngularJS files?

 

Many thanks!

Veteran Member
Posts: 4,389
Registered: ‎06-13-2015
Kudos: 1147
Solutions: 203

Re: Edit AngularJS portal


@razhakin wrote:

Hey guys!

 

I'm new here and I've stumbled upon an issue, I need to edit the text of an AngularJS captive portal myself. However I cannot find the files anywhere on my cloud key. I have been able only to access the legacy files. Does anyone know the directory where I could find the AngularJS files?

 

Many thanks!


How did you look? You need to enable "Override templates with custom changes" for the custom code to appear in the directory for the site which is called "app-unifi-hotspot-portal". There you will see the base index.html file and in "views" you will see the various view files.

Art of WiFi
Check out our UniFi API browser tool on GitHub. The PHP API client which it uses, can be found here on GitHub.
Details on our UniFi Device Search tool can be found here.
New Member
Posts: 4
Registered: ‎08-01-2018

Re: Edit AngularJS portal

I have "Override templates with custom changes" enabled, yet still can just see the defaut under sites. Under "app-unifi-hotspot-portal" there's still just the default version of the site. Any ideas?. 

Veteran Member
Posts: 4,389
Registered: ‎06-13-2015
Kudos: 1147
Solutions: 203

Re: Edit AngularJS portal


@razhakin wrote:

I have "Override templates with custom changes" enabled, yet still can just see the defaut under sites. Under "app-unifi-hotspot-portal" there's still just the default version of the site. Any ideas?. 


There the files are which you can edit at your own risk. Look at the index.html file (which is the wrapper/template used to load the applicable views into) and the contents of the views directory.

Art of WiFi
Check out our UniFi API browser tool on GitHub. The PHP API client which it uses, can be found here on GitHub.
Details on our UniFi Device Search tool can be found here.
Reply