Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...formatting print outputformatting print output
Previous
 
Next
New Post
9/4/2007 7:45 AM
 
I don't know which is the right forum to put this question in, but I will start here.

Does anyone know how to edit the print action so that when you print something the edit pencils are removed?
 
New Post
9/4/2007 9:37 AM
 

If you are using a Print skin object, you should be able to specify which skin and container be used for the print friendly display (check out inventua.com Printer Friendly skin object). In that container file, you can simplify the design by not including any of the icons, titles, etc. that you don't want.


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
9/5/2007 2:16 PM
 
An example would be the user defined table. If I try and print one of the udt modules and I have edit rights, you see all of the edit pencils for each line in the print view.
 
New Post
9/5/2007 4:32 PM
 

I see. In this case, simple print object isn't going to help. You'll have to set up CSS in your printer-friendly skin to make pencils invisible or pop-it on a different domain (i.e. if you are on www.yoursite.com, pop it to yoursite.com without www - this will make DNN think that user is not logged in...) This is definitely a band-aid, though.

Another way would be to pass some kind of flag to the popped instance of UDT that can be interpreted by UDT to not show editing fields...

[edit] Better yet (and, since I don't know UDT, I don't know if it's possible) if there is a way to define an alternate display of the same data without edit column altogether but displaying the same exact data otherwise and use that for PrinterFriendly views.


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
9/5/2007 9:49 PM
 

If you don't mind dropping out ALL images that are contained within a link (i.e. anchor tag) when printing you could try adding the following to the particular module's module.css file:

@media print {A IMG {display: none}}

It would be even better to add an attribute selector as follows (since the IMG tag for the edit.gif icon should define the attribute alt="edit"):

@media print {A IMG[alt="edit"] {display: none}}

HOWEVER, it is my understanding that Internet Explorer prior to IE 7 does not recognise the CSS2 attribute selector and that IE 7 will only do so when the !DOCTYPE STRICT is used.

Another possibility to further restrict the style selection to just the edit pencil icons would be to add a class attribute to the IMG tag of each edit pencil icon  in the control's .ascx file and include this class in the CSS selector. I don't like to see changes made to core module files, however, as these modifications are lost on later upgrades unless you remember to modify the upgraded file as well.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...formatting print outputformatting print output


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out