Page 1 of 1
How to print some selected site content?
Posted: Sun Jan 10, 2010 3:06 pm
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! 
Re: How to print some selected site content?
Posted: Mon Jan 11, 2010 9:28 pm
by buonumore
I suppose, being a newbie here, that it would have been simple to do this... I probably underestimated the work!!

Re: How to print some selected site content?
Posted: Mon Jan 11, 2010 11:11 pm
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.
Re: How to print some selected site content?
Posted: Mon Jan 11, 2010 11:13 pm
by buonumore
You're certainly right!!
Cheers to you!

Re: How to print some selected site content?
Posted: Thu Jan 14, 2010 5:58 am
by buonumore
Sorry for bothering again with this...
I still need help with this, please!

Re: How to print some selected site content?
Posted: Thu Jan 14, 2010 9:08 pm
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 */
}
Re: How to print some selected site content?
Posted: Sat Jan 16, 2010 3:51 pm
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?
Re: How to print some selected site content?
Posted: Sat Jan 16, 2010 6:20 pm
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!
Thanks.
Re: How to print some selected site content?
Posted: Sat Jan 16, 2010 7:06 pm
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.
Re: How to print some selected site content?
Posted: Sun Jan 17, 2010 12:19 am
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.
Re: How to print some selected site content?
Posted: Sun Jan 17, 2010 1:14 am
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.
Re: How to print some selected site content?
Posted: Sun Jan 17, 2010 10:41 am
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!!
