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

SPSFAQ030125 - How can I edit the profile form for SharePoint? - 0 Comments - stephencummins - Fri, Feb 1st, 2002 - Customisation
You could adjust pupform.asp which is located in system/forms to do this but remember, such changes are unsupported.

Nikander Bruggeman & Margriet Bruggeman

This might be a way to fix the problem of not being able to read a long category name.
SPSFAQ030124 - How can I display the Date in the News Web part? - 0 Comments - stephencummins - Fri, Jan 25th, 2002 - Customisation
you have to change xsl properties:


<TD valign="top" align="left">
<xsl:for-each

select="dav:propstat/dav:prop/dav:getlastmodified">
<xsl:eval>formatXMLDate
(this.nodeTypedValue);</xsl:eval>
</xsl:for-each>
</TD>
</TR>
</xsl:template>
<xsl:script language="JScript">
<![CDATA[

function formatXMLDate(strXMLDate)
{
return strXMLDate;
}
]]>
</xsl:script>



ane
SPSFAQ030123a - How can one retrieve query string variables from a webpart into another webpart which is made up of .htm files? - 0 Comments - stephencummins - Mon, Jan 14th, 2002 - Customisation
It would be easier to retrieve Request variables using ASP (with Request("some varname")) but you could also use JavaScript

and retrieve the variables with document.location after which you have to filter out the Request variables yourself. The

problem which remains then is how you get that information from one web part to another. The code below shows you how to do

this. Basically the first web part raises an event passing information with it, the second web part registers for this event

and retrieves the information.

Nikander Bruggeman
Margriet Bruggeman

<!-- HTML of web part one -->
<html>
<head>
<script language="javascript">
<!--
function showNewsDetail(strDocPath)
{
parent.DDSC.RaiseEvent
("urn:test:News", "showNewsDetail", strDocPath);
}

-->
</script>
</head>
<body>

Sender

<li><a href="javascript:showNewsDetail
('http://www.macaw.nl');">Macaw</a><br>
<li><a href="javascript:showNewsDetail
('http://www.microsoft.com');">Microsoft</a><br>

</body>
</html>

<!-- HTML of web part two -->
<html>
<head>
<title></title>
</head>
<body>

<script language="javascript">
<!--
DDSC.RegisterForEvent
("urn:test:News", "showNewsDetail", DisplayInfo);

function DisplayInfo(strDocPath)
{
alert(strDocPath);
}
-->
</script>

Receiver

</body>
</html>
SPSFAQ030122a - How do I create an Event Sink? - 0 Comments - stephencummins - Thu, Jan 3rd, 2002 - Customisation
Download Exchange SDK Tools. (See the Downloads page)
Packet includes Event Sink Wizard under Visual basic.
Use that wizard and you get sceleton of event sink code (sync and/or async).
Or
I can post Event sink Vb Project to you if you want.
Of course you have to implement yourself that publishing, because instead of publish-event you get infromation of whole save-event and that's not very funny.

Remember that Event sinks in SPS are not supported registered under workspace folders.

Pasi Heinonen
SPSFAQ030123 - Is there a way to define that a folder cannot be deleted, even by a co-ordinator? - 0 Comments - stephencummins - Thu, Jan 3rd, 2002 - Customisation
Yes, there is one way - unsupported way to do delete terminating.
Create EventSink that set false to ProcessBeginDelete-method and register
eventsink under your documents-folder or under some other folder but remember this is unsupported by MS.

- Pasi Heinonen -
SPSFAQ030122 - Can I get my Announcements/Quick links/News to open in a new window? - 0 Comments - stephencummins - Thu, Dec 20th, 2001 - Customisation
Yes,

- go to the content site of your dashboard
- select the respective webpart
- open the advanced settings
- in the embedded XSL section find these lines:

<xsl:when test="a:propstat/a:prop
[attributes:ShortcutTarget != '']">
<xsl:attribute name="href"><xsl:value-of
select="dav:propstat/dav:prop/attributes:ShortcutTarget"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="href"><xsl:value-of
select="dav:propstat/dav:prop/dav:href"/>
</xsl:attribute>
</xsl:otherwise>

- change the code as follows


<xsl:when test="a:propstat/a:prop
[attributes:ShortcutTarget != '']">
<a target="blank">
<xsl:attribute name="href"><xsl:value-of
select="dav:propstat/dav:prop/attributes:ShortcutTarget"/>
</xsl:attribute>
</a>
</xsl:when>
<xsl:otherwise>
<a target="blank">
<xsl:attribute name="href"><xsl:value-of
select="dav:propstat/dav:prop/dav:href"/></xsl:attribute>
</a></xsl:otherwise>

- save it

t.knuepfer@intershop.com
SPSFAQ030122 - Can I create custom dashboards for my users, that appear depending on who as logged on? - 0 Comments - stephencummins - Thu, Dec 20th, 2001 - Customisation
Follow Steps as below to create and Sync Personalized Pages to SPS Dashboard
Site

1) Create a Sub Dashboard called MY PAGE.

2) From Management Dashboard Create Personalized Dashboard for Each USER, give the name of the dashboard as same as LOGIN name(VERY IMPORTANT)

3) Create a simple WEB PART to redirect to workspace/dashboards/LoginName

Code is as shown below

Ex:
Paste the below function in your NEW web part.

Function GetContent(nod)
On Error Resume Next
dim curUser
userArray = split(GetServerVariable("LOGON_USER"), "\")
if UBound (userArray) > 0 then
curUser = userArray(1)
else
curUser = userArray(0)
end if

Response.redirect ( GetWorkspaceURL() & "/dashboards/" &
curUser & "/")

End Function

4) Name this web part as SHOWUSERPAGE

5) Add this web part to MY PAGE.

6) So, Now when a user clicks on My Page, automatically they land on their
Personal Page.

7) Other thing is to have a link back to Portal Site.

8) On MY PAGE, create a SUB DASHBOARD "BACK TO PORTAL MAIN PAGE"

9) Create a New Web Part and use this below VB Script to go back to your
main page

Function GetContent(nod)
On Error Resume Next
Response.redirect ( GetWorkspaceURL() )
End Function
10) Name this web part as BACKTOPORTAL

11) Add this webpart to the newly created subdash board.

For Every User on the Site:
As a Workspace co-ordinator you have to create a directory for each user
under Dashboard site and sync the name to their login name. User can be a
co-ordinator for their respectice directory to modify the appearence of that
page.

There is a security risk since users can import web parts themselves, also, a lot of dashboards will slow your system down, so keep that in mind.

Ravi Malireddy
SPSFAQ030121 - Can I modify the permissions of the SharePoint roles or create my own? - 0 Comments - stephencummins - Wed, Dec 19th, 2001 - Customisation
No to both parts of this question, but it has been requested for future versions of SharePoint

Page 21 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