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...Skins, Themes, ...Skins, Themes, ...Conditionally setting starttabid in a skin?Conditionally setting starttabid in a skin?
Previous
 
Next
New Post
5/28/2007 12:36 AM
 

My question is this.  Is there a way, using code in the skin to pragmatically set the starttabid for a menu item to a page name based on that name being in the DB?

For example, If I know that "store" is in the DB as a page/Tab, is there a way to retrieve that TabId from the DB and use it in the skin.

Reason for it's use:  To enable the use of a reproducible site template so a particular skin's menu item will always work based on that TabId's name not changing.

Hope this is clear.

Clay

 
New Post
5/28/2007 8:28 AM
 

Hi Clay,

You can do that by using the tabname querystring variable in the link.  <a href="/?tabname=store">Store</a>

You can find more tips like that here:

Some tricks for getting TabNames in your DNN Skins


DotNetNuke Modules from Snapsis.com
 
New Post
5/28/2007 3:48 PM
 

Hi John,

Actually I'm trying to be a little more creative than just setting a link in the skin.  What I am trying to do is use SolPart, setting the TabID to the name of a page I already know.

In my simplistic view, it would be TabID=tabname.  Something like this.
<dnn:SOLPARTMENU runat="server" id="dnnSOLPARTMENU" cleardefaults="true" StartTabID= (/?tabname=Store) />

Problem is that I know that "StartTabID= (/?tabname=Store)" won't work in the string.  Or will it?

The problem with using StartTabID in a skin is that it is not portable to other sites unless that value is reset for each use.  What I am trying to do is create a skin where that value is dynamically generated no matter what site uses the Skin. Then, all I need to do is create the base page with that name, set all the "children" I want and generate a template to create sites using that page name, and then I can use that as often as I like.

Clay

 
New Post
5/29/2007 3:42 AM
 

Ok,,, I have part of the answer.  An SQL query would get me part the way there.  Something like  <% SELECT tabid FROM tabs  WHERE title = 'Store' %>  Now the question is how do I execute that type of query so that it writes to the skin the ID of the tab I am looking up?

This answer would solve the entire issue for me.

Clay

 
New Post
5/29/2007 9:07 AM
 

You would need to put some code into your skin that creates a TabController then gets the proper TabInfo object, then assigns the ID of the tab to the Solpart menu control outside of the declaration for the control.

I'll work this up and post a new Tip as a more advanced way of getting Tab information in your skin.


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Conditionally setting starttabid in a skin?Conditionally setting starttabid in a skin?


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