1
srmcatee
CSS Printing
  • 2006/7/6 17:38

  • srmcatee

  • Just popping in

  • Posts: 63

  • Since: 2005/8/22


Hello,

I would like to print out my sites calendar and news events. Is there a standard CSS for printing that I should use? I can write the PHP code for calendar and news, but I didn't want to reinvent the wheel for CSS. Plus I suck at graphics and layout.

Can anyone assist?
Steve
ChurchLedger.com - A Xoops Module Developer

2
msdana
Re: CSS Printing
  • 2006/7/6 17:58

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


Hmmm, I hope this is what you are looking to do:

News 1.44 uses a print feature at the bottom of each news article. There should be a print icon and it prints out a printer-friendly version of the news article. (Earlier versions may do this also).

What calendar module are you using? I know piCal has the same printer-friendly feature as mentioned above. I don't know if other calendar modules do the same or not.

HTH
[size=x-small]If God is watching us, the least we can do is be entertaining.[/size]
Graphic Worx : Xoops Themes

3
damaster
Re: CSS Printing
  • 2006/7/6 18:07

  • damaster

  • Just can't stay away

  • Posts: 556

  • Since: 2003/5/11


You can specify on your theme header the media type through a tag link.

Quote:
Media Types allow you to specify how documents will be presented in different media. The document can be displayed differently on the screen, on the paper, with an aural browser, etc.


CSS Tag Link

CSS Media Types

CSS ref. print

CSS Tutor: Try-It-Yourself!


Best Regards,


I like people more than machines or money. But that's me!
Lets do something good and great: Lets do open source!

4
srmcatee
Re: CSS Printing
  • 2006/7/6 18:18

  • srmcatee

  • Just popping in

  • Posts: 63

  • Since: 2005/8/22


Sorry, I was not very clear.

I would like to print a news letter. News already has this feature, but dumps the article out in an ugly text format. I'm looking for something more readable/printable.

I'm using extCal module. I would like to print out a monthly calendar with events, dates and times.

I can code all this in PHP, I'm just not a CSS expert.
Steve
ChurchLedger.com - A Xoops Module Developer

5
srmcatee
Re: CSS Printing
  • 2006/7/6 18:19

  • srmcatee

  • Just popping in

  • Posts: 63

  • Since: 2005/8/22


Thanks for the info.

I'm a bit of a noob for graphics and layout. Does XOOPS have a standard CSS for printing and layout I can use?
Steve
ChurchLedger.com - A Xoops Module Developer

6
damaster
Re: CSS Printing
  • 2006/7/6 18:31

  • damaster

  • Just can't stay away

  • Posts: 556

  • Since: 2003/5/11


There's no design team, thread about ergonomics or semantics.. that i know... every module do it by its own way.

But if you can code all that in php, just define your css layout class and it would be easier to render the "print page".
I like people more than machines or money. But that's me!
Lets do something good and great: Lets do open source!

7
srmcatee
Re: CSS Printing
  • 2006/7/7 12:01

  • srmcatee

  • Just popping in

  • Posts: 63

  • Since: 2005/8/22


Ok,

I now know more about css and printing. I'm sitting down starting to mock up code and I'm stuck again.

Say I want to print a particular page. How do I tell my smarty template page to not print the XOOPS header and navigation for my print page?
Steve
ChurchLedger.com - A Xoops Module Developer

8
damaster
Re: CSS Printing
  • 2006/7/7 21:31

  • damaster

  • Just can't stay away

  • Posts: 556

  • Since: 2003/5/11


Easy way... create your css file (media type print)

With CSS you define the content that you want to print
"showing" its class and "hide" those not needed.

I like people more than machines or money. But that's me!
Lets do something good and great: Lets do open source!

9
srmcatee
Re: CSS Printing
  • 2006/7/13 22:03

  • srmcatee

  • Just popping in

  • Posts: 63

  • Since: 2005/8/22


Sorry, Let me explain more. I'm going to the month calendar page on the calendar module. I would like to build a CSS print page for this calendar. The page is built from a smarty template. Looking at the template I do not see where the XOOPS header and navigation blocks are pulled in. If I tell the page to pull a css page for printing, will all these disappear?

Sorry for basic questions. Like I said, I'm a noob.
Steve
ChurchLedger.com - A Xoops Module Developer

10
srmcatee
Re: CSS Printing
  • 2006/7/13 22:37

  • srmcatee

  • Just popping in

  • Posts: 63

  • Since: 2005/8/22


Ok, I tried the CSS page. No go. Where is the CSS page pulled in to build the XOOPS screen. I'm looking at the Calendar module's display of the month calendar. I'm not seeing it in code where the CSS page is pulled in and I can switch out with my own.
Steve
ChurchLedger.com - A Xoops Module Developer

Login

Who's Online

418 user(s) are online (326 user(s) are browsing Support Forums)


Members: 0


Guests: 418


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits