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

Forum

css class styles
Last Post 2010-09-14 12:59 PM by Joseph Craig. 8 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
cyboramaUser is Offline
Nuke Master
Nuke Master
Posts:207

--
2010-08-26 10:41 PM  
Hello There, I am designing a website for a new client under DNN 5.4.4 and have added a few css classes to my skin.css file and while I see them in this file I cannot find them when I am editing content in a text/html module. In otherwords when I click on edit content in a html module I get the fckeditor screen now I think tereik and one of the options is to apply css class style. When I scroll down to look for the class styles I had manually added to my skin.css file and uploaded fia ftp I could not find them in the list? Do you guys have any idea why this might be. Am I suppose to use DNN application to add styles via the stylesheet editor opposed to using something like visual studio 2008 to add styles and than upload the file. Could it be that doing things the way I did them causes the web application not to "know" they exist within the context of the edit content of html module so doesn't show them up. I notice that a lot of the css styles that DNN put in there show up but non of the ones I added show up under the list of applyable css styles but they do work in the site just not able to advise my admins how they could apply a custom style they wanted to use that I created for them via the apply css class feature. Thanks, Bo
cyboramaUser is Offline
Nuke Master
Nuke Master
Posts:207

--
2010-08-27 03:58 AM  
Ok I didn't realize you guys had already tackled many of my questions via your latest issue of DNN Magazine. Great Job =)

I do have a couple questions for you however after watching your tutorials. The first is in regards to the use of multicolor websites.

I have a client who has mocked up a design for me to implement on the web which makes use of a gray background for the left column and a yellow background for the rest of the page both which would have text/html modules inside of them.

As I took a look at your videos I noticed you did demonstrate how one might change the background of the Telerik text/html editor window so it corresponded to how it would look once you save your changes. However in my situation I am guessing that wiring a background color to a body tag wouldn't address the problem given I am dealing with a two color website both of solid colors with text in them.

If I opted for example to make the body gray and wire this to the telerik editor than it would be great when the admin was working on editing content in the grey portion of the website but what about when the admin needed to edit content in the yellow portion of the website using your example on the video tutorials wouldn't you still receive a grey background in your telerik editor even if you were working on a yellow portion of the site given that you can only have one body background color.

There is no way somehow for the Telerik editor to "intelligently" sniff a background color you might be using on a table that overlays the body background or perhaps a background-color in a div tag and show yellow background in the editor when working on a text/html module in the yellow part of the site and a gray background when working in a text/html module in the gray portion of the site?

The above would also be true of the font color since what would look good on dark gray would be bad on light yellow and vice versas. The color behind these two is actually red and the client wants these three colors as they are the companies color so we have red background with a grey left column going all the way down the site and the majority being a yellow area beside it with red surrounding the footer (which wouldn't be touched with text/html modules.

The other question I was curious about was could I style a whole container tag such as a div tag. I know I probably can't use id's since just by the words apply css class suggests adding a id opposed to a class would not work out but I was wondering if it was possible to select a div tag in the wiziwyg (i.e. design mode) environment and apply one of the custom classes similiar to how you could do this on a p tag which I believe is a block style tag as is div.

Thanks for your help with these two questions I found myself having.

Bo
cyboramaUser is Offline
Nuke Master
Nuke Master
Posts:207

--
2010-08-27 04:10 AM  
Last question just out of curiousity what community version of DNN was it before Telerik editor became the default editor for DNN.

I ask this because I have just set up a client on a fresh install of DNN which was actually 5.4.4 and by default Telerik editor is being used. I have another client who has been using DNN since 4.5 and little by little I have been upgrading them till I now have them up to 5.4.2 and still fckeditor seems to be the editor that launches when you click edit text/html but I noticed that even in 5.4.2 under provides/HTMLeditors telerik was one of the folders underneath fck so certainly it had already been integrated into the community edition by this version. I also heard that as early as DNN 5.2.3 or so RAD controls were starting to be implemented so I guess my question is the following:

Since my older client has come to DNN 5.4.2 bit by bit through upgrades of the database opposed to a fresh install right from that version will I need to do something manually to invoke the use of the telerik engine as the default htmleditor opposed to fck editor which appears to be the one that launches now just by looking at the controls or will an upgrade to 5.5 automatically swap out the fck editor for the telerik editor as the default editor that launches when editing html modules.

If I do have to do something manually what should I do so my client can start taking advantage of the telerik engine that has already been integrated into the 5.4.2 distro but not being used by default as the editor for html module editing.

Thanks again for all your help in answering these questions I found myself having.

Bo
Joseph CraigUser is Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9008
Avatar

--
2010-08-28 12:51 AM  
If you upgrade a site, by default the editor is not changed.

If you want to change the editor, you will need to do some edits to the web.config file.    There are some good instructions here.  Before you start editing web.config, ALWAYS make a good copy of the file so that you can revert if you do something wrong.


Joe Craig, DNN Creative Support

Subscribe to DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
cyboramaUser is Offline
Nuke Master
Nuke Master
Posts:207

--
2010-08-29 09:14 PM  
Thanks Joe for the heads up in regards to changing editors. I am wondering still on the multibackground department if their is perhaps some token or something that can be used to ensure that when I place a text/html module in a yellow solid background that the telerik editor gives me a yellow background with say black letters and when I place a text/html module on the grey part of the background that the telerik editor will display a grey background in the body with say white text or some other light color as I chose via CSS.

It seams like in the latest tutorial by Lee Sykes for August 2010 the demo in regards to giving the RAD editor the same look and feel as your actual background has was to wire up a .css file that included that color in the body tag of the CSS which is ok when your page is either totally grey, green, black, etc... but when one vertical column is grey and the rest of the site is yellow as is the case for me where I have a table that has 1 row but two columns one column being grey and one being yellow I am assuming that the demo Lee Sykes did with his wiring up CSS files that included grey in the body definition would not dynamically allow the RAD editor to pick up the background of whatever the text/html module was inserted into but rather as I stated earlier would render a specific color as specified in the CSS body so one of the columns would be correct in regards to look and feel of the editor matching the websites actual background but the other column would not be correct as the body would still be showing for example grey even though the text/html module was in the area of the site whose background was yellow so even if the text/html module was found to be in the yellow area when I go to edit the module I would receive what ever color was specifically specified in the CSS Body tag hence not matching in 50% of the design.

Anyway thanks again for taking a look at this part of the question and thanks Joe for answering the editor issue.

Bo
cyboramaUser is Offline
Nuke Master
Nuke Master
Posts:207

--
2010-09-02 03:36 AM  
anyone have anymore insight on this issue with applying contextual background color to the telerik editor depending on what color the text/html module is on in a page with multicolored layout that is solid and which require text/html module on both the colors.

Just didn't want this thread to get lost site of in the mix as I could see this might be an issue others run across as they are trying to make their telerik editors better match the feel of what ever background color their module is laying on in a multibackground page context.
Joseph CraigUser is Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9008
Avatar

--
2010-09-02 11:35 AM  
I'm afraid that I don't have anything helpful to offer here.

Joe Craig, DNN Creative Support

Subscribe to DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
dansoyUser is Offline
Nuke Newbie
Nuke Newbie
Posts:1

--
2010-09-14 12:05 PM  
How to use html/css class with different element types?
I have several different element types, that use the same class type. Now how do I apply this in a CSS style sheet?
http://www.enbtransport.com/
Joseph CraigUser is Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9008
Avatar

--
2010-09-14 12:59 PM  
You will find a nice little description here.

For example,   "the following is a what a specific class (which in this case selects a blue text color with a transparent background and has a 12 point font size) looks like:

span.LargeBlueText {
  color: blue;
  background-color: transparent;
  font-size: 12pt;
}

The fact that it starts with an element name rather than a dot is what makes this a specific class - in this case specifing that this class is only to be used with the span element and no others."

Joe Craig, DNN Creative Support

Subscribe to DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
You are not authorized to post a reply.

Active Forums 4.3

Latest Forum Posts

RE: DNN site automatically redirects to a different domain name. by imran shaikh
Thanks for the reply joe this is my portalalias table entries 2 0 localhost/tradeupgrade -1
RE: "Good" hosting providers by ejcullen rene
informative!!!
RE: URL Master Module doesn't work on IHostASP hosting by ejcullen rene
informative!!!
RE: shared web hosting by ejcullen rene
informative!!. i got hosting service from http://www.thewebpole.com/ my hosting company offers you
RE: iPhone website logo in DNN root directory by JohnnieD
I'm supposed to add this link to make my custom logo show up on iPhones. Where in DNN would I a
iPhone website logo in DNN root directory by JohnnieD
I'm trying to put an iPhone logo that I made into my site so when someone saves the website on their
RE: Fixed size container by Joseph Craig
Use an HTML module and style the container to have a fixed height and width. Set the overflow attr
Fixed size container by Aggiedan97
I am looking for advice or an actual container that has a fixed height (and width). An HTML module w
RE: DNN 6.1 app_offline.htm by Joseph Craig
If the site "works" in Chrome, Firefox and Safari, but not in IE8 look to IE8 as the problem. It is
RE: DNN site automatically redirects to a different domain name. by Joseph Craig
Make a copy what is in the portalalias table and then remove all but the localhost entry. Verify th
DNN 6.1 app_offline.htm by Dave Hassall
Hi As recommended I have successfully been using the app_offline.htm whilst performing upgrades t
RE: DNN site automatically redirects to a different domain name. by imran shaikh
Hi i have done same as mention in this post my dnn folder name is Trademaxomanupg with
Enforce Terms Tutorial Update by Vistalogix Corporation
I tried configuring my DNN 6.1.2 install to have a required "accept terms" checkbox as described in
RE: Best Practices for Modifying a Custom Module by Joseph Craig
Start up the development website, then install the module using the package that you have. Then, yo
Best Practices for Modifying a Custom Module by schilders
Good Morning, I'm needing to modify a custom built module created by another developer targeted f
RE: Admin menu problem by alireza arabiyan
hi in localhost i have http://localhost/senf/خانه.aspx and http://localhost/senf/Admi
RE: Admin menu problem by Joseph Craig
Yes, that is what you should have done. What is the URL for your home page? What is the URL for
RE: Admin menu problem by alireza arabiyan
hi first in localhost i add my domain.com as portal alias. then copy all files to host , restore my
RE: Admin menu problem by Joseph Craig
How did you move it? Have you added an entry in the portalalias table for the site's domain name?
RE: Re: SQL SERVER 2008 R2 Remote connection by Joseph Craig
Set up a user with dbo privileges and set the connection string for that user, rather than using Win
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds