![]() |
SPSFAQ SharePoint Server Frequently Asked Questions |
|
Customising SharePoint
SPSFAQ030184 - Is there any easy way to remove the Delete directory right for Authors? Robert L. Doerr - 0 Comments - stephencummins - Mon, Sep 2nd, 2002 - Customisation I've edited the webpart to hide the option.
Steven Collier To do this, find the file folderinfopart.xsl in the portal/resources directory and copy it out to another directory. Go to line 110 or do a search for "id_delete" and you'll find the long string that builds this link. Start deleting before the "|" symbol, and end after the closing "a" tag and before the closing xsl:if tag. Remember to make a copy of the original before you overwrite the file in Portal/resources with this one. Microsoft won't support this change, so be careful! Personally, I'd suggest putting in another link here to a form that sends an email to someone that means users request a folder delete. Of course, with a Web folder mapped they could still delete a folder! SPSFAQ030183 - How can I create a new Announcement web part and called 'Director's Announcements'? george tankem - 0 Comments - stephencummins - Mon, Sep 2nd, 2002 - Customisation Steps
1. Create a folder called "Director" under portal content via web folders 2. Right-click on director and in profiles section choose announcements profile 3. Export the announcements web parts, and import it as director announcements web part. 4. Go to director web part, click on advanced settings and in the vbscript code locate the code where it replaces portal announcements folder path with default folder path and replace the code with the following code and it should display the announcements in the director folder. strFolderPath = Replace(strFolderPath, "PORTAL_ANNOUNCEMENTS_FOLDER_PATH_HOLDER", "/" & "Portal Content/Director") Amit By setting appropriate rights you can make sure that only directors can see the folder. Nikander Bruggeman Margriet Bruggeman SPSFAQ030182 - We want the Search Results to display custom multivalue-properties instead of the Author-Property, how? Tamer Duerr - 0 Comments - stephencummins - Mon, Aug 5th, 2002 - Customisation You will need to modify SearchFunctions.js to also return your custom metadata.
Gary A. Bushey SPSFAQ030181 - How can I do Server-side debugging in SharePoint? - 0 Comments - stephencummins - Fri, Jul 19th, 2002 - Customisation In Internet Services Manager (MMC):
- Select http://<server>/<workspace>/Portal - Set "Application Protection" to LOW - In configuration/App debugging, enable "ASP client side debugging" and "ASP server side debugging" - Apply & restart IIS - Open SPS portal from IE at least once Now to do the following: - Open Accessories -> MS Script Debugger - Open "Running Documents" - Select the "dashboard.asp" page - search for Execute in the "dashboard.asp" file (you will find it twice at lines 1262, 1264) - add breakpoints to both instances I use the Visual Studio .Net debugger, more powerful than the MS Script Debugger. What also works for me is to add "stop" (VB) or "debugger" (javascript) in the web part code. This asks for the debugger to start and you jump right in your web part code at server-side. I only tested this on the server, don't know if you can do remote debugging... Finally i can test my sharepoint code! Happy debugging! Serge van den Oever SPSFAQ030179 - I want to rename the 'show actions' link. Anyone know where I can do this? Jacob Lane - 0 Comments - stephencummins - Thu, Jul 11th, 2002 - Customisation In the /Portal/Resources directory, you'll find a file called GlobalizedStrings.xml. Search for the 'Show Actions' value & modify it to suit your needs. This file also contains lots of the other labels that you might want to change as well.
Ken Heft SPSFAQ030180 - Is it possibile to expand search results in dashboard site? Nazareno Petris - 0 Comments - stephencummins - Thu, Jul 11th, 2002 - Customisation Searchresultspart.xsl is used to render the XML result to HTML. Modifying this file enables you to show other fields. If you want to show more properties than are returned by the default query, you have to extend the query. The JS file searchFunctions.js is used to assemble the query. The global string g_strItemSelectPropList contains all the fields. Modifying this enables you to query more than just the default fields.
CAUTION: Modifying the sharepoint system files is NOT supported by Microsoft nor do you have the gurantee it still works after hotfixes or servicepacks are released. (it will most likely NOT work, judging from SP1 which contained modified script files as well!) However nothing is stoping you from copying the needed files, include them in your webparts (and in dashboardextensions.vbs if you need serverside script) and build your own searchdashboard. Chris van Zadel SPSFAQ030178 - How can I create a standard folder with PKMCDO? David - 0 Comments - stephencummins - Mon, Jul 1st, 2002 - Customisation I found that the content-class is what determines if it's a standard folder or an enhanced folder. Here's the code:
Dim oF as New PKMCDO.KnowledgeFolder oF.DataSource.Open "http://myserver/SharePoint Portal Server/Folder/", 3, -1 oF.Contentclass = "urn:content-classes:knowledgefolder" oF.Save David SPSFAQ030177 - Is there any way to open categories on a custom dashboard only showing the Category Information? Thomas - 0 Comments - stephencummins - Mon, Jul 1st, 2002 - Customisation You will have to keep the default categories dashboard as it is, messing with it is a bad idea. For the two 'new' subcategory dashboards use the webpart NavLink from http://www.sharepointserver.com/webparts/navlink.zip.
Replace the section :- function onload_WPQ_ (objEvent) { var strTitle = "Server Name"; var strHREF = "http://www.server.com"; addNaviLink_WPQ_ (strHREF, "", strTitle); } With function onload_WPQ_ (objEvent) { addNaviLink_WPQ_ ("http://server/workspace/categories/category1", "", "Category 1"); addNaviLink_WPQ_ ("http://server/workspace/categories/category2", "", "Category 2"); } This will append links to your two categories to the end of the Dashboard list, you will need to import this file to all your top level folders. Steven Collier Page 14 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 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||