Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Grouped Listings and Links for You - Saving as a template

  Asked By: Alexandria    Date: Jul 28    Category: Sharepoint    Views: 1365

I have a department that has created several areas and subareas and has a Grouped Listing Webpart displaying some standard information. He has found that as he goes and creates his various areas and subareas he has to repeatedly setup this Group Listing Webpart and add the same information.

Is there a way to save one of his Group Listings with the contents, so he can insert it into his new areas and subareas? Also, if he makes an update to, maybe, the template will it update all the areas using this same Group listing? Or will he have to manually go change it everywhere?

My other option is to have him create a List using Links, then save one of them with the content as a template. But he would still have to update this information in every area and subarea. Also, the formatting of the Group Listing they really like.



4 Answers Found

Answer #1    Answered By: Gopal Jamakhandi     Answered On: Jul 28

You can go the template  route to quickly add  it to the various areas, but yes he will have to go into each one to make updates after the fact. If the areas  utilize different site definitions, you will have to use this workaround to see the new template as he moves from area  to area to create  new instances of it:


Another option  is to create an HTML file, store it on the portal in a central location, and then using a web part like the content  Editor Web Part, display it on all the areas. This way he only has to update  the HTML file in order to affect all the instances.

Or you could use a roll up web part, CorasWorks specializes in them. Or you could build your own roll up web part.


Yet another option is to use the SmartPart and store the content in an ASPX file on the web server and reference it in the SmartPart.


Answer #2    Answered By: Keenan Whitehead     Answered On: Jul 28

I meant ASCX (not ASPX) for the SmartPart solution.

Answer #3    Answered By: Damon Garner     Answered On: Jul 28

You could also use the web capture web part. Simply place the listing  part on once page and use the web capture part to grab it from another.


If you want to remove the “last updated” message from the web part try my solution I have previously posted.

Well after some looking I was unable to find anyone that has removed
the "Web Capture last updated at.." message from the capture web
part. So decided that I would try and tackle this one.

The capture part works by requesting the captured page using
Microsoft.XMLHTTP. It then post the results to an aspx page in the
_wpresources directory. That aspx page in turn uses
WebCaptureWebPart.ClipAndRenderClientCapturedContent to trim the
content down to the requested table. The
ClipAndRenderClientCapturedContent method uses an httpwriter to
write the necessary content  to the response.output.

My approach was to keep the method
ClipAndRenderClientCapturedContent from writing directly to
reponse.output and instead substitute my own httpwriter. Then get
the content that was written to it, remove the updated message and
write that to the response.output.

The aspx page that you need to change  is called wccapture.aspx you
will find it in the directory \Program Files\Common Files\Microsoft
Shared\web server

Change the following lines in the method RenderCapture()

//HtmlTextWriter writer = new HtmlTextWriter(Response.Output);
StringBuilder renderedOutput = new StringBuilder( );
StringWriter strWriter = new StringWriter(renderedOutput);
HtmlTextWriter writer = new HtmlTextWriter(strWriter);
captureResult = WebCaptureWebPart.ClipAndRenderClientCapturedContent(
Context,writer,Request.InputStream, contentType

CompareInfo comp = CultureInfo.InvariantCulture.CompareInfo;

string modifiedOutput = strWriter.GetStringBuilder().ToString();
int firstTR = comp.LastIndexOf
int length = modifiedOutput.Length;
int lastTR = comp.LastIndexOf
modifiedOutput = modifiedOutput.Remove(firstTR,length-firstTR-

Answer #4    Answered By: Dameon Dejesus     Answered On: Jul 28

Once you have the Grouped Listing Web Part formatted the way you want
it, can you Export it as a DWP and then import it into each new Area
created? Or evern place one DWP for each site definition/LCID
combination into the List Template Gallery for the entire Portal Site

Didn't find what you were looking for? Find more on Grouped Listings and Links for You - Saving as a template Or get search suggestion and latest updates.