1

Total DNN noob. I can code some WebForms and MVC, but having no luck finding anything concrete out there about doing what I want in DNN

How would I go about setting up a client portal in DNN? I want to have separate areas for the client, including a main dashboard that aggregates content for the client from the other areas. The other areas would include a matter area (with matter information - some auto generated for client, other information to be input by client), a documents area, an events area, a tasks area, a communications area (for chat, or forum style questions) and a profile area for the client (contact info, invoicing, etc.).

What I'd like is for a client to login and see only their items. An admin would log in and get the same "screens" or "areas", but with aggregated content for ALL users.

I know that's a lot, but I would imagine setting me up with a way to do the overall app and then how to create the areas to navigate to would get me going. I know there are modules for each of those things out there, but a) I wouldn't know how to integrate this into one client app and b) some are cost prohibitive.

Most of what I find focuses on setting up one module. Do I go that route and set up user controls within for the different areas? Or do I create separate little modules and tie them together? This is primarily where I am stuck. I can create something like this with standalone web forms or MVC. Hooking into DNN is where I get stuck.

I appreciate any guidance / samples.

4

1 に答える 1

1

ここにはたくさんの質問があり、これを行う方法はたくさんあります。これを処理するためにサードパーティのモジュールを使用することもできますが、どのモジュールが必要な機能を提供するかを正確に把握する必要があります。

カスタムを行いたい場合は、ここが非常に簡単になります。ユーザーの DNN は、ユーザー ID とロールを管理できます。あなたが言っていることに基づいて、UserId に基づいてすべての情報を保存するカスタム モジュールがいくつかあるようです。デフォルトでは、現在のユーザーの情報のみを表示します。ただし、ユーザーが特定のロール (たとえば「管理者」など) に属している場合は、すべてのコンテンツが表示されます。

これは非常に簡単です。PortalModuleBase から継承する DNN コントロールでは、UserId をプロパティとして使用できるからです。次に、 UserInfo.IsInRole("Administrators") を使用して管理者を確認できます。

于 2013-07-12T15:06:10.057 に答える