Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

How to link directly to a document
Last Post 02/01/2008 5:37 AM by matt leibert. 14 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Chhavi
New Member
New Member
Posts:56


--
11/15/2007 9:19 PM

In DMX 3 we could right click on a document and get it's URL and then copy and paste it in a Text/HTML module or another module to link directly to that document.  How do I do that in DMX4?  It does not look like I can link directly to the document.  The "Navigate" menu itme takes me to the following URL where I get "Page Not Found" error.  The DMX repository is outside the DNN Portals folder

http://mywebsite.com/Admi...139_SCCF_0.resources

If I use the "Go to this hyperlink", it still renders the entire DMX component and not just the individual file.  Can you please help ASAP as we are now unable to link to documents from other pages?

Thanks

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
11/16/2007 7:23 AM
Hi Chhavi,
Which version is that? That url is indeed wrong.
Peter
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
11/16/2007 7:24 AM
BTW: you had the right idea. The 'navigate' should take you to a 'permanent link' to the document.
Chhavi
New Member
New Member
Posts:56


--
11/16/2007 7:47 AM

Actually I had them reversed.  Sorry about that.  Navigate took me to a page that had the entryid for that document. "Go to this hyperlink" took me to a page with the .resources URL that I had mentioned earlier and I am getting "Page Not found" with that.  I am using DMX 4.00.06 on DNN 4.5.5 with IIS 6.

BTW I did a workaround to present the URL for direct link to the document to the end user.   I changed the label "Go to this hyperlink" to "Copy Shortcut" and modified the file DefaultMenu.resources as follows.

Added the lines

 
    ./TabUrl/@Connector"/>Command=Core_Download&EntryId= select="./Entry/@EntryId"/>
  

Changed the section for "Hyperline2" as follows

 
      
      
       ./TabUrl/@Connector"/>Command=Core_Download&EntryId= select="./Entry/@EntryId"/>&Method=attachment>
       var newwin=window.open('','newwin','resizable=no,width=600,height=200');newwin.document.open();newwin.document.write("");newwin.document.write('');newwin.document.close();newwin.focus();
     

Will it be possible for you to incorporate something like this in the next release so that my changes are not overwritten when we upgrade.

Thanks,

Laverne Douglas
New Member
New Member
Posts:47


--
11/19/2007 8:05 PM

Peter:

I was wondering what you thought of this solutions?

Laverne

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
11/21/2007 7:45 PM
I will include the proposed fix in the next version.
Eric Bewley
New Member
New Member
Posts:3


--
12/10/2007 6:17 AM

When will this fix be available?  I have projects waiting on this. -- Thx

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
12/10/2007 7:09 PM
It's available as of today.
matt leibert
New Member
New Member
Posts:5


--
01/28/2008 4:58 AM

I'm just getting started using 04.01.00. 

When I click "Show Direct Link"  I get the following in a popup....

http://localhost/wwwtests...abid/0/Default.aspx?
Command=Core_Download&EntryId=4

It is always tab 0, the method=attachment is also missing.

Hovering / clicking the blue disk icon in the details pane will show the correct link in statusbar/ download the file but, there is no easy way to have end users easily upload a doc grab a link.  Is this a bug? How do we get it fixed?

Chhavi
New Member
New Member
Posts:56


--
01/28/2008 4:44 PM

Matt here is how you can fix this.

 I was able to resolve it by changing the following line in DesktopModules\Bring2mind\DMX\Menu\DefaultMenu.resources

From 
openURLWindow('DefaultUrl "/>Command=Core_Download&EntryId=');
To
openURLWindow('TabUrl"/>Command=Core_Download&EntryId=');
 
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/29/2008 11:07 AM
And don't forget to go to Main Options at least once after install and click submit. That should change the tabid used.
Peter
matt leibert
New Member
New Member
Posts:5


--
01/30/2008 5:12 AM

I did try main options "update" first however, the previous post solved the problem although the syntax did not exactly match.

Thank you for the support.

The original line:

The new line:

openURLWindow('Command=Core_Download&EntryId=');

openURLWindow('Command=Core_Download&EntryId=');

matt leibert
New Member
New Member
Posts:5


--
01/30/2008 5:21 AM

Can't edit the above post for some reason although I'm logged in.  Anyway, I did find defaultURL and tabURL on the same line, made the both tabURL and it worked.

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/31/2008 11:45 PM
OK, great. Let me know if DMX 04.02.00 still has the same problem. I tried to fix it in any case.
Peter
matt leibert
New Member
New Member
Posts:5


--
02/01/2008 5:37 AM

I successfully upgraded and the link displays correctly.  Thanks.

You are not authorized to post a reply.