What's to be done to make disappear language flags at printing ?
My solution would work if my wish was implemented.
On the _template page, you would have a print-page link like this:
[/printer--friendly/inc:print/page/%%page_unix_name%% Print!]
On the inc:print page, you would have NO title, and the following code:
[[module ListPages page="@URL"]]
[[size x-large]]%%title%%[[/size]]
[[div style="border-top: 2px solid #666;"]]
[[/div]]
%%content%%
[[/module]]
The 2nd, 3rd and 4th lines are to render an artificial heading.
Effectively this would include the page wanting to be printed — and we know that when you include a page the _template of the original page is ignored.
find a great solution to one problem, and then find another :-((
stick em in the side bar?
True, that would be the simplest option.
Personally, I really don't like the way the language bar scrolls with the page anyway. It interferers with the text and is quite distracting.
Sorry, no..
- the move to the nav:side page changes:
- on a click only the "nav:side-en" to "de:side-en"
- does not show on printouts..
- the move to the side bar changes:
- does not disturb the layout on the screen and any text..
- but does not help on printout - it is shown on every printout page too - it belongs to the "main" content page.
I am more thinking about a "print" page technic - like James Kanjo has shown with the printer friendly solution..
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
It is NOT possible to put the flags stuff (using _template and %page_name%) in the side bar because %page_name% would return tha pagename of the sidebar i.e. "nav:side-fr".
The solution is to add something1 to complement "/common—theme/base/css/print.css?0" and make disappear the flags.
i dont think this can be done by me.
1: i cant find a specific "dont print this but i still want to see it in the browser" css command
2: It can be done using display:none; but then you cant see it on the page either!
if there is a "1" of some sort then its quite easy.
ha ha gerdami :-) nice edit :-)
A new "print-hide" display none would have to be added to the print2 css.
So you would need to ask squark to do it.
and then you will need it documented so users are aware that they need to apply the class: print-hide to the appropriate div
Of course I would love to be told that I am talking rubbish (again!)
A new "print-hide" display none would have to be added to the print2 css.
…
as explained in this post http://community.wikidot.com/forum/t-42991/custom-non-printable-content#post-112242
And Helmut wrote this HowTo:hide-print … but Squark was also in the coup.
I copy here my post from the non-printable - content thread : http://community.wikidot.com/forum/t-42991/custom-non-printable-content
I miss here the style sheet command @media print ( or @media display overall - this makes clear the style definitions works only for display or print…
Not sure if this is done with an extra print css file ?
EDIT: I managed this on the "handbook" ( fr: ) http://handbook.wikidot.com/fr:site-manager
Changed our handbook theme "one" to the new code:
I inserted a new "div" class "NonPrintable" only for media print!
and changed in the fr:_template the div style…
This works!
On the print button you see the flags - but on the print layout / preview of the browser they are not inserted.
Bad: this is a level CSS 2 command - could be not all browser can use it….
@media print { div.NonPrintable { display: none; } }
So - Squark has implemented a .flags class with display none… but this is only working because there is a .print body defined anywhere - and this works only for class0"flags" and only in the handbook.
Not in the community.
I believe there is the "div." missing anywhere in the code
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
Yes, it's working only for handbook and only for flags, because only class="flags" is defined in CSS as:
body.print-body .flags {display: none}