R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
SiteMap Module
Last Post 16 Apr 2011 10:51 AM by milyunk. 8 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
rtoneriiUser is Offline
Basic Member
Basic Member
Posts:308

--
21 May 2007 04:57 PM  
I was wondering what SiteMap module you are using?  I have been looking for a simple one like the one I see here.

Thanks
Rick
rgallaisUser is Offline
Basic Member
Basic Member
Posts:146

--
21 May 2007 06:07 PM  
Hi Rick,

In fact we are using listX to generate the site Map: a simple request to get the data from the Tabs table and a formatting based on the [Level] column. Simple :)!

Regards
Romain Gallais<br>Business Intelligence Force, Inc. (bi4ce)
rtoneriiUser is Offline
Basic Member
Basic Member
Posts:308

--
21 May 2007 06:19 PM  
Romain,
Is it just doing a select or how are you separating the main from the sub pages? All of the work I have done with LX has been on separate data and not on DNN data.

Thanks
Rick
rgallaisUser is Offline
Basic Member
Basic Member
Posts:146

--
21 May 2007 06:32 PM  
Rick,

It is just doing a simple select.
The display in managed by setting the padding based on the [level] column value.
That's it :).

Regards
Romain Gallais<br>Business Intelligence Force, Inc. (bi4ce)
rtoneriiUser is Offline
Basic Member
Basic Member
Posts:308

--
21 May 2007 10:23 PM  
Hi Romain,
I started looking into the Tab Table and it does not just look like a simple select. Do you think you could share how you are handling the levels? How do you handle Security and other parts like hidden and disables tabs?

I think I can get LX to do looping (never tried b4). But I am just not having any luck on the select on this structure.

Thanks
Rick
rgallaisUser is Offline
Basic Member
Basic Member
Posts:146

--
22 May 2007 09:20 PM  
Sorry for the delay in my reply,

the sql statement is the following:
SELECT t.TabOrder, t.TabName, t.[Level], CASE WHEN t .url = '' THEN cast(t .tabid as nvarchar) ELSE t .Url END AS TabID
FROM Tabs AS t INNER JOIN
TabPermission AS tp ON t.TabID = tp.TabID
WHERE (tp.RoleID = - 1) AND (t.TabOrder < 10001) AND (t.IsDeleted = 0) AND (t.PortalID = 0) AND (t.IsVisible = 1)
ORDER BY t.TabOrder

And we define the style as follows:
style="padding-left:[Level] 0px;"

Hope this helps,

Regards
Romain Gallais<br>Business Intelligence Force, Inc. (bi4ce)
rtoneriiUser is Offline
Basic Member
Basic Member
Posts:308

--
23 May 2007 01:13 PM  
Does this consider in Security? I am just curious.

Rick
rgallaisUser is Offline
Basic Member
Basic Member
Posts:146

--
23 May 2007 04:11 PM  
The condition (tp.RoleID = - 1) only allows the display of public pages.

Regards
Romain Gallais<br>Business Intelligence Force, Inc. (bi4ce)
milyunkUser is Offline
New Member
New Member
Posts:28

--
16 Apr 2011 10:51 AM  
www.nukewizard.net
is 100%FREE website for dnn skins and also modules
JUST REGISTER(100%free) Login and Download
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share