We have just created a custom template for our SPS areas that contains a
discussion web part.
We did this by editing the onet.xml file.

The templates work find but when the discussion web part initialises it
always comes up in the default view...but we *always* want it in the
threaded view. Is there any way we can specify in the template (onet.xml?)
that the default starting view for the 'discussion web part' is
threaded'? - rather than having to go into every area and change the view
after creation?

Al Blake, Canberra, Australia

RE: set 'discussion web part' to initialise in 'threaded' view by david

david
Tue Jun 28 04:56:05 CDT 2005

Create a threaded view for a discussion board
To add additional view functionality while preserving the default Threaded
view, create a threaded view for your discussion board by using FrontPage
2003. Adding a new view does not affect other discussion board functionality.

Note To create a threaded view that other users can see, you must be a
member of a site group with the Manage Lists right. By default, the Manage
Lists right is included in the Web Designer and Administrator site groups.


On the FrontPage 2003 File menu, click Open Site.
In the Look In box, locate and click the Web site that you want to open, or
type its URL in the Site Name field.
Click Open.
In the Folder List, open the default view of the discussion board by
expanding the Lists folder, clicking the folder for the discussion board you
want to change, and then double-clicking the file AllItems.aspx.
In the File menu, click Save As.
In the File Name field, enter a filename for the new threaded view, and then
click Save.
This creates a threaded view. Although the view has a new filename, it will
appear as â??Threadedâ?? in the SharePoint site. Use the following steps to give
the new view a unique display name.

With the new view still opened in Page view, at the bottom of the document
window, click Code.
In the HTML code, locate the string DisplayName="Threaded" and change the
name â??Threadedâ?? to the new display name, such as DisplayName="New Threaded".
On the File menu, click Save.


"Al Blake" wrote:

> We have just created a custom template for our SPS areas that contains a
> discussion web part.
> We did this by editing the onet.xml file.
>
> The templates work find but when the discussion web part initialises it
> always comes up in the default view...but we *always* want it in the
> threaded view. Is there any way we can specify in the template (onet.xml?)
> that the default starting view for the 'discussion web part' is
> threaded'? - rather than having to go into every area and change the view
> after creation?
>
> Al Blake, Canberra, Australia
>
>
>

Re: set 'discussion web part' to initialise in 'threaded' view by Al

Al
Thu Jun 30 00:56:58 CDT 2005

Thanks for the reply Dave,
However that isnt quite what we wanted to do ;)
There is already a built-in threaded view in the discussion web part. We can
easily select that by managing the web part.
However that means we have to do that for each new area created from that
template.
We get the discussion webpart included in the new area as its created by
modifying the onet.xml file within the template.....


<View List="109" BaseViewID="0" WebPartZoneID="MiddleRightZone"
WebPartOrder="1" />

...so each new area based on this template has a dicussion board in
it....but it shows the 'default' view unless we manually change it.