You need to Register for free and Login to post a message in the forum.

Forum

Subject: creating a module across a skin
Prev Next
You are not authorized to post a reply.

Author Messages
cyborama
Nuke Pro
Nuke Pro
Posts:91

15 Jul 2008 2:33 PM  

Hello there Lee or Joe:

I was wondering if you guys or anyone else knew how to create a module that would spread across a skin not the whole site though.  I know you can go to the settngs of a module and tell that module to duplicate on the whole site including all skins you may be using but I have a particular module that I want duplicated only across the skin in which it was first placed on since I have a particular pane created just for this particular module and if it distributes across the whole site I will go ahead and have to delete this module from skins that do not use this pane.

I have about 4 skins for different purposes and it would be a big time saver to be able to create the module once and have it auto place on all other pages with that skin but it would be a great time spender to have to go to all pages that use other skins which aren't designed to house this particular module (i.e. that as  a result would get dumped on the content pane) and delete them manually especailly this the site has 100's of pages.

I know you could place a skin object of sorts but I am not sure if that would work in this case.  Basically I need an iframe of about 300X315 placed in a contentpane designed to house this iframe.  I was doing it via the iframe module that comes with DNN but as I stated ticking the option for displaying module on all pages just isn't efficient in this case neither is it really efficient to manually place a copy of this iframe and its contents in every sub page that is desinged to house it but there are just enough other pages that aren't structured for this module to make it inefficient as well.

So I guess in long what I am trying to find is first is there a DNN solution using the framework to implement such a thing as a skinwide duplication of a given module instead of portal wide or host.

If this is not a feasible option how feasible is it to hard code an iframe with the correct src info, width, heighth, etc... into the table cell within the default.ascx file and use this instead.  Of course than again I guess you would be stuck with this hard coded bit of content in all pages within that skin so that even if their was say 2 or 3 pages you would rather not see it in there you could do nothing about it because it wouldn't be a module you could delete.

Well I am just brainstorming now as to how to go about this since my client would like this small window that gives a portal into other pages (within the same site) on pretty much every page that supports the skin it is made for.  It is to go on the home page and sub pages but pages with other skins it should not be placed on.

Thanks for any information you can give

Bo

jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2371


15 Jul 2008 5:51 PM  
The problem is that a module doesn't exist "across a skin." A skin can exist across a site, in which case it applies to the pages which inherit it. Skins don't inherit pages, it's the other way around.

I think that if you spent some time, you could probably use Lee's recently divulged techniques to show a modules on those pages for which a particular skin has been applied.

But, since you're going to have to visit all of the pages to apply the correct skin, it seems like your time might be better spent adding or subtracting those modules at the same time.

Joe Craig
DNN Creative Support
Subscribe to the website
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3375

17 Jul 2008 11:03 AM  
Hello,

The techniques outlined in the latest SQL tutorials will allow you to do a workaround to this.

You could create a SQL query which will look for a skin name and add the module to the page for that skin. - there are loads of different things you can do with SQL queries and it's worth viewing the tutorials in these issues:



Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > creating a module across a skin



ActiveForums 3.7

Latest Forum Posts

Restricting DateEditControl till date by coder247
Hi All,   We are using the DateEditControl (for obvious reasons!!) in our application. But we want t...
RE: Email Set UP per Portal by jncraig
I think that the answer depends on how email is configured at your host. You'll probably have to co...
RE: skin/container error load by jncraig
I would suggest checking permissions for directories. Does this occur only when you upload a skin...
RE: Add New Profile Properties by jncraig
Hmmm ... I don't have an answer. Does anyone else?
RE: No Access for me too by ristori
it is ok now. Thanks for this action.
skin/container error load by islandman
Has anyone else run across this error when loading skins or containers from site settings?I am using...
Email Set UP per Portal by islandman
How do I set up a unique email address per domain name off 1 hosting environment. for example...m...
RE: localhost Install issues by cdees
Lee: I wanted to follow up on this for anyone following this thread. I have been unable to solve t...
RE: Add New Profile Properties by WSI
HI Joe, The DNN version is 4.5.5. Thanks, Cliff
Change Skin on URL by vinita
Hi,Can the skin be changed based on the url used to access a portal. Multiple portal aliases may be ...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
Best DNN portal ever! by derpir
I have been a subscriber since august 2008, and DNNCreative.com is simply the best DNN Portal, their...
RE: skinning trouble by derpir
Hello Yes could you be so kind and take a look att the htm-file and css-file.I would be very gratef...
Search function is not working by kishorpawar
I am using Seach module in my project but not working, i have set   host setting alsoHost --> Schedu...
RE: backend is changing from sql2005 to sql2008 by leesykes
hello,There should not be any code changes needed, but you'll need to make sure that SQL 2008 upgrad...
RE: skinning trouble by leesykes
Hello,I would need to see your code to help you with this one, you can zip up your files and attach ...
RE: Installing DotNetNuke 4.9.00 on VWD 2005 w/ SQL server 2008 by leesykes
I have run a test with SQL Server 2008 express and DotNetNuke installed in exactly the the same way ...
RE: Issue 39 Interview by leesykes
thanks Bill, glad it was useful, we will have a think about the best way to approach this,Thanks,
RE: Issue 39 Authentication by leesykes
yes I have a live site in 4.9.0 at it seems stable as well.
DotNetNuke Modules
RSS Feeds