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

Bring2mind Forums

Search result: Link won't work if not logged in
Last Post 07/14/2011 3:07 PM by Peter Donker. 6 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
oliver
New Member
New Member
Posts:19


--
06/07/2011 5:50 PM
Hi there

I encounter some troubles with the DMX search results. Basically there is always a link pointing to the page where the DMX document exchange professional is included. Just right to that link there is the download-icon (small blue disk).

The download-icon does work in any case, no matter if I am logged in or not. But the link does not if I am not logged in, and it shouldn't point into the DMX module. How can I influence this link? Basically it should be the same link like the download icon's link which triggers the download...
The link which won't work if I am not logged in as administrator looks something like this: http://.../Dokumente/tabi...ult.aspx?EntryId=365 (where tabid 64 is the DMX including page).

Furthermore: How can I influence which types of documents shall be displayed within the search result? Now everything is returned, even links and folders which, of course, can't be downloaded as document.

Thx for any inputs
Oliver
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
06/08/2011 11:47 AM
You can edit the search ascx by hand but this requires a basic asp.net background. In due course we will split off this bit to its own extension so we can add more settings to it. That way you can edit the source code and make requested changes as well.

Peter
oliver
New Member
New Member
Posts:19


--
06/09/2011 9:26 AM
Thx for the answer, Peter. To adjust the search.ascx might be the most simple solution for now. But it is hard to keep track with such changes, with the next update they will be overwritten and lost.
Is there actually a documented API for DMX if I would need to write my own module? Do you maybe have some trivial examples somewhere on your page? (couldn't find any)

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
06/10/2011 11:43 AM
There isn't. And you are right that you run the risk of having stuff overwritten upon update. That is why we advise in cases like this to develop this as a stand-alone module. If you have the partial source you'd copy out the codebehind of the search.ascx and tweak that to your liking.

In your case you may not even need to do that. You could have an ascx inherit from the search control of DMX (as long as you keep all the asp.net controls on the control) and just tweak the rendering. I'm not sure how comfortable you are with asp.net webforms programming.
oliver
New Member
New Member
Posts:19


--
06/10/2011 1:50 PM
Ah you're right, I didn't think yet of a simple inheritance. It is definitely best if I could leave the original search-control untouched, thx for the input...
oliver
New Member
New Member
Posts:19


--
07/07/2011 11:18 AM
Hello Peter

Is there a way to figure out all items (and their names) which are available in Container.DataItem? One of the new adjustments I have to fullfill is to selectively show the items - e.g. folders shouldn't be listet. For that task I need to figure out somehow the type I am dealing with, but I have no idea what is the name of this field.

Thx for any tipps!
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
07/14/2011 3:07 PM
The easiest is if you have sql profiler installed you can spot the sql being sent to get the data. It's an extensive list of fields that gets returned.

Peter
You are not authorized to post a reply.