English (United States) English (United Kingdom)
Thursday, September 02, 2010
My Posts
 
  Forums  DotNetNuke  Smart-Thinker E...  Detail View Back URL
Previous Previous
 
Next Next
New Post 29/01/2007 05:32
  Jeff Ditty
2 posts
No Ranking


Detail View Back URL  (United States)
Hello-

I currently have the events module installed in my portal.  I have setup two separate instances of the events module on separate pages within the portal , with each instance having its own detail view.  Everything works fine, except for the issue below.

The problem I am having is that the back button located in the detail view keeps redirecting to a page in the portal that does not contain any events modules.  This is occurring on both detail views that are in the portal.  The back button redirects to the same page, which does not contain any event modules, for both detail views.

Any ideas?

Thanks,

JD
 
New Post 29/01/2007 23:24
  Rodney Joyce
3229 posts
www.DNNDir.com
1st Level Poster




Re: Detail View Back URL  (United Kingdom)
Hi JD,

This is a tricky one and a problem I am facing on all my "view" type modules - basically any page can pass in a UserID (for the ST UserProfile) or EventID (for Events) or a GroupID to these types of modules. The Back button then checks the URLReferrer property and sets it's destination to that value. This means that it will go back to any page and you do not have to hardcode the return value (as you don't always know it).

The problem with this is that sometimes it gets stuck in a loop if you go to different pages and come back again.

Unfortunately I do not have a solution for this at this time - if you have any ideas please let me know... I will think about it and see if I can come up with a more robust solution...


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 06/02/2007 12:00
  Jeff Ditty
2 posts
No Ranking


Re: Detail View Back URL  (United States)

Hello Rod,

 

After doing some testing, I think the problem is the url property is caching.  If you have multiple Event modules with corresponding Event Detail modules configured properly to operate from different pages,  the url property for the "Back" button redirects to the first Event Module that was viewed....

 

For example, let's say I have two Event Modules (A & B) setup on different pages, and Event Detail (C & D) modules setup on different pages.  If I view Event Module A, select to view a new event, it will direct me to the correct Event Detail module.  When I hit the Back button, it returns me to Event Module A.  Now, if I go to the other page containing Event Module B, select to view an event from Module B, it directs me to the correct Event Details module for Event Module B.  The problem is when  I hit the Back button, it will redirect me to Event Module A.

 

This seems pretty consist.  I think the easiest solution would be to hardcode the return tab value for the Back button url.  This would allow the control of the url to the appropriate tab value.  This is an easy value to retrieve, and is the way I hardcode values for navigation in other modules.

 

I need to resolve this fairly quickly, as it will delay my deployment of the module into production.

 

Any thoughts or ideas?

 

Thanks again,

 

JD

 
New Post 06/02/2007 12:22
  Rodney Joyce
3229 posts
www.DNNDir.com
1st Level Poster




Re: Detail View Back URL  (United Kingdom)
Hmm - you may be on to something with the caching - it sets a session variable with the URL Referrer and perhaps it is not cleaning it out.

I can't hardcode the tab as it could come from anywhere - for example, I even hardcode links on my Home Page saying "Featured Event".

I know for a fact that there are problems around using the URL Refferer (ie. if you edit the Guests it stores that URL and gets stuck in a loop) but so far I cannot think of a way around it (hardcoding is not an option when it could come from anywhere). I have the same problem on Groups and UserProfiles....

I'll be releasing an update to the Events module with the new templated user lists (for Guestlist and selection)in the next week or so - I'll take a look at it then but I can't promise anythign I'm afraid.


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 09/02/2007 04:53
  Rodney Joyce
3229 posts
www.DNNDir.com
1st Level Poster




Re: Detail View Back URL  (United Kingdom)
Ok, I have changed the Back Button to use the ViewState and not the Session so it should stop this problem. When the new Events version is released (soon) please confirm that this is no longer a problem. There are still a few issues around this whole area but this particular problem should be fixed.



Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
Previous Previous
 
Next Next
  Forums  DotNetNuke  Smart-Thinker E...  Detail View Back URL

© 2008 Smart-Thinker