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  |  

Maximum ASP
  Ads  
 


  Sponsors  

Meet Our Sponsors

AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  How to reference root of DNN page?.
Previous Previous
 
Next Next
New Post 8/17/2008 12:36 PM
User is offline Jesper Wilfing
33 posts
10th Ranked


How to reference root of DNN page?. 

Hi,

I was just wondering whats best practise of how to access image paths and root of DNN site...

If I write for instance "./images/DNN_Xls/MicrosoftCertifiedPartner.gif" or "/images/DNN_Xls/MicrosoftCertifiedPartner.gif" in a module located in the DesktopModules folder, the address of the image will be:

http://localhost:1520/DotNetNuke_web/Start/tabid/36/portalid/0/images/DNN_Xls/MicrosoftCertifiedPartner.gif

I want it to be:
http://localhost:1520/DotNetNuke_web/images/DNN_Xls/MicrosoftCertifiedPartner.gif

How do I reference the root of my DNN page so I can work from there no matter from where I try to access it... Isn't there some kind of "root" shortcut that I can use in my paths? "./" ans "/" doesn't seem to work...

Thanks!

 

 

 

 

 
New Post 8/17/2008 1:41 PM
User is offline Jerry Andersen
157 posts
www.ops.org
9th Ranked


Re: How to reference root of DNN page?. 

Hi,

What I recommend it is putting your images in the portals/0/ folder.  DNN sees this as the root of the folder when the application is running...if you copy any images you want to use to this folder or a folder within this folder you should have no problem accessing your images.

For example if you copy your MicrosoftCertifiedPartner.gif to the portals/0/ folder you would access it by http://www.yoursite.com/portals/0/MicrosoftcertifiedPartner.gif

Hope this helps
Jerry

 
New Post 8/22/2008 5:37 AM
User is offline Jesper Wilfing
33 posts
10th Ranked


Re: How to reference root of DNN page?. 

Okay.. I will consider moving all the stuff below each portal folder structure...

But how do I refenence the root of the complete site? You know, if I wanna put a link as in Back to start page. That link refers to my domain and "jumps out" of the virtual directory pointing at the specific domain (that is my localhost).

works were dotnetnuke_web is the alias I set for the IIS... I think it is strange behaviour that when referencing the web apps root directory it instead jumps up to the parent of the actual directory?!!...

/Jesper

 
New Post 8/22/2008 8:24 AM
User is offline Jerry Andersen
157 posts
www.ops.org
9th Ranked


Re: How to reference root of DNN page?. 
Modified By Jerry Andersen  on 8/22/2008 10:28:01 AM)

If i'm reading your post right, you developing your site locally?  using sql express?   Then before you move your site to your live host..You'll need to add a portal alias...for example..www.YourSiteName.com via the host settings.  It also sounds like you may have mulitple virtual folders on your live server which is okay, you just have to use host headers.

When it comes to IIS it doesn't matter what the actual folder name is...you could name your folder DNN_YourSite within IIS copy your files over, and in your host header you would have www.YourSiteName.com taking all those requests.  You would use a DNS entry that points www.YourSiteName.com to the server handling the site and the host header would route the request to the correct virtual directory.

Because you added a portal alias of www.YourSiteName.com via host settings, your DNN instance should work because your DNS, host header and portal alias match up.

If you want to create a back button to a certain page/tab, the easiest way is to navigate to the page within your portal, copy the url that's in the address bar, then go back to page your want to create the link and paste that url.

Hope this helps,

Jerry

 

 

 
New Post 8/24/2008 2:03 PM
User is offline Jesper Wilfing
33 posts
10th Ranked


Re: How to reference root of DNN page?. 
Modified By Jesper Wilfing  on 8/25/2008 6:23:18 AM)

Thank you very much for the information! Clears some stuff up! One more question though, isnt there a way to use some kind of ClickLink?page=blablabla or NavURL() or just something smart that can help me navigate between the pages? I mean if have added a page that I want to link to from a module, do I really have to write the long long adress... Isn't there a smarter way to link a specific page? Thanks!!

/Jesper

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  How to reference root of DNN page?.
 


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.

 


Digicon: DotNetNuke design and development
Digicon is based in Brisbane, Queensland, Australia
digicon.com.au
Live Visitor Tracking & Live Chat For DotNetNuke
Track your visitors in real time and add live chat for sales & support. Free Trial.
www.whoson.com
SINA101
WANT A SPECial sIte iN TAIWAN?
sina101.com

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