Is there a reference for the SharePoint XSLT extension functions? - sharepoint

There are a couple of different .NET XSLT functions that I see used in the out of the box SharePoint web parts (RSS Viewer and Data View web part).
<xsl:stylesheet
xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
xmlns:rssaggwrt="http://schemas.microsoft.com/WebParts/v3/rssagg/runtime"
...>
...
<xsl:value-of select="rssaggwrt:MakeSafe($Html)"/>
More...
...
</xsl:stylesheet>
Where can I find a reference that describes all of the extension functions that SharePoint provides?

I have been wanting more info on ddwrt as well. The most information I have been able to find is from Serge van den Oever that was later turned into the MSDN article referenced in the previous answer.
http://weblogs.asp.net/soever/archive/2005/01/03/345535.aspx
As he noted in his blog post, this article contains some info that was censored in the MSDN article.
Other than this article, there is very little written on the topic. It unfortunately appears that scouring existing generated code (such as the xsl in DataForm web parts) is the best technique to learn more at present.

Here is some documentation I found that describes the ddwrt (http://schemas.microsoft.com/WebParts/v2/DataView/runtime) namespace.
http://msdn.microsoft.com/en-us/library/aa505323.aspx

Good question +1
See also
SharePoint Data View Web Part Extension Functions in the ddwrt Namespace
by Serge van den Oever

Serge's article points to Microsoft.SharePoint, where you can find the Microsoft.SharePoint.WebPartPages namespace. In there, you can find the DdwRuntime and the BaseDdwRuntime. There, you can find all of the ddwrt functions. I used a decompiler to look this up.

Related

Linking records in Communication Templates

Following the instructions in this IBM article, I have included a link to a record in an comm template. My link looks like this http://:HOSTNAME/maximo/ui/maximo.jsp?event=loadapp&value=:APP&uniqueid=:OWNERID.
This link from the IBM article only gets to the default, i.e "List" tab for most applications. Can I somehow add a specific tab (standard or custom) of named application when implementing this as a link in Comm Template?
Thank you both, Dex, and Maximo.Wiki for your contributions>
Your comments actually led me to figure out all that I needed to solve my issue
Oh, woe how many times I was actually phrasing my problem incorrectly because corporate english is not primary variant of it and hence having to end up digging SO for answers
Thanks again!
Based on this blog post by Bruno Portaluri, and comments from others on that post, it looks like you should be able to add changetab=yourtabid to the URL.
Based on your question, the whole URL would then be http://:HOSTNAME/maximo/ui/maximo.jsp?event=loadapp&value=:APP&uniqueid=:OWNERID&changetab=plans if the app your link was to had a tab with ID plans, or XML <tab id="plans" ..., in it.

Need simple example of SSIS Script component using Updatelistitem in SharePoint 2010

I see many examples of using UpdateListItems to update a SharePoint list but I'm unable to find an example of using that technique within an SSIS package script component. The SharePoint List Destination object is not satisfying my needs because it will not let me update the "Modified By" column.
Regards,
Mike
https://msdn.microsoft.com/en-us/library/office/ee537013(v=office.14).aspx.
The MSDN web site has some very good examples of what I was trying to accomplish. I adapted them to meet my needs. Not sure why the site didn't appear when I was googling, but I'm sure it had to do with what terms I used.

What is the difference between include tags and embed tags in expressionengine?

The discussion forum module for expression engine uses {include:file} tags in its templates like in forum_themes/developer/forum_index/main_forum_list.html:
{include:table_heading}
{include:table_rows}
{include:table_footer}
I've searched for the include tag documentation but I can't find it anywhere? What is the include tag and when/where should it be used? Is it specific to the discussion forum module?
I cannot speak to the scope of the {include:file} tag but for most purposes the {embed} tag is what you will be using in ExpressionEngine to include/embed other bits of code.
Other alternatives, depending on the information you would like to include in your page, are the Snippets, Global Variables, or for more complex information LowVariables
Forums are quite difficult to customize and there is very little documentation but the include for forums essentially acts as an embed.
For customizing your forums I would recommend looking at using at the Scaffold Theme on Devot:ee
It should also be noted that {include:file} only work in the forum template code and most standard EE tags (such as the {embed} tag) don't work in the forum templates. Why? I don't know, but dems da rules. :)
There is no documentation on the {include:XXX} tag as it is only used in the Forum templates.
You will never use this tag in normal EE templates. In EE templates you will use an {embed="group/template"} tag or a Snippet depending on your needs.
In addition to embedding templates within each other, you can also create shared layouts for your templates. A layout can be thought of as a wrapping template or a reverse embed. To use a template you use the {layout=""} tag at the top of your template:
{layout="template_group/template"}

Windows Live Writer Webpreview and Weblayout

I'm working on implementing a blogging engine and want to make it compatible with windows live writer. I found an excellent post on this, but what I can't find is documentation on the placeholder tags used in the weblayout and webpreview templates. The only page I can find referring to this files on MSDN is this one that doesn't mention the placeholder tags.
Anybody point me in the right direction?
Many thanks
Tony
The placeholders are:
{post-title}
{post-body}
The msdn article that you linked to does state that, though.

How can commenting be added to news articles in an existing Sharepoint 2007 news site?

A client is asking to incorporate commenting on their news articles. They're using the Sharepoint news site template for their news publishing, etc. They want a simple commenting system, much like what is available on most blog engines, only they want it at the bottom of each news article.
I just thought I would ask around about an out of the box solution before I go quoting a custom dev solution. Thanks in advance!
I struggled with this a while back and the solution we found was to use a discussion borad list (out of the box) and we created a custom web part that we added to the page layout for news.
We had to do som trickery to add support for anonymous comments, but on the whole it works good and wasen't to much code.
The Community Kit for SharePoint does the whole commenting thing for blogs.
you may have to cut out the commenting part of it to get it to work with your news section however.
The commenting section of the Enhanced Blog Edition of CKS does to approval of comments and spam checking.
I had the same request. I didn't find an existing solution, so I did it by copying from the standard Blog site template, plus custom coding.
From the template: Copy the definition for the blog comments list. Remove the lookup fields, and use a feature to create the list on all publishing sites.
Custom code: Add a feature receiver to the comments feature, and use it to add the lookup fields for page id and title, (using the pages list as destination). This needs to be done in code because you can't configure the destination list for lookup fields in XML, (or at least I don't know how).
Write controls for querying the comments list and adding to it, and place on the page layout.
Simpler approach: Don't use the standard blog comments list, just create your own, where the page reference is just a number and not a lookup field. Pro: Less work. Con: You miss out on the views that come with the standard list.

Resources