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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem with Subdirectory Application in DNNProblem with Subdirectory Application in DNN
Previous
 
Next
New Post
1/21/2011 7:31 PM
 
Couple of things to understand and a question or two.

A CMS pretty much takes control of the page display process at the lowest possible level of operation that a web server offers.  To do this it hooks into the asp.net application cycle at its core taping directly into things like httphandlers and the global.asax object level layer.

As such - it is doing this to every http request BEFORE the usual get http page cycle that many people understand even begins.

If you place any .aspx page, anywhere inside, any FOLDER, below the DNN root folder - requesting that page will cause this cycle to commence.
This is called amongst other things the application space of the web application.

However on the OTHER hand if you create an application sub-folder with its OWN web.config in a folder below the DNN root you start to get into a messy area - what is happening now is asp.net at work - when you create an application sub-folder - you are telling asp.net that you want to create a separate application space in the sub-folder - BUT - doing so gets things confused - because the DNN application now no longer controls the folder - BUT due to the way asp.net works the new application still tries to inherit the items defined in the web.config - BUT without the global.asax application ever executing.

So as a result you loose all the functionality of the DNN CMS by creating a sub-folder application.

I guess the question comes down to what you are trying to achieve in your small application - it could most likely be run as a module inside DNN which would give it full access to the DNN application space - but then again there may be little point of doing so.

Westa

 
New Post
1/24/2011 8:57 AM
 
Hello Wes,
Great explanation of the CMS process, it really helps. I have been doing web development for 10 years now, and was pretty confused and frustrated that I was not able to place and run a seemingly simple sub-application off the root.

The purpose of the sub-application is something we all see on several applications already out there. It is just a temp promo / advertisment type application.  For example, www.company.com, is the our main and you have a January promo to advertise, www.company.com/JanuaryPromo , that's it.  Drop the sub-application into the root and setup a quick virtual directory on the web server and your good to go. 

I don't think a module in DNN would work, though.  The reason why is the actual web address.  Functionaly I know a skin can be created and a new page / tab can point to it so it can look however we want. But, I don't think the new page can be reached like a subdirectory would. I have only seen pages hit in DNN with the absolute URL.  I could be wrong, but that is what I have seen so far.  So, in our case, our marketing people wanted www.company.com/promo and did not want www.company.com/promo/page.aspx.  Do you know of a way this could be acomplished with DNN ?

We are using DNN as the backbone for 5 seperate sites and the more I know, the more it helps in designing and developing against it.
So, a big 'Thank you' again for your time and help !

JW

 
New Post
1/24/2011 6:18 PM
 
There are a number of ways that this can be achieved in DNN - the most common is by taking advantage of url friendly rewriting tools.
This is how dnn remaps its urls currently.

In reality all urls in dnn start off looking like this  http://www.myweb.com/default.aspx?tabid=48  where tabid is the index number of the required page.  Internally the url is then formed as http://www.myweb.com/home.aspx  but ultimately its still decoded back to default.aspx?tabid=48 where 48 in this case is the tabid of the home page.

 - if you are a coder you may like to do this yourself by extending the built in friendly url provider - however a number of people have already put a lot of time and effort into exactly this.

iFinity Url Master is such a tool  -  you can pretty much define ANY url 'look' and have it remap that to any page on your website

http://www.snowcovered.com/Snowcovere...

It lets you do exactly what you are looking for - http://www.mysite.com/mypage    ---   which is then remapped internally to any page on your dnn site.

You are then free to setup whatever pages you like with whatever look you like, skins etc and still take advantage of the dnn framework for editing content etc

It is a commercial product - but there is a free 10 day trial licence key at http://www.ifinity.com.au/Licensing/P...

Cheers

Wes
 
New Post
1/25/2011 11:31 AM
 
Hi Wes,
Once again, great information; Thank you.  This actually would not be a bad approach then. 

Let me make sure I have everything:
  • We could develop a skin page that would represent our temp promotion or advertisement and add that skin to the DNN site
  • Create a new page in the DNN environment and apply the newly added skin to it
  • Utilize a URL tool to make a more user friendly URL for both the end user and our marketing people

I think that is it.

Thank you again,
JW

 
New Post
1/25/2011 4:43 PM
 
Hey Jim,

Sounds like a good approach to things - and you keep the benefits of the DNN environment for editing etc if you so desire.

Cheers

Wes
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem with Subdirectory Application in DNNProblem with Subdirectory Application in DNN


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