How to use the list from another site in MOSS?

I have a list of ads on one site. I want to add it as a web part to the top of each sub site. How to do it in MOSS?

+5
source share
6 answers

Impossible to do this. Lists are limited to only one site.

The only option you have is to use the content request web part (available in the SharePoint standard or better).

It describes how you can use CQWP.

There is also an extended community version here .

You can embed them in your website templates.

+1
source

.

-, , WSS 3.0, CQWP ( MOSS , ). , CQWP.

-, , DataFormWebPart , , , . Sharepoint Designer , -. "", " ..." / , . DataFormWebPart node , . Sharepoint Designer , , .

, DataFormWebPart , , : DataFormWebPart File/Export/Save Web Part to.../Site Gallery, -.

+2

SPList SharePoint. u , , RenderAsHtml(). , RenderAsHtml() SPQuery . SPQuery Query. RenderWebPart() -:

SPSite site = SPSite (siteURL);

SPWeb web = site.OpenWeb(webName);

SPList = web.Lists [listName];

SPQuery = SPQuery();

query.Query = queryString;

string html = list.RenderAsHtml();

output.Write(HTML);//output - HtmlTextWriter RenderWebPart.

0

- - . MOSS, WSS, - - , .

0

- - - Content By Type Codeplex. .

See: http://www.codeplex.com/eoffice

0
source

All Articles