Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
This should be easy. I have seen the subject on the forum but I can't seem to adapt what I have seen.
I insert my macro in the RTE and the macro will render only in the home page and the preview (any page) but will not work properly in the sub-pages.
Here is my XSLT code:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets "> <xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:param name="currentPage"/> <xsl:template match="/"> <!-- start writing XSLT --> <div id="silverlightControlHost"> <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="320" height="240"> <param name="source" value="umbraco_client/VideoPlayer.xap"/> <param name="initParams" value="m=video.wmv" /> <param name="minruntimeversion" value="2.0.31005.0" /> <a href="http://go.microsoft.com/fwlink/?LinkId=124807" style="text-decoration: none;"> <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/> </a> </object> </div> </xsl:template> </xsl:stylesheet>
This looks easy and I feel stupid now.
Thank you in advance.
Christophe
Hi Check the param "source", either add / or ~/ in the begining of the path.
Hello Daniel,
The / did it. This was that simple! Thank you immensely for your help.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Macro not Working in Subpages
This should be easy. I have seen the subject on the forum but I can't seem to adapt what I have seen.
I insert my macro in the RTE and the macro will render only in the home page and the preview (any page) but will not work properly in the sub-pages.
Here is my XSLT code:
This looks easy and I feel stupid now.
Thank you in advance.
Christophe
Hi
Check the param "source", either add / or ~/ in the begining of the path.
Hello Daniel,
The / did it. This was that simple! Thank you immensely for your help.
Christophe
is working on a reply...