oh this is S!@# nothing will display...
Stump the Panel » Site Managers and Site Collection Managers
XSL Formating
(13 posts)-
Posted 3 months ago #
-
ok something screwy going on here... is there an email address I can send what I'm posting ?? Basiccly I have some basic XSL and a SPD webpart
Have put both between the (`) and the code markup... when every I do it.. it deletes the post..
If I do it as a new topic, on submit BBpress comes back with error, stating topic cannot be found.. dah.. I'm creating it :)
Posted 3 months ago # -
Looking at the template you sent:
<xsl:template match="rs_data"> <xsl:for-each select="z_row"> <TABLE height="100%" cellpadding="0" cellspacing="0" class="cssTable" style="width: 397px"> <TR> <TD class="cssBamboo1" > <xsl:value-of select="@ows_LinkTitle"/> </TD> <TD class="user" > <xsl:attribute name="href"> http://server/searchcenter/Pages/peopleresults.aspx?k=<xsl:value-of select="@ows_Author"></xsl:value-of> </xsl:attribute> <xsl:value-of select="@ows_Author"> </xsl:value-of> </TD> </TR> <TR> <TD class="ad" > <img src="{imageurl}" border="0" alt="{imageurl/@ows_Picture}" /> <xsl:value-of select="@ows_Advertisement"/> </TD> </TR> </TABLE> </xsl:for-each> </xsl:template>
Without seeing the data source, I think you might want to try something like this instead:
<TD class="user" > <a href="/searchcenter/Pages/peopleresults.aspx?k={@ows_Author}"> <xsl:value-of select="@ows_Author"/> </a> </TD>
For your second question about the DVWP, you can put the web part on a page, load the page in your site and use the web part's context menu to export the web part. Then, you can put the web part on any page.
Posted 3 months ago # -
Ah, but I need the XSL to use in the Bamboo list rotator.. Their default styles don't cut the mustard :)
Posted 3 months ago # -
Baldcat,
Assuming the variables and data source are named the same, you should be able to copy what's between the <XSL> tags. I'm not familiar with Bamboo's web part but I would assume it is easier to modify their style than to perform a complete transplant.
Posted 3 months ago # -
thats the thing.. I can't find their styles... ANyway,, and no one over there has answered any support calls , when I've tried to ask... Hmmm
you can get a trial if your up to it :)
Posted 3 months ago # -
Hold on a bit. I've got one of the guys from Bamboo support looking in on this. -- Mark
Posted 3 months ago # -
nice one... it pays to know..
If there is one weak link in MOSS.. it is the use of XSL... For the layman admin,, it makes no sense at all.. And normally you only need to use once maybe twice.. and thats it.. If you were able to design XSL in SPD, connected to the lists you wanted to display.. it would be so good...
Posted 3 months ago # -
hey guys.. well have been battleing it out over this bad boy.. and I have really got somewhere :) Now I'm trying to get all trick and stuff.. How do we go about presence sensing ?? We have the full communicator suite installed and the OOTB apps have it..
Here is my little xsl stuff
<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
<xsl:output method="html" />
<xsl:template match="rs_data">
<xsl:for-each select="z_row">
<TABLE height="100%" cellpadding="0" cellspacing="0" class="cssTable" width="200px">
<TR>
<TD class="cssBamboo1" >
<xsl:value-of select="@ows_LinkTitle"/>
</TD>
<TD class="user" >
<xsl:value-of select="@ows_Author"/>
</TD>
</TR>
<TR>
<TD class="ad" >
<xsl:if test="@ows_Picture">
<xsl:if test="@ows_Picture!=''">
<img src="{@ows_Picture}" width="100px" border="0" class="floatLeft" alt="{@ows_Picture}" />
</xsl:if>
</xsl:if>
<xsl:value-of select="@ows_Advertisement"/>
</TD>
</TR>
<TR>
<TD class="ad" >
Click here to view all items</TD>
</TR>
</TABLE>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>Posted 3 months ago # -
is there a way to get presence sensing ???
I have a pretty good working template now.. if I could get prense sensing it would be awesome.. :)
Posted 3 months ago # -
I'll try to get to this soon. I know at least part of the presence sensing is JavaScript related but I have yet to dig into the source code to find it. I added this to my favorites and I'll try to research it.
Posted 3 months ago # -
I'm blogging the answer to this, I'll try to post it by the end of the day.
Posted 3 months ago # -
Skip the blog, I don't have enough time to make it pretty right now. To get presence, you need the sid (a parameter passed in Person data referring to the field in AD/SPUser. In most cases, it's probably email so you can try to substitute that as well. I have some code below that grabs the SID from @Author but you can use @AssignedTo or anything that's Person data. In a CQWP I think you need to make sure it's Person and not string--but I don't have time to test atm...
Posted 3 months ago #
Reply
You must log in to post.