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, ...Vast SolPartMenu Woes - HELP!!!Vast SolPartMenu Woes - HELP!!!
Previous
 
Next
New Post
5/13/2006 1:00 PM
 

Disclaimer:  I am very new to DNN, so I will appear very stupid here, or perhaps like a stroke victim, trying to speak intelligently but only able to say "That....THINGY....won't work!". So that said, here we go.

I am trying to create my first skin. I'm having horrid problems with SolPartMenu.  It flat out doesn't seem to work at all.  In fact finding ANY decent information anywhere on SolPartMenu - even at www.solpart.com, doesn't seem to be easy.    

Background:  I'm reading the Wrox book "DotNetNuke ASP.NET Portals".  A trifle dated I realize, but one would not think that the attributes listed there for SolPartMenu would ALL be different now, yes?  I have also read the skinning .pdf for  4.0.3 on this site. (just to save someone the time of suggesting I read something first)  I am running DNN 4.0.3 on IIS 5 on my machine, so I am modifying skin files directly in the file structure of my site rather than zipping and uploading.  I am using an HTML skin rather than an .ascx at the moment.  I parse each time I modify.  Judging by the messages I get, there are no errors.

Changes I make to the skin.css and the classes defined there for SOLPARTMENU, work like a charm.  Any settings I make in the skin.xml don't do a thing.  I have tried numerous things, all to no avail.  For the messages below you will see I even tried setting the separatecss attribute to false in the xml, again with no results:  

Loaded package level attribute file: Skin.xml
.
.
.
Loading skin object for token SOLPARTMENU: Admin/Skins/SolPartMenu.ascx
.
.
Processing token: [SOLPARTMENU]

Token is skin object: Admin/Skins/SolPartMenu.ascx

Token found in attributes file: [SOLPARTMENU]

Formatting token attribute: separatecss="false"

Formatting token attribute: forecolor="fuschia"

Formatting token attribute: menueffects="true"

Formatting token attribute: MenuEffects-MenuTransition="AlphaFade"

Formatting token attribute: MenuEffects-MenuTransitionLength="10"

Formatting token attribute: forecedownlevel="true"

Formatting token attribute: backcolor="#755846"

Formatting control statement: <dnn:SOLPARTMENU runat="server" id="dnnSOLPARTMENU" separatecss="false" forecolor="fuschia" menueffects="true" MenuEffects-MenuTransition="AlphaFade" MenuEffects-MenuTransitionLength="10" forecedownlevel="true" backcolor="#755846" /> (these are all settings I set in the skin.xml file so I know it's being read and rendered at SOME level)
.
.
Formatting registration directive: <%@ Register TagPrefix="dnn" TagName="SOLPARTMENU" Src="~/Admin/Skins/SolPartMenu.ascx" %>

So, is my approach/understanding of ths process just wrong?  Do I need to view this a different way?  Am I just a complete dork who's out in left field?? (don't answer that one guys!  Be kind! :)
Are these 2 files mutually exclusive?  Can I set ALL the attributes allowed by SolPartMenu, in the skin.css?? (wouldn't seem so, but, hey)  Does the parse process simply ignore the skin.xml if a skin.css is present?  As far as I can see the only thing that stops the skin.css from parsing and being applied is if it is physically removed from the skin directory.  It certainly won't stop it applying it if you set "separatecss" attribute to false int the skin.xml.  What, pray, IS the *#*^# .xml file FOR???  GRRRRRR!!!!!

Gee...can you tell I'm about ready to rip my hair out?

Any clarification would be greatly appreciated. 

 
New Post
5/13/2006 1:15 PM
 

 

When uploading or parsing a skin the .css files are not touched anymore if I remember right.

What is probably happening is that you have .css classes that are overriding your settings from the skin.xml

The skin.xml file is mostly for setting properties of controls (SkinObjects, etc.) that are in your skin. 

Unless you are trying to create this skin as a packaged item that you want to sell or redistribute, then the easiest way to work with it is to just change the .css and the .ascx version files of the skin directly.

If you do that, you won't even have to re-parse it every time you make a change.


DotNetNuke Modules from Snapsis.com
 
New Post
5/13/2006 1:20 PM
 
Don't forget that there could be caching enabled on the server so try Ctrfl-F5 to force reloading your skin .css. Also sometimes there's caching somewhere else in the network (your firewall, their firewall, etc) so I prefer working locally verifying that all my changes work and then uloading the skin again.

Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
New Post
5/13/2006 1:50 PM
 

Well, I'm editing the .css and .xml in Dreamweaver.  Each time I edit the .css it comes back and says that the .css has been edited outside of DW, so SOMETHING seems to be touching the .css somewhere. 

Yes, I know that the .css is overriding the skin.xml.  Gosh golly but do I know that! LOL!   As I said, the only way I seem to be able to NOT use the .css is to REMOVE it, which of course is pretty counterproductive on most all levels.  But even if the skin.xml is mostly for other things, why are the attributes one is allegedly allowed to set there for Solpart THERE, if you can't effectively use them when a .css is present?   In the messages above you will see I even set the  SolPart attribute "separatecss" to "false" (via the .xml file).  Even THAT wouldn't override the .css!!  And if you look at the parse messages I posted you will see that the attributes I set in the .xml ARE rendered as attributes of the .ascx control for solpart.  Why don't they apply??  Very frustrating.

I have just edited  the .css directly and simply reloaded my page, as you suggest - in fact that's how I started out modifying things.  It worked fine - for the .css settings.  I stopped doing that,  thinking that in order to get the settings in my .xml file to apply, perhaps I needed to actually go through a full parse.  As I've stated above, settings coming from  .css are not the problem.  It's settings in the .xml that make me nuts.  Again I will ask, can ALL the dynamic stuff like alphafade, etc. be set via the .css?  If so I am unclear on how.  I'd be happy to do so if I can get some info on HOW.  Can I set more than one filter attribute for a class?  I tried that it didn't work. 

In fact, it appears here (below) that the only way you can apply a dynamic effect on the menu is if you use an IE filter directly in the .css, also counterproductive IMO, and not utilizing any of the cool effects that SolPart is supposed to have and that are supposed to be able to be set in the skin.xml file.

.MainMenu_SubMenu {
 background-color: #C6EAE8; 
 z-index: 1000;
 cursor: pointer;
 cursor: hand;
 filter:progid:DXImageTransform.Microsoft.Shadow(color='#696969', Direction=135, Strength=10);

Thanks for responding!

 
New Post
5/13/2006 2:44 PM
 

 

I just checked the code, no processing is done on the .css file.  The reason DW is telling you it is updated is because it re-writes the file to disk. The reason it does this on a re-Parse is becasue it uses the same code as the upload to process all the ".htm", ".html", ".ascx", and ".css" files in the directory.

Even on a new upload the .css file is not changed, it is only written to disk.

The skin.xml file is for setting default attributes on controls, but if the control in question also uses css classes for it's style (like the Solpart menu) then those will be the actual values applied in the browser when the html is finally rendered there.

"Again I will ask, can ALL the dynamic stuff like alphafade, etc. be set via the .css?"

Yes, if it has a class assigned to the element, or an ID that you can use for a css selector, then you can get to it all through the CSS directly.  As for Solpart, I don't use it too much, but I'm pretty sure that everything you want to do can be set in the CSS file directly.

Also, keep in mind that the dynamic effect that you used as an example is Microsoft IE only, and will not render in other browsers.

My advice is to stick to working with the .ascx file and the .css file if you want to cut down on the "unknown" things that may or may not happen when the skin parsing takes place.

You should even be able to open that .ascx file in dreamweaver, it is mostly html anyway.

 

 


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Vast SolPartMenu Woes - HELP!!!Vast SolPartMenu Woes - HELP!!!


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