Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
Print Page

aenne
Registered User
Quote
2023-09-02 12:43:22

Hello everyone,
I want to create a button to print a website with a recipe. However, the button and menu bar should not appear in the printout. Is there a way to create this and how does it work?


erik
Registered User
Quote
2023-09-03 06:40:35

Right click the button, select "Insert Hyperlink", then paste

javascript:window.print();

This will cause the button to print when clicked.
To make it invisible when printing, right click the button, select "HTML Code..."

Take a look at the code, notice that it has some id at the beginning of the code, looking like this:

id="button_33dab022"

Copy that id - in this case "button_33dab022".
Close the dialog, and in the menu select View -> HTML Code of page -> Additional css styles.
Paste this in there:

@media only print
{
button_33dab022 { visibility: hidden; }
}

And be sure the id of the button in that code is the one you copied.


aenne
Registered User
Quote
2023-09-03 15:28:33

First of all thank you, unfortunately with this tip the text of the button is still visible in the print!


erik
Registered User
Quote
2023-09-03 16:23:33

Are you sure you pasted the right id? If you cannot figure it out, send your rcd file to support, they will be able to help you.


aenne
Registered User
Quote
2023-09-03 19:48:52




micaelo
Registered User
Quote
2023-09-04 09:17:48

I have tried erik's proposal, but that didn't work as requested. It prints the entire page including the print link and also including the navigation menu and the footer.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact