Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: News Manager & Job Manager:
Combining NM with CSS stylesheets?

 

 


tribulatio
User

Jul 2, 2003, 8:39 AM

Post #1 of 6 (5174 views)
Shortcut
Combining NM with CSS stylesheets? Can't Post

An additional message regarding another question which may be of interest to other users of News Managers - or which other users may already have solved.

I will use NM for a blog-like website - short items, about 20 to 30 short news a month, "summary only". As already discussed in a previous message, at the end of each month, I will archive the news of the month as a separate file, and begin anew

A small problem: for the archives, I use a different template with slightly wider type (12px instead of 11px, since the text area is wider on the archive pages). Until now, I had been using DW. The index page was associated with one CSS stylesheet and the archive pages with another stylesheet. Thus I applied another template, and automatically my content converted to the new size.

With NM, after importing the index.html page on my local disk, I am still able to convert to the other template. But the type size remains 11px - obviously the size determined in the NM template overrides the CSS stylesheet.

My question is: is there anyway to override the size determined in the cells of the NM template with a CSS stylesheet or in any other way? Or is the cell system used in NM incompatible with the use of CSS stylesheets?

Any clear explanation (I am not very technical) would be much appreciated.

But the product is a wonderful one - as AM also is. I warmly recommend both of them!

Hope somebody has a good suggestion?...


Donna
Staff / Moderator


Jul 2, 2003, 1:37 PM

Post #2 of 6 (5171 views)
Shortcut
Re: [tribulatio] Combining NM with CSS stylesheets? [In reply to] Can't Post

Hi tribulatio,

Thanks for your email. :)

You bet you can define your News Manager pages with CSS -- you just need to get rid of the formatting in the NM templates that are regulating the size.

So, you'll want to go through the templates and strip out any of the <font> tags and any other formatting tags that might be in there. :)

Let me know if that helps!

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


tribulatio
User

Jul 2, 2003, 2:32 PM

Post #3 of 6 (5165 views)
Shortcut
Re: [Donna] Combining NM with CSS stylesheets? [In reply to] Can't Post

Thanks Donna!

Of course, I had already attempted to do as you suggest - and I did it once again after getting your reply. But it does not seem to work. Although I had attached a stylesheet to the entire editable area (and I did it again even inside the editable area after getting your message), the suppression of the original font size just puts everything at a 15 pixels size - nothing to do with the size indicated in the stylesheet.

The only way to make it adopt the css style is to impose it for each individual cell. No problem for doing it in the index template - but then, when I convert it into archive pages for the past month, I get again that 15 pixels size again and, since there are many news items on one page, I cannot change them cell by cell.

If you look at the source code of http://www.religion.info/nm/publish/, what do you think I should change in order to do it properly?

Any suggestion would be most welcome. As already mentioned, I should be able, at the end, to import the index into my editor and to convert it into an archive page through renaming it and switching the content to another template - it works, except that I cannot get the font size specified by the stylesheet.

I hope I am clear enough in my explanations, sorry if it seems a little bit confused! Any suggestion to solve that (small) problem would be most welcome. Anyway, in any attempt to develop a website, there are small problems such as those, for which there is probably an easy solution, although it has not yet come to my mind.

Many thanks for your help!


Donna
Staff / Moderator


Jul 2, 2003, 4:26 PM

Post #4 of 6 (5163 views)
Shortcut
Re: [tribulatio] Combining NM with CSS stylesheets? [In reply to] Can't Post

Hi tribulatio,

Good to hear from you. :)

I'm seeing a few extra tags here and there ... such as <font size="2"> and <font size="7" face="Century Gothic">

I'm also noticing that you're using the Article Manager Webfeed syndicator. Because this is JavaScript, it sets its own font sizes -- and they're not changable with CSS because it's being pulled from the JavaScript. You can, however, set them to specific font sizes -- 1,2,3, etc.

That's what this bit (and more) is for:

syndicate.title_fontbold = true;
syndicate.title_fontital = false;
syndicate.title_fontface = 'Verdana, arial,helvetica,sans-serif';
syndicate.title_fontsize = '1';
syndicate.title_fontcolor = '#3366CC';

However, this all seems to be output by Article Manager, not News Manager. Where are you using News Manager on your site?

Let me know if that helps any or if there's anything else I can do. :)

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


tribulatio
User

Jul 3, 2003, 2:56 PM

Post #5 of 6 (5159 views)
Shortcut
Re: [Donna] Combining NM with CSS stylesheets? [In reply to] Can't Post

Hi Donna!

Of course, you see other fonts, but those are outside of the area using News Manager, since News Manager has been integrated in a more complex template with various components.

What I have been attempting to do is NOT to change the entire template (I know perfectly why I chose some other fonts for some other parts of the template, I know also that AM webfeed syndicator is not changeable), but just the editable content, which is located in the white part in the center of the page. This the part - beginning with the <Begin editable content> - where the content produced with News Manager is integrated, and this is the only part which I would like to be able to change using CSS stylesheets. It was in that segment of the page that I had suppressed all font sizes and specifications in order to attempt to get the result which I wanted, without success.

If you can tell me more, you are most welcome. In the meantime, I have also discovered that there is apparently a way to overrule any other stylesheet on a page with "!important" - I just found that in a CSS guidebook. I will try to apply that trick and see if it works!

Best regards.

Tribulatio


tribulatio
User

Jul 5, 2003, 7:20 AM

Post #6 of 6 (5141 views)
Shortcut
Re: [tribulatio] Combining NM with CSS stylesheets? [In reply to] Can't Post

Just for the information of those users who might face the same problem and - as myself - are not yet very familiar with CSS - I have discovered how to solve the problem.

I had attempted to apply stylesheets, but this was not working. When examining the code, I realized that each cell in News Manager had been created as a "class", called "nm_index". Instead of applying an external stylesheet, I went to the CSS style section in the head of the template, I applied the desired values to a style which I named .nm_index. Instantly, I obtained the desired result.

It took some time to understand, but there was a way, and I am glad I finally found it!

TribulatioSmile

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4