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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...on what logic, tab orders are set for pages that are created in dnn portal websiteon what logic, tab orders are set for pages that are created in dnn portal website
Previous
 
Next
New Post
5/29/2009 2:57 AM
 

HI,

I just want to know, on what logic, tab orders are set for pages that are created in dnn portal website.

Because if i want to create a new tab in database, i could set other columns in tabs table since i understand them what they are. but i don't know on what basis tab order are given for existing pages.

Awaiting your suggestion asap.

Thanks,

Swaminathan.T,

Web Application Engineer,

www.steadfastglobal.com

 
New Post
5/29/2009 4:04 AM
 

Actually when my website's shared server was under maintenance and down, since the error coming because of this was not clear, i thought latest tab that i created has some problem and hence i went to my db which is hosted in seperate shared server and removed the last created tab. but that tab contained two modules which were not deleted. hence to avoid relational problem i want to recreate that tab in db. for recreating tab, i understand all the fields in the tabs table except tab order. hence i don't know what value should i enter for tab order.

My shared server will be up and running with in 2 hours.then i believe i will be able to access all my portal pages except lastly deleted tab. But to avoid any relational error, i want to recreate that tab in my db. hence i want someone to tell me what is tab order and what tab order value should i enter for the deleted tab that i have to recreate.

Awaiting your suggestion asap.

Thanks,

Swaminathan.

 
New Post
5/29/2009 5:27 AM
 

almost same question here,

I want to add pages directly into the database, this works ok except  tab order so far, I have created a query which updates the tab order for a given parent. with this query the tab order for all tabs with a specific parent are renumbered from 1 to n.

But I am not sure if this results in a correct behaviour. Is it ok when a tabOrder is not unique for different parents?(see table for example)

Part of the query: results are in the #NewTab table

declare @CurrentID int
declare @ParentID int

drop table #NewTabs

create table #NewTabs(TabID int, ParentID int, OldTabOrder int, NewTabOrder int, [Auto] int identity(1,1), Done bit)

select @CurrentID = (Select top 1 TabID from Tabs where isDeleted = 0 AND ParentID is null and TabID =["specific parent"])
INSERT INTO #NewTabs(TabID,ParentID, OldTabOrder, Done)
SELECT TabID, ParentID, TabOrder, 0
FROM Tabs where parentID = @CurrentID

UPDATE #newTabs set NewTabOrder = [Auto] where OldTaborder < 10000

select * from #NewTabs

 

tabid parentid taborder
1 null 1
2 1 2
3 1 3
4 null 4
5 4 1
6 4 2
7 4 3

 

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...on what logic, tab orders are set for pages that are created in dnn portal websiteon what logic, tab orders are set for pages that are created in dnn portal website


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