I often forget the location of stsadm, the admin command line tool for MOSS. Here it is:
%COMMONPROGRAMFILES%\microsoft shared\web server extensions\12\bin
bye
a blog on... well, many things, like internet, web development, mobile devices, flight simulation, and many other subjects... written and directed by "synchronicity coordinator" ila.
I often forget the location of stsadm, the admin command line tool for MOSS. Here it is:
%COMMONPROGRAMFILES%\microsoft shared\web server extensions\12\bin
bye
Posted by
WinstonWolf
at
1:41 AM
0
comments
Labels: MOSS2007, sharepoint, survival
Customizing Sharepoint 2003, the next step...
Maybe you saw this other article I posted some weeks ago... after that, my job went on, but eventually I decided - actually my customer decided for me ;-) - to try to use a new site template in order to solve the customization problem I'm facing.
What I have to manage is something I cannot solve "simply" hacking the CSS or modifying the .aspx pages... so I'll try to have a new "MPS" (the WSS Multi Page Site) template different from the original one.
Unfortunately looks like this cannot be done; I managed to "clone" the MPS structure in a new one, but when I go and use it to create a new site I get a series of errors in the WebParts stating that "This Web Part was designed for use on a Microsoft Meeting Workspace". And reading around I found that yes, you can have your site template that originates from another one, but you CANNOT use the Multipage Meeting template as the starting point.
I have to find another way.
I'll try also to share with you the steps I'm taking to do this.
First: I make a copy of the STS directory to a new STSNEW directory. All this happens under
C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033\
and as I think that all the action will happen there... I won't repeat that path anymore, for reading simplicity I'll substitute it with [PATH].
So I have this STSNEW! What I do with it?
Uhm... open the [PATH]XML folder, and take a look to the two files:
WEBTEMP.XML
WEBTEMPSPS.XML
Interesting stuff!!! So there are the correspondances between folders names and sharepoint usage of the templates...
In my case the interesting one is the WEBTEMP.XML (the WSS one).
First, I make a copy of the file, and name it WEBTEMPSTSNEW.XML.
In it I leave only the "STS" node, renaming it to "STSNEW" (as the containing folder I created before); to this new node I give an ID over 10000 (Microsoft's hint...). Then I change in some way the descritpions, so that later I will be able to choose between the STS and STSNEW styles. Save. Let's see...
No, it's not going well: when I open the main page in Sharepoint I get an "Exception occurred" error, that it's not very esplicative, I'd say. But after a iisreset /restart "magically" Sharepoint is back with us. Good.
Now let's see if our STSNEW can be of any use.
First: I try to create a new WSS site based on this site template.
Everything works fine, I can find in the site structure list the new description I inserted in the XML file, and use those templates to create my site.
So this first part is ok.
Now I have to find a way to "mimic" the tabbed, multipage structure of the "Multipage Meeting Workspace" template here in this "simple" WSS site I created. I'll use the "Team Site" structure (taht in my new site template I named as "New Team Site"), so that I will be able to modify also the the home page (default.aspx).
Let's try this way: create a document library that contains a list of web part pages, so that I can have all the single pages I need. For a good explanation of this, see this blog post from Daniel McPherson.
Then I'll try to create a web part for the "tabbed" navigation.
Maybe I can find something ready on the web... First I try this one from GotDotNet.
Looks great, there is also the code. Downloaded, and installed with the command:
stsadm -o addwppack -f "C:\EasyTabPartsDeployment.CAB" -force -globalinstall
And it works!!!
From now on the path is (more or less) clear: I haev to modify the new site template layout, develop all the new webparts I need, and so on.
Bye!!!
Posted by
WinstonWolf
at
3:34 AM
0
comments
Labels: microsoft, sharepoint, windows
I know, today we can use the new Microsoft Office Sharepoint Server (MOSS), but there are a lot of Sharepoint 2003 installation around, and recently I had to face some request from a (french, Paris-based) customer that asked me to make some "deep" customizations for their intranet, both in terms of look&feel and of webparts disposition on the page.
This request was both for the Sharepoint Portal pages and for the Windows Sharepoint Services sites and pages.
I'm not discussing here the "layout" modification, maybe I'll collect some good links that explain this task, let's say here that this was in my case solved mainly with some (not so easy) CSS modifications.
Let's focus on the webpart zones disposition, and how it can be changed.
First of all: I assume in all the samples below that your Sharepoint is installed in the default folder on drive C:\, and that you have the english setup (so in the paths you'll see the \1033\ folder, if you have other language packs you will have to deal with other paths).
The standard, "out-of-the-box" placement of the webparts in the page is ok for a lot of us; but sometimes you want to have some particular disposition of the webparts, in order to make a better use of the page space for your particular needs.
To reach this goal you will have to make some HTML coding in some .aspx pages, located in different paths. These paths correspond to the various "kind" of pages that Sharepoint 2003 offers to us: The Sharepoint main pages, the pages for the various Areas, the News pages, the Topics pages... and on and on down to the Windows Sharepoint Sites pages, both the simple and the Multi Page one.
All the .aspx pages you'll want to modify reside under this path:
C:\Program Files\Common Files\Microsoft Shared\Web server extensions\60\Template\1033\
Down that folder you'll find 13 subfolders. Each folder corresponds to a particular "kind" of page template on the Sharepoint portal or in the WSS sites. Below I'll give you a pair of lists that shows this correspondance.
The main file you'll find under the folder (let's say the first, the \SPS folder) is default.aspx.
This file, at run time, is used by Sharepoint as a template that is "filled" with the webparts you'll have decided to place in the various web part "zones". These zones are explicitly defined in the html of the default.aspx page, and have this look:
<WebPartPages:WebPartZone runat="server" Title="loc:Left" ID="Left" FrameType="TitleBarOnly" AllowPersonalization="false"/>
I will not enter in the details of the various tags; here we'll on ly note that the "ID" tag is the one that gives the name you will see in the sharepoint page, when in design mode.
There are many of these WebPartZone already in place in your default.aspx, go and look for them; you'll see that they are inside an html structure that you can easily hack for your needs; you can alse define more WebPartZones around the page, only be careful to give them unique IDs.
The following list shows each SharePoint Portal Server 2003 area or subarea and the corrisponding folder:
- Root site: \SPS folder
- My Site: \SPSMSITE folder
- News: \SPSNHOME folder
- Company News, External News and Press Announcements, and all areas that are under the News area: \SPSNEWS folder
- Site Directory: \SPSSITES folder
- Topics: \SPSTOC folder
- Divisions, Human Resources, Locations, Marketing, Operations, Projects, Resources, Sales, Strategy and Support, and all areas under the Topics area: \SPSTOPIC folder
- Community Template: \SPSCOMMU folder
Then there are some other folders that are relating to the Windows Sharepoint Services side of the coin; the two main folders are:
- \STS: all the pages for the WSS sites
- \MPS: for the Multi Page Template pages under WSS sites
This last one is a little more tricky, because when you modify the default.aspx page... this modifications will show up only in the main page, and not in the various subpages. To have also these pages modified you'll have to edit another page, in the folder:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033\MPS\DOCTEMP\SMARTPGS
The file is named spstd1.aspx. modify and save it... and you're done.
Now: I'm not saying that all this process is easy and safe; you'll want to have backup copies of all the files you modify, and you'll want to make a lot of experiments before deploying all this in production... but as soon as you make the first test you'll find comfortable with the other.
Hope this helps...
Andrea
Posted by
WinstonWolf
at
3:03 PM
0
comments
Labels: microsoft, sharepoint, windows
I found today this new blog entry in the Roberdan's blog (read more from here if you are interested in microsoft technologies and in communities): it's a collection of links on Sharepoint technologies, on Web Content Management in particular.
Actually in Roberdan's blog you can find much more than this, but in this precise moment this post is really useful to me... :-)
Thanks Roberto!!!
Posted by
WinstonWolf
at
1:13 PM
0
comments
Labels: microsoft, sharepoint, windows