Custom Site Definitions - Master and Detail sites
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Custom Site Definitions - Master and Detail sites

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
TomC
Guest





Posted: Wed Jan 19, 2005 11:27 pm    Post subject: Custom Site Definitions - Master and Detail sites Reply with quote

I am trying to create two custom site definitions, "Custom Master" and
"Custom Detail", which are similar to a Master site with Detail page,
except
the Master and Detail will both WSS sites. The Master Site would be created
as a top level site, and it would have multiple detail sites under it, but
limited to one level deep.

Master
Detail1
Detail2
Detail[n]

Both Master/Child sites function as standard WSS site within an SPS Portal,
but with an additional capability
of being able to use a predefined custom list (defined in custom site
definition) on the Master site that could be shared with the Detail
sites. This custom list would have one or more columns to be used as a
filter on the Detail page.
(eg:

Master Site - MyCustomList
=========
"Filter" A B C
Site1 1.1 abc 45
Site1 1.2 abd 46
Site2 2.1 def 5


Detail 1 Site- MyCustomList
============
"Filter" A B C
Site1 1.1 abc 45
Site1 1.2 abd 46

Detail 2 Site List- MyCustomList
============
"Filter" A B C
Site2 2.1 def 5


1. I know it is possible to create a Master site, and create a single
Detail page filtering by a param,
but I need the Detail site to contain their own web parts with own
information also.
(eg: not shared with their parent site) as well.
Is this possible with Custom Site Definitions?

2. Is it possible with a custom site definition, to restrict subsites to a
specific type of site definition?
(eg: On any site that is a "Custom Master", only "Custom Detail" subsites
can be created underneath).

3. Is is possible with a custom site definition to specify that no subsites
can be created below this site.
(eg: On any site that is a "Custom Detail" Site Definition", no subsites
can be created underneath)?

4. Is it possible to somehow set the default value for a list column based
on a particular sub site, so that when the user
adds a new item to the list, the filter column automatically defaults to a
value that is specific for that site.
(eg: Sets the "Filter" column to "Site1" when on Detail1Site and "Site2" or
Detail2Site).

5. Is it possible with a custom site definition to specify metadata columns
to be added to each subsite that needs to be
filled in by the user when a site is created
(eg: When the new site is created, the user is asked to fill in a Project
Number?)

6. In a custom site definition, how do you specifiy how to use a list from
its parent site?

7. Is is possible within a custom site definition to define a connection
between two web parts? If so, how is this achieved.

Any information, examples, links, other possible solutions to these problems
are appreciated.
Tx.
Tom
Back to top
Wei-Dong XU [MSFT]
Guest





Posted: Thu Jan 20, 2005 6:49 am    Post subject: RE: Custom Site Definitions - Master and Detail sites Reply with quote

Hi Tom,

From my view, I'd suggest you can create lists for the requirement; which
can fit your need very well and you can easily to read the subsite list
data via SPS Object Model. Furthermore, on the page UI layout, you can use
the Frontpage2003 to design and after that, export the whole site as one
package, then deploying the package will be very conveninent for you. At
Frontpage 2003, open your customized site and choose
"Tools->Packages->Export..."; adding the site and press ok. One FWP file
will be saved into your disk.

Moreover, on the customization of Sharepoint, this site will be very
helpful for you:
http://www.sharepointcustomization.com/default.aspx

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong XU (WD.XU)
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Back to top
Wei-Dong XU [MSFT]
Guest





Posted: Thu Jan 20, 2005 6:49 am    Post subject: RE: Custom Site Definitions - Master and Detail sites Reply with quote

Hi Tom,

1. If you are going to add one web part in your detail site to store the
information. You can create one web part for that at the template.

2. From template, there is no way to do so. After creating one sub site,
WSS will go to the templatepick.aspx page for choosing one template for the
new site. This page is located at:
%ProgramFiles%\Common Files\Microsoft Shared\web server
extensions\60\TEMPLATE\LAYOUTS\1033

3. Restrict on the creation sub site can be finished from the security
permission control. Without the permission below, the customer can't create
the sub site:
Create Subsites - Create subsites such as team sites, Meeting Workspace
sites, and Document Workspace sites.

4. We can't control the web UI except you create your own list.
"(eg: Sets the "Filter" column to "Site1" when on Detail1Site and "Site2"
or Detail2Site)."
So this requirement is not possible.

5. From my understanding, the meta column you mean here is the Fields of
the WSS-provided list.
For adding the meta column, you can read other list's schema.xml to see how
to do this.

6. This requirement should be done programmatically. From template, as I
know, we can't do so.

7. From the CAML definintion, the list element doesn't contains one
attribute for the connection; so template suppports this feature.

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong XU (WD.XU)
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB