How to print some selected site content?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
buonumore
Forum Members
Forum Members
Posts: 26
Joined: Sun Dec 27, 2009 8:13 pm

How to print some selected site content?

Post by buonumore »

Hello hello! :)

I'm trying to find a way to print some selected (by me) parts of my site, with one click only.

There's a printer friendly option in any pages of my site, but what I want is to add in the main menu a voice/botton so that people can immediately get the printer friendly for some selected pages of my site.

I tried by adding a "Print" page with some kind of fantasy code like this:

Code: Select all

{Page 1 detailpage="Page 1"}
{Page 2 detailpage="Page 2"}
{Page 3 detailpage="Page 3"}
{Page 4 detailpage="Page 4"}
I suppose that (one of) the reason it gives an error is that the real page name is not what I gave it. Right?

Thanks for any suggestion! :)
buonumore
Forum Members
Forum Members
Posts: 26
Joined: Sun Dec 27, 2009 8:13 pm

Re: How to print some selected site content?

Post by buonumore »

I suppose, being a newbie here, that it would have been simple to do this... I probably underestimated the work!! ;D
replytomk3

Re: How to print some selected site content?

Post by replytomk3 »

Give it some time, experts are busy and it might take people a couple of days to get around to answering the post. I did not say anything because I can't help.
buonumore
Forum Members
Forum Members
Posts: 26
Joined: Sun Dec 27, 2009 8:13 pm

Re: How to print some selected site content?

Post by buonumore »

You're certainly right!!  :)

Cheers to you! :D
buonumore
Forum Members
Forum Members
Posts: 26
Joined: Sun Dec 27, 2009 8:13 pm

Re: How to print some selected site content?

Post by buonumore »

Sorry for bothering again with this...

I still need help with this, please! :)
buonumore
Forum Members
Forum Members
Posts: 26
Joined: Sun Dec 27, 2009 8:13 pm

Re: How to print some selected site content?

Post by buonumore »

I thought that I could maybe implement the CSS "print" code in the page and to get the interested pages being called, but... definetly not! :(

Any ideas?

Code: Select all

/*
Sections that are hidden when printing the page. We only want the content printed.
*/


body {
color: #000 !important; /* we want everything in black */
background-color:#fff !important; /* on white background */
font-family:arial; /* arial is nice to read ;) */
border:0 !important; /* no borders thanks */
}

/* This affects every tag */
* {
border:0 !important; /* again no borders on printouts */
}

/* 
no need for accessibility on printout. 
Mark all your elements in content you 
dont want to get printed with class="noprint"
*/
.accessibility,
.noprint
 {
display:none !important; 
}

/* 
remove all width constraints from content area
*/
div#content,
div#main {
display:block !important;
width:100% !important;
border:0 !important;
padding:1em !important;
}

/* hide everything else! */
div#header,
div#header h1 a,
div.breadcrumbs,
div#search,
div#footer,
div#menu_vert,
div#news,
div.right49,
div.left49,
div#sidebar  {
   display: none !important;
}

img {
float:none; /* this makes images couse a pagebreak if it doesnt fit on the page */
}
ironblaze94

Re: How to print some selected site content?

Post by ironblaze94 »

I don't understand what it it you want compared to what you already have.

You have a print button on each page but you also want a print button next to each menu item?
buonumore
Forum Members
Forum Members
Posts: 26
Joined: Sun Dec 27, 2009 8:13 pm

Re: How to print some selected site content?

Post by buonumore »

Hello!! :)

No no, what I'm looking for is a button (which I'll place on the main menu), that instantly gives you the opportunity to print some selected pages (by me) from the whole site!

My site is about searching a house to buy, so I'd like to give visitors the chance to get all important informations about the house, printed by one click only! ;)

Did I express myself better now? I hope so! :D

Thanks.
replytomk3

Re: How to print some selected site content?

Post by replytomk3 »

From what I understand, the content you want to be printed is located on several pages of your website?

Do you want to print all that info in one page/batch or several pages/printer batches?

Sounds like this is the question for developers and people familiar with tags.
buonumore
Forum Members
Forum Members
Posts: 26
Joined: Sun Dec 27, 2009 8:13 pm

Re: How to print some selected site content?

Post by buonumore »

You got it!

I want several pages printed in one only "printer friendly" page, called by one only button in the menu.

That's funny, because at the beginning I thought I was asking something extremely basic, tipical of a newbie like me, but... no, appearantly it's something more complicated than expected!

Thank you both for your intervention!  :)

Have a pleasant sunday everyone.
replytomk3

Re: How to print some selected site content?

Post by replytomk3 »

From my non expert's point of view, this is complicated. You will need to either make a link to a special template (after clicking on the "Print" link they will actually be redirected to a new special page which can automatically show the printer dialog), or you will need a special template or CSS file to format a standard page just for printout.

This is going to require programming. If this is an important part of your website, you might have a faster consultation response if you post in the Commercial Help Wanted section.

I think the reason the experts are not pitching in is because this can't be done with just a single tag, and it requires new template creation.
buonumore
Forum Members
Forum Members
Posts: 26
Joined: Sun Dec 27, 2009 8:13 pm

Re: How to print some selected site content?

Post by buonumore »

If you're right and this is really complicated, I'll certainly give up on this!

I'm planning to buy a house this year and need to save money on eeeeeverything!!  ;)
Post Reply

Return to “CMSMS Core”