|
Printing Web PagesWild Apricot can produce printer-friendly version of your web pages - both regular website pages and the pages in your administrator interface (for example, summary of members). This function is accessed through a special icon:
Customizing the print iconNavigate to the "Advanced Customization (CSS)" section of Wild Apricot admin interface. This section is located under the "Settings" button, in the section called "Visual Look and Feel". Use "#idPrintLinkContainer" to customize your icon via CSS, as shown in example below: #idPrintLinkContainer
{
width: 100px;
height: 100px;
background: url(http://path_to_your_custom_icon) left top no-repeat;
}
In the example above, you will have to replace "http://path_to_your_custom_icon" with the real path of your icon. Please note, that you have to set the "width" and "height" values properly to display your custom icon. Customizing the print icon positionGo to the Setting/Site Settings/Global Javascript section of Wild Apricot admin interface. To move the icon to different places on the page, copy the Javascript code below, paste it and modify as needed. <script language="javascript" type="text/javascript"> if(window.BonaPrint != null) { BonaPrint.enabled = true; BonaPrint.visibilityDefault = true; BonaPrint.iconVisibility = { }; BonaPrint.iconPosition = { id : 'idContentContainer', horizontalAlign : 'right', verticalAlign : 'top', horizontalOffset : 45, verticalOffset : 0 }; BonaPrint.textTitle = ''; } </script> How to attach the icon in the browser window.
id : '',
horizontalAlign : 'right',
verticalAlign : 'top',
For example, the following sample will attach the icon to the top right corner of the browser window: <script language="javascript" type="text/javascript"> if(window.BonaPrint != null) { BonaPrint.enabled = true; BonaPrint.visibilityDefault = true; BonaPrint.iconVisibility = { }; BonaPrint.iconPosition = { id : '', horizontalAlign : 'right', verticalAlign : 'top', horizontalOffset : 0, verticalOffset : 0 }; BonaPrint.textTitle = ''; } </script> How to attach the print icon to any element on the pageYou can attach the print icon only to HTML elements which have an ID.
<script language="javascript" type="text/javascript"> if(window.BonaPrint != null) { BonaPrint.enabled = true; BonaPrint.visibilityDefault = true; BonaPrint.iconVisibility = { }; BonaPrint.iconPosition = { id : 'idHeaderContent', horizontalAlign : 'right', verticalAlign : 'top', horizontalOffset : 0, verticalOffset : 0 }; BonaPrint.textTitle = ''; } </script>
Some of the more frequently used elements that you may wish to attach your icon to are the following:
How to move the icon a few pixels to the right or leftTo fine tune the location of the icon, use these two lines of JavaScript code: horizontalOffset : 0, verticalOffset : 0 For example, this will move the icon 3 pixels to the right and 7 pixels down: horizontalOffset : 3, verticalOffset : 7 This example will move the print icon 4 pixels to the left and 9 pixels up: horizontalOffset : -4, verticalOffset : -9 Hiding the print iconHow to hide the icon on all pagesTo hide the icon on all pages, change the following line: BonaPrint.enabled = true;
to this: BonaPrint.enabled = false;
and copy and paste the result into Global Javascript block as described in the previous section. How to hide the icon on certain pagesYou can hide (or show) the icon on only certain pages. To do so the following lines of code will need to be changed BonaPrint.visibilityDefault = true;
BonaPrint.iconVisibility = { };
First you have to find the ID of the page where you want to show or hide the print icon.
<body id='PAGEID_1205' class='publicContentView '>
The following example will HIDE the icon on all pages, except the page with id='PAGEID_1205': BonaPrint.visibilityDefault = false; BonaPrint.iconVisibility = { 'PAGEID_1205' : true };
BonaPrint.visibilityDefault = true; BonaPrint.iconVisibility = { 'PAGEID_1205' : false };
BonaPrint.visibilityDefault = true; BonaPrint.iconVisibility = { 'PAGEID_1205' : false, 'PAGEID_1299' : false }; How to change the title of the print iconWhen you hover your mouse pointer over the print icon, a small piece of text will display. This contains descriptive information about the image. To change the text that is displayed, use the following piece of code: BonaPrint.textTitle = 'Some title'; This will change default title "Print" to "Some title" |
|
|
|||||||||||||||||||||
(None)












Add Comment