Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How can I get a list of my pages?How can I get a list of my pages?
Previous
 
Next
New Post
9/29/2008 8:37 AM
 

Please Help me. I want a list of all my pages for each portals. In list I want: TabId, Title, Url (or Tab Path if urles is unavalible),  Who and when was created, who and when do the latest update of page.

If It possible please help me. Thanks.

 
New Post
9/30/2008 6:58 PM
 

Here's a query that is non portal specific but it should get you started.

It is a bit complex simply because of the XQuery that is used to get the TabID from the XML formated ntext. You should be able to copy and paste this into SQL Server Management Studio and run it. I include most all of the available columns from the tables, you can remove the ones you don't need.

-- Create a temporary table to store the values and convert the TabProperties field to XML type

DECLARE

@TempLog TABLE
(
IndexID int IDENTITY (1, 1) NOT NULL,
LogUserID int,
LogUserName nvarchar(200),
LogPortalID int,
LogPortalName nvarchar(200),
LogCreateDate datetime,
TabProperties xml,
LogTypeKey nvarchar(200)
)

-- Insert all of the TAB only related logs into the temp table

INSERT

INTO @TempLog (LogUserID, LogUserName, LogPortalID, LogPortalName, LogCreateDate, TabProperties, LogTypeKey)

SELECT

LogUserID, LogUserName, LogPortalID, LogPortalName, LogCreateDate, LogProperties, LogTypeKey

FROM

EventLog

WHERE

LogTypeKey LIKE 'TAB%'

ORDER

BY LogCreateDate DESC

-- Retrieve all of the results and get the additional tab information

SELECT

IndexID, LogTypeKey, LogUserID, LogUserName, LogPortalID, LogPortalName, LogCreateDate,
-- Next two fields are really optional in the output but demonstrate use of XQuery for XML and TabID is required for the JOIN below
-- Basically this is how we get the TabID from the LogProperties ntext field after it is converted to xml dbtype
(SELECT TabProperties.value('(/LogProperties/LogProperty/PropertyName)[1]', 'nvarchar(200)')) AS PropertyName,
(SELECT TabProperties.value('(/LogProperties/LogProperty/PropertyValue)[1]', 'nvarchar(200)')) AS PropertyValue,
t.TabName,
t.TabPath,
t.URL,
t.TabOrder,
t.IsVisible,
t.ParentID,
t.Level,
t.IconFile,
t.DisableLink,
t.Title,
t.Description,
t.KeyWords,
t.IsDeleted,
t.SkinSrc,
t.ContainerSrc,
t.StartDate,
t.EndDate,
t.RefreshInterval,
t.PageHeadText,
t.IsSecure
FROM @TempLog
JOIN Tabs AS t
ON (t.TabID = (SELECT TabProperties.value('(/LogProperties/LogProperty/PropertyValue)[1]', 'nvarchar(200)')))

Hope this helps.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How can I get a list of my pages?How can I get a list of my pages?


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