SPSFAQ
SharePoint Server Frequently Asked Questions
affiliate links


Buy a sponsored link

You could have a link to your website on every page of SPSFAQ.


Customising SharePoint

SPSFAQ030140 - What files are responsible for any links that finish with /?Cmd=something I want to change the yellow line? Sasa Bart - 0 Comments - stephencummins - Fri, Apr 5th, 2002 - Customisation
The pages that are opened with ?Cmd=* function (from dbutil.vbs and store.vbs) have different sources, html, xsl, asp....

But, to cut the long story short -

the yellow line ( #ffcc00 ) you want to change can be found in the following
files :

Checkout.asp
CreateSubscription.asp
dbcatalog.xsl
dbcontent.xsl
dbedit.xsl
dbview.xsl
EditProfile.asp
ErrorSummary.htm
layout.xsl
managediscussions.asp
NewFolder.asp
Rename.asp
standard-office.css
standard.css
UploadFile.asp
VersionHistory.asp
wpedit.xsl

I didn't follow the function all the way, but I think the best way is to change "#ffcc00" into the color of your (or

costumers) choice. That way all pages that are generated by using the files from this list will be affected.

Tihomir Jaksic
SPSFAQ030139 - I wanna login using an explicit Connection with ExOleDB. Does anybody know the syntax of the connection string? Christof - 0 Comments - stephencummins - Fri, Apr 5th, 2002 - Customisation
We have a script running which performs authentication successfully, it goes like this:

objConn.Provider = "MSDAIPP.DSO"
objConn.Open strWorkspaceurl, strUsername, strPassword

Where strWorkspaceurl is http://myserver/myworkspace. strUsername is the local administrator on the SPS server and strPassword is the password of this administrator. We hope this helps.

Nikander Bruggeman
Margriet Bruggeman
SPSFAQ030138 - Where can i find a search WebPart with "boolean" (NEAR, AND, OR) capabilities? Peter - 0 Comments - stephencummins - Tue, Apr 2nd, 2002 - Customisation
Look on my Downloads page, there are some alternatives there.
SPSFAQ030137 - How can I customize the thesaurus? Monica Gavilan - 0 Comments - stephencummins - Tue, Mar 26th, 2002 - Customisation
The thesaurus is located under \Data\FTData\SharepointPortalServer\Config. It is an xml document and you should be able to modify it using notepad or word pad. Make sure that you keep the document well formed.

DBishop

Thesaurus: tseng.xml
Noise words list: noiseeng.txt
SPSFAQ030136 - Can I open the results of a search in a new window automatically? Frenchy - 0 Comments - stephencummins - Tue, Mar 26th, 2002 - Customisation
Yes, but you have to customise the SearchResultsPart.xsl file. Look for the <A tag, and add the target="_new" that does it for me. The XSL file is located in the Portal/Resources folder.

Pierre
SPSFAQ030135 - Can anybody explain why some functions do not work with file://./ but instead demand http:// ? Christof - 0 Comments - stephencummins - Wed, Mar 20th, 2002 - Customisation
The file: type URL is as far as I know only supported by the Exchange OLEDB provider, not by the Internet Publishing Provider, which generally is used through PKMCDO.

Jan Cirpka
SPSFAQ030134 - How do you create static and dynamic portal web parts using ASP.NET? - 0 Comments - stephencummins - Tue, Mar 12th, 2002 - Customisation
*Abstract*
This document describes how to create static and dynamic portal web parts using ASP.NET.

*Background*
SharePoint Portal Server is based upon the Digital Dashboard specification which defines 2 categories of web parts; static and dynamic. The <ContentType> property within the Web Part XML schema is an enumeration that identifies whether embedded web part content is rendered on the client or server.

Value in schema

Meaning 0 The content is HTML

1 The content is VBScript that is executed on the Web server
2 The content is JScript that is executed on the Web server
3 The content is valid XML, transformed using values provided through the XSL or XslLink properties.
4 The content or ContentLink is a valid ASP.NET user control.

*Creating .NET portal components*

Within the .NET world, Content types 1 and 2 basically become obsolete because they're limited to executing legacy COM-based script within a single function. These web parts are susceptible to the myriad problems associated with COM such as memory leaks and buffer overflows.

Although SharePoint is unable to render .NET components on the web server, there are some tricks ("hacks" actually) to using ASP.NET in your portal solution.

Simply setup your web part with ContentType = 0 (HTML) and set the ContentLink property to the path of an ASP.NET page. The result may look like:

<ContentType>0</ContentType>
<ContentLink>mypages/webpage.aspx</ContentLink>

This web part configuration will instruct the client to request the "webpage.aspx" ASP.NET page, which in turn will render via the ASP.NET web service within the portal dashboard.

You may need to set the <RequiresIsolation> property to true (1) to get the page to render correctly. This property just emits an HTML <IFRAME> tag with your content link property set as it's source.

Although the ASP.NET page referenced by the web part may emit dynamic content, it's still considered a static web part within a portal context because the server is unable to dynamically render and cache the web part itself.

A more elegant solution is to render the ASP.NET code within the portal server, thus making the web part page-aware and allowing CGI parameters to be dynamically passed into them.

The .NET development team's answer to this problem is the user control (*.ascx). .NET user controls make excellent web parts since they represent "pagelets" of web-based information.

By simply extending the Web Part schema to include a <ContentType> 4 that represents a .NET user control and hosting the web parts on a .NET portal server, developers can leverage the benefits of 100% managed code, inter web part event raising, .NET server controls, control caching, session management, multiple languages (no more spaghetti scripts), and the .NET common libraries.

When ContentType is set to 4, the portal server will attempt to render any ASP.NET code found within the <Content> tag. If Content is null, then the server will attempt to load the control found in the <ContentLink> property.

The Passage Portal Application Server found at http://www.cubiccompass.com is an example of a .NET web part portal server.

References:

Digital Dashboard Resource Kit 3.0 Help File
[Online] Available http://www.cubiccompass.com/wikinet/docs/ddrk30.chm

Cubic Compass ContentType Extensions, Cubiccompass.com
[Online] Available
http://www.cubiccompass.com/wikinet/Wiki.aspx?ContentType

Mike Leach
SPSFAQ030133 - Can I rely on "urn:schemas-microsoft-com:publishing:DocID" to contain a unique, non-changing ID of a document? Christof - 0 Comments - stephencummins - Fri, Mar 8th, 2002 - Customisation
I looked into this some time ago and even talked to MS about it. There take was the DocID was not intended to be used as a "key". I beleive that not only is it not indexed or retieveable, but a new version of the same parent doc will have another ID.

Page 19 of 24  -  Jump to: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Search options
Search for
   
In fields
   
In category
   
Dated in
   

links
subscribe
Get the latest posts via email:

quick search
Search via Google:

random books


Copyright © SPSFAQ.com, Stephen Cummins Limited, All Rights Reserved