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, ...HOW do I Create a Different Color Breadcrumb for ContainerHOW do I Create a Different Color Breadcrumb for Container
Previous
 
Next
New Post
6/29/2009 3:10 PM
 

 I have a situation where i needed to create a different color breadcrumb for the container. I've partially succeeded... but here is my issue

ISSUE:
The Font Color on my style is not carrying over from my container.css. Everything else changes but the font color is the same as the main page font color. To illustrate please see my code for the container defining the container breadcrumb.
** CONTAINER BREADCRUMB **
<dnn:BREADCRUMB runat="server" id="dnnBREADCRUMB" CssClass="containercrumb" Separator="<img alt=&quot;*&quot; BORDER=&quot;0&quot; src=&quot;blackbreadcrumb.gif&quot;" RootLevel="0"/>
and my css for the container is
.containercrumb {
     color: #000066;
     font-size: 24px;
     font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
}

VS. my regular skin breadcrumb which is
** REGULAR SKIN BREADCRUMB **
<dnn:BREADCRUMB runat="server" id="dnnBREADCRUMB" CssClass="breadcrumb" Separator="<img alt=&quot;*&quot; BORDER=&quot;0&quot; src=&quot;blackbreadcrumb.gif&quot;" RootLevel="0"/>

and the regular main skin  style inside skin.css is

.breadcrumb {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8.5pt;
    font-weight: normal;
    color: #d7d6e3;
}


Theoretically these breadcrumbs should be different font size and color but something is not working.
Its a strange situation i know, but i need to have my container breadcrumbs different color from my mainskin breadcrumbs and difining a different style for the container is being overwritten by the primary skin containter. Could someone give me some ideas i could try to get this to work?

Please Advise..
Thanks
 
New Post
6/29/2009 6:31 PM
 

I didn't know you could use the breadcrumb token inside a container, I thought it was a skin only token.  Interesting.

You could handle all this in your skin.css alone.  Use the same class for all the breadcrumbs and give different wrapper classes to the containers based on what color you want used.  Then in skin.css you'd have:

.breadcrumb {your css here}
.wrapper1 .breadcrumb {your css here with a different color}

making sure the wrapper class setup with breadcrumb class  comes after the main breadcrumb class like above.  Then the cascade should work, and if needed, you can use the same wrapper again on other classes you might want differently styled for just that particular container.

Not sure why your method didn't work, other than perhaps the breadcrumb token is truly not meant to be included in a container. Or perhaps you need to assign different id's if you have multiple intances of the token on the same page, which could definitely cause a problem with them both having the same id.


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
7/1/2009 5:45 AM
 

not simple, right?

-------------

TIN LIEN SOLUTIONS LTD.

Address: 1018 Nguyen Trai St., ward 14 district 5 Ho Chi Minh city

Contact No: 84-8-22142972
Fax: 84-8-8550894
Email: contact@tinlien.com
Website: http://tinliensolutions.com

 
New Post
7/1/2009 1:47 PM
 

I guess this works with the same id because the container and the skin are not the same user control. Rick stated that might be the reason for this not working.

BTW, I also never realized you could use the breadcrumb in a container but there does not seem to be anything in code that prevents it.

It's using: PortalSettings.ActiveTab.BreadCrumbs

 

You should check the rendered HTML with firebug, or try to remove one of the two from the page and see if the other works.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...HOW do I Create a Different Color Breadcrumb for ContainerHOW do I Create a Different Color Breadcrumb for Container


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