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

Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Hyperlinks between modules
Previous Previous
 
Next Next
New Post 4/21/2006 4:25 AM
User is offline Andreia Oliveira
13 posts
10th Ranked


Hyperlinks between modules 

Good morning,

I managed already to make links between pages from the same module, passing more than one parameter.

Ex: hl.NavigateURL = this.EditUrl("Code", ((PlanosInfo)e.Item.DataItem).Code, "Edit", "Type", ((PlanosInfo)e.Item.DataItem).Type);

Now, I would like to understand the way to implement hyperlinks that could link one page to another module page.

As far as I understood, the edit in bold must be the name in the Key field of the edit module control page when defining page modules.

In order to link to pages in other modules, do I have to "register" these pages in the Module Definition?

Thanks in advance,

Andreia

 
New Post 4/21/2006 7:08 AM
User is offline Michael Flanakin
994 posts
www.michaelflanakin.com
7th Ranked




Re: Hyperlinks between modules 
I'm not 100% sure, but I think you might have to build this on your own. You'll need to know a few things to do this: the tab and module IDs, control key (if not the view control), and any other parameters required for the module's control. Assuming you have all this, which you'll probably want to derive from the database in conjunction with allowing an admin to select which module they want yours to link to, you can generate the URL pretty easily. Simply use a URL and specify the tabid, mid, and ctl parameters for the first three. Any additional parameters can be specified just as you normally would.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post 4/21/2006 8:41 AM
User is offline Andreia Oliveira
13 posts
10th Ranked


Re: Hyperlinks between modules 

Thanks for your help.

Maybe I am not yet getting the full picture of DNN... I managed to perform this link without passing these parameters... maybe I am still not aware of the security / access... implications of doing it this way.

I performed the test I mentioned in my initial post:

Created a reference in the module definitions of my first module to a page that belongs to another module. Gave it the name. Named it "SetupLanguages".

Then, in the code behind of my first page edited the hyperlink in the same way I mentioned in my last post but passed the "SetupLanguages" in the controlKey parameter of the editUrl method.

Regards,

Andreia

 
New Post 4/21/2006 10:56 AM
User is offline Michael Flanakin
994 posts
www.michaelflanakin.com
7th Ranked




Re: Hyperlinks between modules 
Are you wanting to link to a completely separate module or just a different control within your module? Any background on what you're attempting to accomplish would help us provide the best solution.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post 4/24/2006 8:43 AM
User is offline Andreia Oliveira
13 posts
10th Ranked


Re: Hyperlinks between modules 

Yes, that is right.

What I am trying to do is link pages from different modules.

The reason why I would like to do this is in order to avoid having several classes defined in my first module.

My first module will deal with one entity.

The second (and other additional modules) will deal with another entities that have strong relations with the first one.

 

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Hyperlinks between modules
 


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.

 


AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com
OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com
IHostASP.NET Provides the Ideal DNN Hosting
We will help you with the installation, configuration, and troubleshooting of your DNN portal, no task is too big or small for us. Unlike other companies we are not just providing a reliable hosting service, but we are also focused on providing the best DotNetNuke hosting service on the internet.
www.ihostasp.net

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