![]() |
SPSFAQ SharePoint Server Frequently Asked Questions |
|
Customising SharePoint
SPSFAQ030112 - How can I customise the News/Announcements/Quick Links WebPart? - 0 Comments - stephencummins - Wed, Dec 12th, 2001 - Customisation If you click on the "Content" tab of the dashboard where the web part is located, and then on the web part name, you are presented with the web part's properties. Click on the link labeled "Show Advanced Settings". Near the bottom of the page is a list box labeled "Store the following data for this Web Part:". The second line defaults to '"DAV:getlastmodified" DESC' which means that this web part will be sorted by the last modified date and in descending order.
You can change the "DAV:getlastmodified" to "DAV:href" to sort by the URL, "DAV:displayname" to sort by the filename, "urn:schemas-microsoft-com:office:office#Description" to sort by the description, or "urn:schemas-microsoft-com:office:office#Title" to sort by the title. You can also change the DESC to be ASC to sort in ascending order. If you change the number at the end, It's "5" by default, increase this to increase the max number of items. Change it to "empty" to have no Maximum. SPSFAQ030111 - How do I index ZIP, PDF, XML (etc) files? - 0 Comments - stephencummins - Wed, Dec 12th, 2001 - Customisation Make sure you also put the corresponding .GIF file in the Portal\Resources\DocTypeIcons folder. You have to enable OCR with the pre-installed .tiff ifilter in SharePoint, see the Administrator's help files.
For info on Icons and iFilters in SharePoint Team Services, visit http://www.sharepointtips.com SPSFAQ030110 - How to Extending/modifying Sharepoint Portal Server Web Folder's Web View of workspace folders? pasi.heinonen@iclinvia.com - 0 Comments - stephencummins - Wed, Dec 12th, 2001 - Customisation This is very fancy tip that I have discovered couple of months ago:
Like in windows, web folders also use html templates that user can modify each folder's view. SPS Web Storage Workspace's webfolder-templates located under: C:\Program Files\Common Files\Microsoft Shared\Web Folders\1033\WebView -folder (of course your drive-letter mght be anything else than c: :-). There is seven different template, one in each wss-foldertype: 1. CATEGORY.HTT for Categoryfolder template 2. CLASSICF.HTT for Knowledgefolder template (normal document folder) 3. MANAGMNT.HTT for Management folder template 4. SCHEMA.HTT for Management/Document profiles folder template 5. SEARCH.HTT for Management/Content Sources folder template 6. SMARTF.HTT for Smartfolder template (enhanced document folder) 7. WORKSPC.HTT for Workspace root folder template Templates are actually html-files with html, css and vbscript little like windows folder templates-files. You can modify these templates view and logic by several ways: 1. With notepad or some html-editor to modify view and logic 2. Take advantage of W2K Customizing Folder Wizard to design view 3. Use WinXP folder customizing to design view There are also Images-folder that contains tiny approvalroute-images(GIFs) that loaded over icons during routing visualising document route state. You can find three images: COUT.GIF = Checkedout-pen PEND.GIF = Pending approval-clock APPR.GIF = published-star There are also two more images that SPS uses, wvleft.bmp and wvline.gif. These two can be found under windows foldertemplate dir in c:\winnt\web\ More "under the hood" details about Extending Explorer Views can be found from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmag00/htm l/w2kui2.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwebtool/h tml/webview.asp SPSFAQ030109 - Can I change the SPS logo? - 0 Comments - stephencummins - Tue, Dec 11th, 2001 - Customisation Either overwrite the Dashlogo.gif file in Portal\Resources, or go to the "settings" of your dashboard (eg Home) and click "Advanced Settings, here, you get options like:
Use the following image in the header: Use the following image (approximately 16 x 16 pixels) to represent this dashboard in listings, such as the dashboard navigation bar: Order when displayed with other dashboards in the navigation bar: SPSFAQ030108 - how to display the content of a SPS folder in a IFrame without the title bar ? Lorie.M.McMillin@monsanto.com - 0 Comments - stephencummins - Tue, Dec 11th, 2001 - Customisation I don't know if this will help, but I wanted to display the contents of a
document folder, having the same functionality that the news or announcements web parts have. We set up a web site on the same box to build web parts which call against the back end data. I then built an ASP page with the following code ... <LINK rel="stylesheet" href="http://servername/workspace/Portal/resources/global.css" /> <LINK rel="stylesheet" href="http://servername/workspace/Portal/resources/spsdash.css" /> <% on error resume next 'instantiate my objects on server Set oFold = Server.CreateObject("CDO.KnowledgeFolder") Set oDoc = Server.CreateObject("CDO.KnowledgeDocument") Set oRS = Server.CreateObject("ADODB.Recordset") 'supply my folder choice. sFileName = "http://servername/workspace/Documents/My Folder/" 'this code opens the folder oFold.DataSource.Open sFileName,,3,-1 'bind the Recordset to the Items in the Folder. Set oRS = oFold.Items Response.Write "<table border=0>" 'Loop through the items in the document folder Do While not oRS.EOF 'the document url is obtained from the recordset field 2. I still need to understand this more, but it works. sFileName = oRS.Fields(2) 'open that document to get at it's profile properties oDoc.DataSource.Open sFileName,,3,-1 Response.Write "<tr><td colspan=2><a href='" & oDoc.Href & "' target='_top'><strong>" & oDoc.Title & "</strong></a>" Response.Write " <font size=1>(size: " & oDoc.GetContentLength & "k)</font></td></tr>" Response.Write "<tr><td> </td><td>" & oDoc.Description & "</td></tr>" oRS.MoveNext Loop 'end the table Response.Write "</table>" Set oFold = Nothing set oDoc = Nothing set oRS = Nothing %> I then set up a web part to point to this ASP page. The result is the docs in that folder listed out with their title as a hot link, the file size next to it, and the file description just below. Looks just like the news web part. SPSFAQ030107 - How do you map the M drive to the WSS? - 0 Comments - stephencummins - Tue, Dec 11th, 2001 - Customisation Here's a quote from Gary A Bushey's FAQ
3.6) What is the "M" drive and how do I get map it? The "M" drive is a way to access the SharePoint Portal Server's Web Storage System via the Window's Explorer. In contrast, the Web Folder only allows you to access individual workspaces. To map the "M" drive, run the following command from the Command Prompt "subst m: \\.\backofficestorage". If you already have a "M" drive mapped, use a different letter. If you wish to always have this drive mapped, you will need to make the following change to the registry. HKLM\System\CurrentControlSet\Services\EXIFS\Parameters set the "DriveLetter" to "M" or whatever drive letter you wish. DO NOT set security of anything under the workspaces folder using the M drive, or attempt to use the M drive to access anything inside the workspaces folder. The only use for this drive is to access the Applications folder for development, or as specified in documentation or instructions from MS. Using M drive to set security on workspace contents or access workspace contents (except read-only), is likely to break your server. It is HIGHLY recommend the answer to any question about the M drive is to see http://www.microsoft.com/sharepoint/techinfo/deployment, open the document titled " Installing SharePoint Portal Server" and refer to appendix B. SPSFAQ030106 - Can you translate the AUTH_USER variable into the actual full name of the person in the NT Domain? a.lamont@nathantraining.co.uk - 0 Comments - stephencummins - Tue, Dec 11th, 2001 - Customisation If you have the logon name of the user you can use ADSI
to read other values from the account. This requires ADSI installed on the server - if not running Win2K/Active directory. This is not specific to SPS at all - but is an programming interface generally available to Active Directory. anderbs@microsoft.com SPSFAQ030105 - Is there anyone who can tell me how to start with building webparts?c.p.chau@student.tue.nl - 0 Comments - stephencummins - Tue, Dec 11th, 2001 - Customisation To make your first Web Part, just open your SharePoint Portal (logged on as
Coordinator) Click "Content" then at the bottom of the page, "Create a new web part" then stick some html in the box entitled: Embedded content. (This content will be used when the above link is not available or not specified): for example <p>hello world</p> Save twice and there you are! Page 23 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 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||