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 ...Display form in Skin Conditionally for Specific PagesDisplay form in Skin Conditionally for Specific Pages
Previous
 
Next
New Post
10/12/2009 4:01 PM
 

I am a DNN noob and am building a site using version 5.01.   I am using I am also not very fluent in ASP.NET, so I am unable to write modules at this point.

The client wants to display a small reservations form on certain pages of  the site. I tried implementing the form inside a Text/HTML module, which doesn't work as everybody here probably knows already. Plus the client wants this in the header area, outside of the normal layout available with the skin.

I was able to modify the skin to include the form using an iframe and it works pretty well considering the way I am approaching it.  The form now shows up on every page on the site.  I want to put some conditional logic in the skin so that a few of the pages do not display the form block. I googled some threads and found some ideas based upon displaying content based on user roles, on John Mitchell's blog a la:

<% If DotNetNuke.Security.PortalSecurity.IsInRoles(PortalSettings.AdministratorRoleName) %>
      Admin only content here
<% End If %>

How could I do something similar (method call) to determine which page I am looking at, ie, not display the form block for a page called 'Reservations" for instance?

 

 
New Post
10/13/2009 2:14 PM
 

You have two options.  Make your form a module and edit the skin to allow you to place the module where you want it, or make the form part of the skin (or a skin object) and use that skin for the pages where you want the form to appear and a version without the form for the other pages.

Jeff

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Display form in Skin Conditionally for Specific PagesDisplay form in Skin Conditionally for Specific 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