Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Can I add the print function onto controls other than the first one in a module?
Previous Previous
 
Next Next
New Post 7/21/2006 2:44 AM
User is offline Mike Grace
206 posts
www.computastat-group.co.uk
9th Ranked


Re: Can I add the print function onto controls other than the first one in a module? 
 cathal wrote

Note: I'm presuming you mean the default view of a module as the first control. Basically print appears to the anonymous user, and when you're in edit mode it's not an option (i.e. why would you want to print an admin screen?). If you want to use print on multiple module ascx's, then make sure the permissions are set to SecurityAccessLevel.Anonymous ). If you want to alter this behaviour take a look at the LoadActions() sub in components\modules\PortalModuleBase.vb 

Cathal

 



Is that page permissions or .ascx permissions?

It is likely that my subsequent .ascx pages were created from the default edit page.
 
New Post 7/21/2006 6:04 AM
User is offline cathal connolly
2757 posts
www.cathal.co.uk
5th Ranked










Re: Can I add the print function onto controls other than the first one in a module? 

It's ascx permisssions - you are explicitly deciding who can access your controls. The normal development mechanism is to have a primary ascx (usually named what your module is doing e.g. mywidget.ascx). This then set's up access to the other related ascx's in the ModuleActions property e.g in this example below mywiget.ascx add's a menu item for 'add content' but makes it only accessible to user's with edit permissions).

 Public ReadOnly Property ModuleActions() As Entities.Modules.Actions.ModuleActionCollection Implements Entities.Modules.IActionable.ModuleActions
            Get
                Dim Actions As New Entities.Modules.Actions.ModuleActionCollection
                Actions.Add(GetNextActionID, Localization.GetString(Entities.Modules.Actions.ModuleActionType.AddContent, LocalResourceFile), Entities.Modules.Actions.ModuleActionType.AddContent, "", "", EditUrl(), False, Security.SecurityAccessLevel.Edit, True, False)
                Return Actions
            End Get
        End Property

 
New Post 7/21/2006 7:00 AM
User is offline Mike Grace
206 posts
www.computastat-group.co.uk
9th Ranked


Re: Can I add the print function onto controls other than the first one in a module? 
Modified By Mike Grace  on 7/21/2006 11:16:43 AM)
I think I understand what you are saying but if I change the code to try and put the actiontype.printmodule with a security access of anonymous the print icon/functionality still doesn't appear on the other .ascx controls.

Sorry for sounding completely thick, but I am at a complete loss of how to acheive this.

Also, are "edit" controls only meant for admin tasks and if so, I don't see why you shouldn't print them if you have access.


Mike
 
New Post 7/30/2006 7:57 AM
User is offline Alvin Lu
9 posts
10th Ranked


Re: Can I add the print function onto controls other than the first one in a module? 

Set the page to anonymous then add the

 ModuleConfiguration.DisplayPrint = True

ex.

Public ReadOnly Property ModuleActions() As Entities.Modules.Actions.ModuleActionCollection Implements Entities.Modules.IActionable.ModuleActions

Get

ModuleConfiguration.DisplayPrint = True

End Get

End Property

 
New Post 8/2/2006 7:29 AM
User is offline Mike Grace
206 posts
www.computastat-group.co.uk
9th Ranked


Re: Can I add the print function onto controls other than the first one in a module? 
That worked!

The print icon now shows.

A couple of questions :

1) I didn't need to set the ascx control or page to anonymous. It just worked. Is this O.K.?

2) Now that the print button is displayed how can I insert my parameters into it's functionality e.g.

before pressing the print button, I have a URL with /TaskID/2/ in it. As soon as I click the button, I lose the this information from the new windows URL.

How do I tell DNN to preserve this value?

Regards


Mike

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Can I add the print function onto controls other than the first one in a module?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com
TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com
PartnerPoint | Community of Microsoft Partners
PartnerPoint is one of the largest and most active online communities of Microsoft Partners worlwide with over 8,000 members.
www.PartnerPoint.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP