Dotnetnuke Module usage by role -


i see each portal how many times particular module viewed, number of views module based on role.

can generate using sql query.

regards,

to find usage first must have site logs on. second there no exact logging per-module. because 1 tab may have more 1 module on it. can imagine if page viewed - modules on page viewed. think following query going give count module

    select  r.portalid,         tm.moduleid,         r.rolename,         count(1) totalviews    roles r ( nolock )         inner join dbo.userroles ur ( nolock ) on r.roleid = ur.roleid         inner join dbo.sitelog sl ( nolock ) on sl.userid = ur.userid         inner join dbo.tabmodules tm ( nolock ) on tm.tabid = sl.tabid group r.portalid,         tm.moduleid,         r.rolename 

however result not useful because 1 user may belongs more 1 role. second have ignored join modulepermissions because modules use inherit view permissions.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -