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

Bring2mind Forums

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 11/08/2006 2:25 AM by  Eric Swanzey
Changing the View Details Page
 8 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Farrah Roberts
New Member
New Member
Posts:3


--
02/14/2006 11:07 AM

    Hi

    I'm sure this has been asked before, but I can't find an answer anywhere. Can the fields in the document details page be removed?  E.g. our users don't want to use the approval process, therefore they find it confusing when it says a document has been approved, so I'd like to be able to remove or hide that field.

    Thanks.

    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    02/14/2006 3:19 PM
    Farrah,

    Strange as this may seem: this is not a FAQ. In fact I can't remember having seen this before. The quick answer is "no". I'll keep this in mind for future enhancements.

    Peter
    Rob Ralston
    Basic Member
    Basic Member
    Posts:164


    --
    10/18/2006 12:47 AM
    Hi Peter,

    I have a similar situation where I am creating a support portal for a client and they will have many, many different customers using it and will require registration. However, pages will be customized for certain clients, and not all content is visible to all customers. As such, I will be creating lots of security roles for the various customers.

    OK, now the question. I would like hide fields like "Viewable by" in the details view so all the security roles are not visible. Is my only option to completely disable View Details, which I think I can do. If that is the case, can I disable it for non-editors only?

    Thanks for your help,

    Rob Ralston
    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    10/18/2006 9:55 AM

    Rob, Farrah,

    Unfortunately you can't set visibility per field as this list is generated in code. I'll make this available in the next major upgrade. Having said that, here is a general note about changing pages.

    There are 2 routes to modify the so-called ViewDetails page: you can edit the ViewDetails.ascx or you can create a new one. The second option allows you to create a different ViewDetails for every portal if that is necessary as you can change the 'wiring' by specify in the DMX_Extensions table what ascx to load for ViewDetails. The first will just alter it for everyone.

    When altering the page keep in mind that as a general rule you must not remove any elements that have runat="server" in the tag. Having said that, you can easily edit the html to make stuff disappear. you can specify on most regular html elements style="display:none" and it will disappear. For asp.net elements you can add Visible="False" (note that this is not 100% guaranteed as the visiblity might be set in the code). Finally you can enclose parts of a page using div style="display:none" to remove stuff.

    General precaution: keep a copy of the original ascx when you start to edit and do it progressively, testing every step along the way.

    Peter

    Rob Ralston
    Basic Member
    Basic Member
    Posts:164


    --
    10/18/2006 10:34 AM
    Hi Peter,

    Thanks for the quick response. I had already looked in ViewDetails.ascx, and I still can't find any reference to the "Roles that can View" or "Roles that can Edit" (or many other items) so I must be misunderstanding your instructions. If you could give more detail, that would be great.

    Also, glad to hear you will include configuration of this in next major upgrade. Will you allow visibility based on type of user, as you do with command buttons?

    Thank you,

    Rob Ralston

    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    10/18/2006 1:20 PM
    Hi Rob,
    The name-value details list is built up out of an array that is built in the module's code. So this part is impossible to adjust in the fashion I described above. I'll make it more accessible in a future version.
    Peter
    Rob Ralston
    Basic Member
    Basic Member
    Posts:164


    --
    10/18/2006 1:29 PM
    Thanks, Peter.

    Am I correct that I can completely disable the "View Details" action, but leave the file type Icon?

    Rob
    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    10/18/2006 2:12 PM
    Rob,
    Not exactly. You can rewire the ViewDetails page to point to something else. This would be useful if you want to have a custom version of this page.
    Peter
    Eric Swanzey
    New Member
    New Member
    Posts:74


    --
    11/08/2006 2:25 AM
    Bravo!
    You are not authorized to post a reply.