Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsReport of pages on each siteReport of pages on each site
Previous
 
Next
New Post
8/18/2009 11:55 AM
 

Does anyone know if you can get a report to display all the pages and maybe some info for each page? this would be very helpful if you need to move the site or redo it. or even keep track as to what is on your site especailly if you have site with 20+ pages.

Thanks

 
New Post
8/18/2009 12:09 PM
 

Tom,

The issue here is understanding where this information is located.  Also, that pages are not pages -- from the point of view of the DotNetNuke database - pages are called Tabs.  The name is historical.   In the database you will fine several tables that start with TAB ... these define what is on a page and how the page is processed.

Here are two helpful queries that can be used by the reports module and other SQL grid display modules (eg. SQLGridSelectedView or SQLView)   You will need to customize the queries for PortalID ,TabID,  and friendlyname as appropriate.

-- display all tabs(pages) where a given module exist

SELECT
 T.TabOrder,
 T.TabID,
 T2.TabName as [Parent Tabname],
 T.TabName,
 M.ModuleID,
 M.Moduletitle
FROM

 dbo.tabs T
 join TabModules TM on T.TabID = TM.TabID
 join dbo.Modules M on TM.ModuleID = M.ModuleID
 join dbo.ModuleDefinitions MD on M.ModuleDefID = MD.ModuleDefID
 join dbo.DesktopModules DM on MD.DesktopModuleID = DM.DesktopModuleID
 left outer join Tabs T2 on T.ParentID = T2.TabID
WHERE

 DM.FriendlyName = 'friendly name of module'   '??????
 and T.portalid = 2     '????
 and M.IsDeleted = 0
 and DM.IsAdmin = 0
order by
 T.TabOrder
 

--- modules on a give page (tab)

SELECT  
    Left(dm.friendlyname, 25) as [Friendly Name],
    count(dm.friendlyname) as [count],
    dm.version as [Version]
FROM
    dbo.tabs t
    JOIN tabmodules tm
      ON t.tabid = tm.tabid
    JOIN dbo.modules m
      ON tm.moduleid = m.moduleid
    join dbo.ModuleDefinitions MD
      on M.ModuleDefID = MD.ModuleDefID
    join dbo.DesktopModules DM on MD.DesktopModuleID = DM.DesktopModuleID
WHERE
    t.tabid = 54        '????
    AND t.portalid = 2  '????
    AND m.isdeleted = 0
Group by
    dm.friendlyname, dm.version
Order by
    dm.friendlyname, dm.version

Hope this helps
Paul.

 
New Post
8/18/2009 2:58 PM
 

This will give you all mudules and their loactions (didn't check it on dnn5 though)

SELECT
 tab.tabid,
 tab.tabname,
 module.moduleid,
 module.moduletitle,
 definition.friendlyname AS [ModuleName]
FROM [tabs] tab
INNER JOIN [tabmodules] tabmodule
 ON tab.tabid = tabmodule.tabid
INNER JOIN [modules] module
 ON module.moduleid = tabmodule.moduleid
INNER JOIN [moduledefinitions] definition
 ON module.moduledefid = definition.moduledefid

ORDER BY tabname, moduletitle


Yehuda Tiram
AtarimTR
AtarimTR
972-2-5700114   |   972-54-4525492   |    http://www.atarimtr.co.il
 
New Post
8/23/2009 4:54 AM
 

sorry i didn't know but i want to know too ......

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsReport of pages on each siteReport of pages on each site


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out