Allowance for more than one spreadsheet woul dbe helpful

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
chrisinoz
Forum Members
Forum Members
Posts: 67
Joined: Tue Nov 16, 2004 4:17 am
Location: Adelaide, Australia

Allowance for more than one spreadsheet woul dbe helpful

Post by chrisinoz »

I run two stylesheets usually

Standard one and also one

media=print

Calling in {stylesheet1}
{stylesheetprint}

Would be great.

Cheers

Chris
Humble web designer
Adelaide, South Australia
100rk

2nd (and more) stylesheet

Post by 100rk »

Hi,

I agree with You (It's my idea also).

But You can fix it by upload Your 2nd stylesheet to 'uploads' directory (for example) and attach it to template by '' - not so pretty solution, but functional.

By the way, I really don't like embedded (not linked) CSS - as other unneeded data in html document.

Cheers, 100rk.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Allowance for more than one spreadsheet woul dbe helpful

Post by Ted »

How about this? Would it be helpful if you could change the media or type or whatever it's called when you attach CSS created in CSS Mgmt. to a template?
chrisinoz
Forum Members
Forum Members
Posts: 67
Joined: Tue Nov 16, 2004 4:17 am
Location: Adelaide, Australia

Allowance for more than one spreadsheet woul dbe helpful

Post by chrisinoz »

Hi Wishy

This is what I usually use.




When they select print it uses the styleprint stylesheet - hiding say all the images at the top of a page or a table cell etc.

So you need reference to both.

Thinking about it even mambo only accepts one internal style sheet - I have just started with mambo for complex sites and I will need to reference to a print stylesheet that won't be contained within Mambo.

Maybe the best solution is as has been suggested or just plain link to a second external stylesheet



in the head of the template.

Thanks for thinking of some ideas Wishy though

Cheers

Chriss for now is the best way to go - I am sure you have more important issues than this to move on with Wishy.
Humble web designer
Adelaide, South Australia
iNSiPiD

Re: Allowance for more than one spreadsheet woul dbe helpful

Post by iNSiPiD »

I've resorted to doing exactly what 100rk suggests but it's not ideal. The biggest problem with linking both is that TinyCME can't find the styles and as a result  (you guessed it!) strips every class paramater from your page when you go to edit.

Wishy, the best implementation/modification would be if the the stylesheet manager imported stand-alone CSS files and then when you applied one to your template it was linked. I know there'd have to be a hack in order for the WYSIWIG to see it, too, but I think this is something that will need to be done eventually.

As CSS is becoming more reliable (and accessibility lawsuits start to fly), it's becoming the norm rather than the exception.

NB: Perhaps this has already been implemented in 0.10beta2. If so, please ignore this rant. :)
Post Reply

Return to “Developers Discussion”