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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Conditional code in a skinConditional code in a skin
Previous
 
Next
New Post
10/19/2010 6:26 AM
 
In my website, the starting page is a bit different from all the other pages. It's an introduction page so there's no menu and only the ContentPane has a little content.
I now have two skins for my website. The original one, and a second one that I have made myself by deleting the menu and other panes from the original one.
This works fine, but is not a great solution. I have to maintain two skins when I want to make chances in the design, for instances.

It would be better to have only one skin, and implement some conditional content that makes the skin hide the menu and panes if you're on the starting page.
So someting like:
<% If DotNetNuke.Page("Starting Page") Then%> <Menu> <% End If %>

What is the correct conditional code? And is this a (more) decent solution?
 
New Post
10/19/2010 7:05 AM
 
you may reference the tab name or tabid, but IMHO the current solution with an option for the admin to specify the skin to use is preferable.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/19/2010 7:58 AM
 
Hmm, could you explain why the current solution is preferable?
Many adjustments in the lay-out of the skin I have to make twice now.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Conditional code in a skinConditional code 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