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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogHow to change CSS classes for blog?How to change CSS classes for blog?
Previous
 
Next
New Post
9/4/2007 8:41 PM
 

This seems like a rather amateur question but I can't seem to find an answer anywhere. I'm probably missing something simple.

I'm creating my own skin from scratch and am having problems with the blog module. Even through all the CSS classes that I defined work for most modules the Blog module's links are still defaulting to their original and the calendar text didn't change from the default either (which is black, the same as my background). Are there specific classes I have to define for the module? How do I do that? I'm learning this all as I go. I'm using HTML, XML and CSS to create my skin BTW. Here is the link to my site. You can see the problems I'm having:

http://robitstudios.com/electronicchronicle/tabid/74/Default.aspx

 

 
New Post
9/4/2007 10:54 PM
 

Not an amateur question, but certainly an incomplete module.

You have to add your own cssclass="blahblah" bits to all of the items in the asp:calendar in DesktopModules/Blog/Archive.ascx.Then you can style the calendar.

Regards,
Rob

 
New Post
9/5/2007 6:45 AM
 

I have added all the css attributes to the calendar for the next version. You will be able to control the look and feel from the module.css.

As usual, Robax, thank you for your comments ;)


Maxiom TechnologyAntonio Chagoury | Microsoft MVP
Maxiom Technology
Professional .net & DotNetNuke Solutions
web: www.maxiomtech.com
blog: www.cto20.com
twitter: @antoniochagoury & @maxiomtech

 
New Post
9/5/2007 6:56 AM
 

Fabulous

Here's my version of it in case it's of any use:

  <asp:Calendar id="calMonth" DayNameFormat="Shortest" runat="server" CssClass="BlogCalendar">
    <SelectedDayStyle CssClass="BlogSelectedDay" />
    <TodayDayStyle CssClass="BlogTodayDay" />
    <SelectorStyle CssClass="BlogSelector" />
    <WeekendDayStyle CssClass="BlogWeekendDay" />
    <OtherMonthDayStyle CssClass="BlogOtherMonthDay" />
    <NextPrevStyle CssClass="BlogNextPrev" />
    <DayHeaderStyle CssClass="BlogDayHeader" />
    <TitleStyle CssClass="BlogTitle" />
  </asp:Calendar>

And my matching styles for the module.css (I hope the forum displays all this):

.BlogInfo{}
.SearchOptions LABEL{font:11px Tahoma,Arial,Helvetica,Serif}
.Blog{}
.BlogEntry{padding:12px 2px 16px 2px}
.BlogSummary{padding:8px 2px 8px 2px}
.BlogCalendar{border-color:#999999;border-width:1px;border-style:solid;width:100%;background:#FFFFFF;height:160px}
.BlogSelectedDay{}
.BlogTodayDay{background:#FFA500;font-weight:bold}
.BlogSelector{background:#000000}
.BlogWeekendDay{background:#FFFFDD}
.BlogWeekendDay a:link{color:#999999 !important}
.BlogOtherMonthDay{}
.BlogOtherMonthDay a:link{color:#999999 !important}
.BlogNextPrev{}
.BlogDayHeader{background:#CCCCCC;font-size:10px;font-weight:bold}
.BlogTitle{}

And I also add RepeatColumns="2" RepeatDirection="Horizontal" to the asp:DataList further down the same ascx file to break the list into two columns.

Antonio... could that be turned into a dropdown list instead perhaps? It's a hoot seeing all these blogs with ever-extending lists of month names.

Regards,
Rob

 
New Post
9/5/2007 3:53 PM
 

This seems to be going a little beyond my capabilities. What CSS settings do I need to use in order to change the links in the calendar for each day, with or without posts?

Maybe I should wait for the next version. When is it going to be released?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogHow to change CSS classes for blog?How to change CSS classes for blog?


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