This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
sdk:customized-web-gui-extension-display-and-change-custom-config-paramters [2016/05/17 12:37] fachet |
sdk:customized-web-gui-extension-display-and-change-custom-config-paramters [2017/01/25 15:05] juraschek |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Custom Configuration Parameters ====== | + | ====== WEB GUI Extension & Custom Configuration Parameters ====== |
Customized GUI extensions to display and change custom config paramters. | Customized GUI extensions to display and change custom config paramters. | ||
- | <code c> | + | Please use nb_userpage_register in stead of nb_page_register in case you want to show this page also to non-admin user |
+ | |||
+ | <code c gui-extension.are> | ||
/* DESC: This script will generate a page which can be viewed in the Web Manager | /* DESC: This script will generate a page which can be viewed in the Web Manager | ||
* Some custom config vars are displayed and can be changed | * Some custom config vars are displayed and can be changed | ||
Line 44: | Line 46: | ||
} | } | ||
+ | </code> | ||
+ | |||
+ | {{:sdk:gui-extension1.jpg|}} | ||
+ | |||
+ | {{:sdk:gui-extension2.jpg|}} | ||
+ | |||
+ | |||
+ | Entering data into the fields: | ||
+ | |||
+ | ---- | ||
+ | {{:sdk:gui-extension3.jpg|}} | ||
+ | ---- | ||
+ | will store the data in the user configuration paramters for further use: | ||
+ | <code> | ||
+ | custom.var0=ftp.myserver.com | ||
+ | custom.var1=myfile.txt | ||
+ | custom.var2=admin | ||
+ | custom.var3=adminpassword | ||
+ | custom.var4=n | ||
</code> | </code> | ||