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

Bring2mind Forums

ViewCollection : Details.ascx
Last Post 03/10/2009 1:35 AM by Rob Ralston. 2 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Benoit
New Member
New Member
Posts:6


--
11/13/2008 11:01 AM

Hi Peter,
How I can choose which informations are displayed in "DetailsContent" pane ?

I put some code in details.ascx :




But it's not a clean method.
Have you a clean method ?

Benoît

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
11/13/2008 12:06 PM
Hi Benoit,

I'm not sure what you mean by 'clean method' but the details pane works as follows:

1. The engine looks at DMX_Extensions for DetailsPane extensions for the portal.
2. It loads those as inheriting the DetailsBase class
3. This class gives you Entry and EntryId as the properties with which you can do your stuff
4. It puts all details panes one after the other in tabs and displays them in the details panel

So you see you can extend it using these panes. If you want to add to the only details pane being shown, then just go ahead and change the ascx. Make sure you keep a backup copy though, as it gets overwritten during an update.

Peter
Rob Ralston
Basic Member
Basic Member
Posts:164


--
03/10/2009 1:35 AM

I stumbled on this thread today and found it helpful. While I have wanted a DMX UI option to either fully disable the Details pane (i.e., hide it altogether) or be able to control what is visible through UI option settings.

Well, while this is not ideal, because it is not persistent, since the details.ascx file will get overwritten with each DMX version update, it at least pointed me to where I could turn off sections of the Details pane. For example, I do not see any value to expose the Permissions section, where it shows all of my various security roles, to the standard user. Not only is it meaningless to them, I see it as a security issue.

In any event, I found I can turn off any section by surrounding it with the standard comment characters, as you would use in web.config: <!--   section to comment out -->

In my case, I did this around Permissions, Status and Versions (my client only keeps one version). The sections are very obviously named, so this is very easy to accomplish.

This file is in the DMX Controls folder.

Zip up the file for backup so it can be quickly replaced after the next upgrade (if I remember!).

I hope this helps someone else.

Rob Ralston

You are not authorized to post a reply.