views:

14

answers:

1

I have got a simple question, but the answer is hard to find. I want to put a contentquery webpart with a custom xslt on my page, but it has to render extra links if the page is opened in edit-mode. So, if (SPContext.Current.FormContext.FormMode == SPControlMode.Display) : show some extra links near the items in the xslt.

How can I achieve this? I have already overridden the default ContentByQueryWebPart, is that the way? Thanks in advance.

A: 

Damn, how easy. We are in edit mode!!

Roland