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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListIssue with URL - please guideIssue with URL - please guide
Previous
 
Next
New Post
2/20/2008 8:58 PM
 

I have created a simple UDT with only 2 columns:

1) BSCName
2) BSCURL

Now, I have 3000+ names and URL's that I needed to upload into this UDT. So I created a sql script to insert this data straight into the tables: UserDefinedRows and UserDefinedData. (ofcourse after proper checking with the field id's etc...)

I needed the BSCURL to be opened in new window and hence I appended the string "|options=W" to all the URL's before uploading them to [userdefineddata].[fieldvalue].

Everything went well and I can see all the data in UDT on dnn page. The only issue is when I click the url it opens in new browser but does not execute the link it just stays as dead page and this is what I see in the newly opened dead page address bar:

http://localhost/udttest/LinkClick.aspx?link=http%3a%2f%2fwww.myurl.com%2fsubfldr%2findex.shtml&tabid=73&mid=413

What I have observed is on dnn page when I open any data row in edit mode, the checkbox for "Open in New Window" is not checked by default. It should be because I added the string "|options=W" when I uploaded the URL's. so now I manually check it, and save the record and bingo the link now gets executed in the new window instead of staying dead.

Another behaviour is that when I open the data row in edit mode and dont do anything and just hit the "save" link/button, bingo the URL again starts getting executed instead of staying dead in the window.

So guru's help me understand what magic have I missed that the URL is not getting executed unless I explicitly open the data row in edit mode and hit "save"? What exactly is the "save" button/link doing to the URL field? - is it setting some kind of hidden flag somewhere in some table that the url is valid and can now be executed?

Please guide me somewhere, I read the manual but still no hint out there. How do I make all the url's work by default after I uploaded it. All the data has came exactly as I wanted including the URL, except that the "LinkClick.aspx" does not execute any link, unless I manually open the row and just hit save without even doing anything.

I need a solution that i can fix all the 3000+ rows at a time, I will go mad if I have to sit and open every single one of the data row in edit mode and click save link/button. I just can't imagine 7000+ clicks, that kind of faint's me.

Every help is very highly appreciated.

I thnk you much in advance.


www.dotnetnuke.umaisa.com dnnsupport@dotnetnuke.umaisa.com - free DNN support - www.dotnetnuke.umaisa.com/dnnsupport
 
New Post
2/27/2008 11:31 PM
Accepted Answer 

Hey Guru's you all took me by surprise  no reply at all??.

But today finally I figured it out.

Thanks for looking though.

Jolly Good.


www.dotnetnuke.umaisa.com dnnsupport@dotnetnuke.umaisa.com - free DNN support - www.dotnetnuke.umaisa.com/dnnsupport
 
New Post
4/27/2008 8:21 PM
 

Hey Sid,

Please share with the rest of the class, your findings and how you fixed your dead LinkClick.aspx url issue.

Thanks


Jason Graves www.steadyrain.com www.dotnetnuked.com
 
New Post
11/2/2008 7:45 AM
 

Sid Chaudhari wrote

Hey Guru's you all took me by surprise  no reply at all??.

But today finally I figured it out.

Thanks for looking though.

Jolly Good.

 

Eh, yeah, why didn't you tell everyone if you figured it out what that behavior was caused by ?? I myself have the same problem right now and would save time if you just said what the error was caused by !  Maybe you were pi..ed off because there was no reply till you found out by yourself, but hey, nevermind!

If I find out, what it is, I'll tell everyone .....

 

regards

  DeBilly

 
New Post
11/4/2008 5:52 AM
 
Hello, it's me again. UDT uses the core URL control to represent and handle URLs. If a link is entered to any URL control that is used in the portal and it's being saved, than the control registers the entered URL in a table called #your_prefix#_Urls. So if a link in DotNetNuke is executed via the LinkClick.aspx (http handler) it needs to be existent in the table #your_prefix#_Urls otherwise it results in a blank page error. I managed to transfer the missing URLs via a SQL statement like this: INSERT INTO dbo.#your_prefix#_Urls SELECT DISTINCT 0, --PortalID CAST(UDD.FieldValue AS nvarchar) as UDT FROM dbo.#your_prefix#_UserDefinedData UDD WHERE 1=1 AND UDD.UserDefinedFieldId = 12 -- my individual URL field AND CAST(UDD.FieldValue AS nvarchar) <> '' --sort out defected URLS AND CAST(UDD.FieldValue AS nvarchar) <> 'http://' --sort out defected URLS AND SUBSTRING(CAST(UDD.FieldValue AS nvarchar),0,8) = 'http://' --sort out URLS not starting with 'http://' After that all the links finally worked :-) But apparently I wanted to much. All links now should open in a new window and thus I added the string "|option=W" to the existing URL FieldValue using this statement: UPDATE dbo.#your_prefix#_UserDefinedData SET FieldValue = CAST(FieldValue AS nvarchar) + N'|options=W' WHERE 1=1 AND UserDefinedFieldId = 12 -- my individual URL field AND CAST(FieldValue AS nvarchar) <> '' AND CAST(FieldValue AS nvarchar) <> 'http://' AND SUBSTRING(CAST(FieldValue AS nvarchar),0,8) = 'http://' Unfortunately this all messed up again. My URL FieldValue was shredderd e.g. like this: http://examp|option=W Do you guys have an idea if what went wrong ? Is the problem due to the ntext data type ? But nevertheless, at least the initial link problem should be solved now ! regards DeBilly
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListIssue with URL - please guideIssue with URL - please guide


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