What I want to do is to add a sub-tab element called "OpenVPN Log" under "Services" tab:
Following this wiki article, I went to "/overlay/upper/usr/lib/lua/luci/controller/openvpn.lua" and changed it to:
module("luci.controller.openvpn", package.seeall)
function index()
entry( {"admin", "services", "openvpn"}, cbi("openvpn"), _("OpenVPN") )
entry( {"admin", "services", "openvpn", "log"}, cbi("openvpn"), _("OpenVPN Log") ) -- new sub-tab element
entry( {"admin", "services", "openvpn", "basic"}, cbi("openvpn-basic"), nil ).leaf = true
entry( {"admin", "services", "openvpn", "advanced"}, cbi("openvpn-advanced"), nil ).leaf = true
end
but it is not shown in the web interfeace and if I go to http://192.168.1.1/cgi-bin/luci/;stok=. … penvpn/log I get:
No page is registered at '/admin/services/openvpn/log'.
If this url belongs to an extension, make sure it is properly installed.
If the extension was recently installed, try removing the /tmp/luci-indexcache file.
Where exactly do I have to register the page ?
(Last edited by Chris_DB on 28 Jul 2015, 19:32)