0

I was admiring the managed metadata navigation. When you select a list, a webpart automatically appears in the quick launch side bar. This can be used for filtering list items.

When you select another site element, the web part is no longer visible.

Is this difficult to do? Basically attach a web part to the quick launch and detach it, when the list loads or unloads?

1

As I understand your question, all these functions could be implemented with no problems.

Though, I recommend you to use not a webpart, but a user control, and attach it to your pages using Delegate Control approach.

Inside your control, you can check Request.RawUrl or enumerate webparts on the page using SPLimitedWebPartManager, or whatever.. - to determine, if the control contents need to be shown. Based on that knowledge, you can finally setup Visible properties of inner controls.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.