I have installed per all your instructions, all properties have been added to the image Media Type, I have the runat server in my head, I have even selected the folder with the images, (which have all required fields filled in) in my template. But it is not showing up. there is just an empty space. And looking at the document source code, nothing gets generated.
Any ideas, where I should start looking. I have uninstalled, and reinstalled, and reset it up. I don't get any errors, and everything looks like it is installed per your instructions.
<div class="Quote">"Libraries store the energy that fuels the imagination. They open up windows to the world and inspire us to explore and achieve, and contribute to improving our quality of life. Libraries change lives for the better."<div class="Author" align="right"><strong>Sidney Sheldon</strong><br />Author</div></div>
Just out of curiosity, I don't need any specific MIME Types setup on the server for displaying this do I. This is a clean server installation done by our Systems Admin. But they haven't built an Umbraco Web Server before. I see there is .flv and .swf MIME Types setup in the site in IIS, but does there need to be any other ones, specifically for this?
no it is just plain markup... so, 1052 is the id of the folder in media? hold your mouse over the folder and look down to see what the javascript link has in it for a number?
Ok, I think there is a bigger issue, I tried adding a breadcrumb, using the built in breadrumb XLST, and that won't show up either. So something is up with displaying Macros possibly in general.
also, i think you can get rid of the ./ references before the property names... in the code... this xslt is from a beta version of the new schema, i think.
System.Xml.Xsl.XslLoadException: Unexpected token '' in the expression. /macro/rotateFolder/<-- An error occurred at C:\inetpub\wwwroot\xslt\634715860829140625_temp.xslt(21,3). at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)
If I leave the @ID in, it lets me save, and this is what comes up in the textarea
<!--END-->
</td>
<td align="left" valign="middle">
<div class="Quote">"Libraries store the energy that fuels the imagination. They open up windows to the world and inspire us to explore and achieve, and contribute to improving our quality of life. Libraries change lives for the better."<div class="Author" align="right"><strong>Sidney Sheldon</strong><br />Author</div></div>
</tr>
<tr>
<td colspan="2" valign="top">
<p class="maincopy">Contrary to popular belief, Lorem Ipsum is not
simply random text. It has roots in a piece of classical Latin
literature from 45 BC, making it over 2000 years old. Richard
McClintock, a Latin professor at Hampden-Sydney College in
Virginia, looked up one of the more obscure Latin words,
consectetur, from a Lorem Ipsum passage, and going through the
cites of the word in classical literature, discovered the
undoubtable source. Lorem Ipsum comes from sections 1.10.32 and
1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good
and Evil) by Cicero, written in 45 BC. This book is a treatise on
the theory of ethics, very popular during the Renaissance. The
first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes
from a line in section 1.10.32.</p>
<p class="maincopy">The standard chunk of Lorem Ipsum used since
the 1500s is reproduced below for those interested. Sections
1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero
are also reproduced in their exact original form, accompanied by
English versions from the 1914 translation by H. Rackham.</p>
I was never able to get this solved. I upgraded to 4.8.0 and it still does not work without hard coding the Media Library folder in the XSLT. It will not work otherwise for me.
Cannot get to show up on page...
I have installed per all your instructions, all properties have been added to the image Media Type, I have the runat server in my head, I have even selected the folder with the images, (which have all required fields filled in) in my template. But it is not showing up. there is just an empty space. And looking at the document source code, nothing gets generated.
Any ideas, where I should start looking. I have uninstalled, and reinstalled, and reset it up. I don't get any errors, and everything looks like it is installed per your instructions.
Thanks in advance.
please tell me your vesrion of umbraco? also a link to view output if it is publicly available.
thanks,
The version is: umbraco v 4.7.1.1 (Assembly version: 1.0.4393.24044)
The code is on an internal test server, I can post a screenshot, or post code sample, which would you like?
Ryan, are you using the xslt on the source code tab for this package? it is written for the new schema...
I took the liberty of both attaching a screenshot, the rotator should show up to the left of the quote text "Libraries store the ....
Here is the code from the page (The code should show up where it states Feature Image Rotator):
I fear, because I am new to Umbraco, I probably am not. Sorry. Would you mind explaining how I go about that.
Sorry to be such a pain.
Ryan
just download from the package page, see the tab where it says source code...
download teh 4.5schema version -- open with notepad and copy and paste over the xslt file in the umbraco editor.
Yes, I am: This is what is in there:
<?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" xmlns:tagsLib="urn:tagsLib" xmlns:BlogLibrary="urn:BlogLibrary" xmlns:CWSHelper.twitter="urn:CWSHelper.twitter"
exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets tagsLib BlogLibrary CWSHelper.twitter ">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<!-- start writing XSLT -->
<xsl:variable name="thisFolder" select="/macro/rotateFolder/node/@id"/> <!-- hard coded 2670 -->
<xsl:value-of select="umbraco.library:AddJquery()"/>
<xsl:value-of select="umbraco.library:RegisterJavaScriptFile('jqCycle', '/scripts/cycle.js')"/>
<xsl:value-of select="umbraco.library:RegisterJavaScriptFile('jqGoogle', 'http://cdn.jquerytools.org/1.1.2/tiny/jquery.tools.min.js')"/>
<xsl:value-of select="umbraco.library:RegisterJavaScriptFile('mttRotate', '/scripts/mtt_rotatePro.js')"/>
<xsl:value-of select="umbraco.library:RegisterStyleSheetFile('mttRotateCSS', ' /css/mtt_rotatePro.css ')"/>
<xsl:if test="$thisFolder != ''">
<div id="rotateWrap">
<xsl:variable name="images" select="number($thisFolder)"/>
<!-- rotator markup -->
<div id="rotatorMain">
<xsl:for-each select="umbraco.library:GetMedia($thisFolder, 'true')/* [@isDoc]">
<xsl:variable name="picFile" select="./umbracoFile"/>
<xsl:variable name="picAlt" select="@nodeName"/>
<xsl:variable name="toolTip" select="./toolTipText"/>
<div class="main_image"> <img src="{$picFile}" alt="{$picAlt}" title="{$toolTip}"/>
<div class="desc">
<div class="block">
<h2><xsl:value-of select="./picHeader"/></h2>
<small><xsl:value-of select="umbraco.library:FormatDateTime(./storyDate, 'D')"/></small>
<xsl:value-of select="./storyTeaser" disable-output-escaping="yes"/>
</div>
</div>
</div>
</xsl:for-each>
</div><!-- end rotator main -->
<!-- the tooltips -->
<div id="demotip"> </div>
<div id="carousel_container">
<div id="carousel_inner">
<ul id="carousel_ul">
</ul>
</div>
<div class="clearDiv"> </div>
<input type='hidden' id='hidden_auto_slide_seconds' value='0' />
</div>
<div class="clearDiv"> </div>
<div id="viewMoreNews"><a href="#">More News Articles</a></div>
<div class="clearDiv"> </div>
</div><!-- end rotator markup -->
</xsl:if>
</xsl:template>
</xsl:stylesheet>
that looks to be the new schema...
so, can you post screen grabs from your umbraco back end that show that you followed all the other instructions?
so i would like to see yoru imageType screen shot and a screenshot of where you inserted the macro into the template. Thanks,
This is the folder that it links to
Just out of curiosity, I don't need any specific MIME Types setup on the server for displaying this do I. This is a clean server installation done by our Systems Admin. But they haven't built an Umbraco Web Server before. I see there is .flv and .swf MIME Types setup in the site in IIS, but does there need to be any other ones, specifically for this?
no it is just plain markup... so, 1052 is the id of the folder in media? hold your mouse over the folder and look down to see what the javascript link has in it for a number?
Yes, 1052. I only have two images in it, does there need to be a certain amount of images in it?
nope... no minimum number...
hey, do me a favor... after this line...
<xsl:variable name="thisFolder" select="/macro/rotateFolder/node/@id"/> <!-- hard coded 2670 -->
add this...
<p>The folder id is <xsl:value-of select="$thisFolder"/></p>
save the xslt and view the page and see if it puts 1052 on the page.
That's odd. All it says is The folder id is
There is no number after it at all.
can you open the macros folder in teh admin panel, select the mtt rotate pro macro and show the properties tab and take a screenshot, please.
need grab of the other tab parameters tab... sorry
Ok, I think there is a bigger issue, I tried adding a breadcrumb, using the built in breadrumb XLST, and that won't show up either. So something is up with displaying Macros possibly in general.
hmmm... let's do some quick searches to figure out what could be the issue.
THANK YOU!!!! I really appreciate your help.
I put ?umbDebug=true in and this is the result I got
what if you change this...
<xsl:variable name="thisFolder" select="/macro/rotateFolder/node/@id"/>
to this...
<xsl:variable name="thisFolder select="1052"/>
can you post the markup output?
okay, next... change this line...
<xsl:for-each select="umbraco.library:GetMedia($thisFolder, 'true')/* [@isDoc]">
to this
<xsl:for-each select="umbraco.library:GetMedia($thisFolder ,true())/Image">
let's see if we get any further...
also, i think you can get rid of the ./ references before the property names... in the code... this xslt is from a beta version of the new schema, i think.
That seemed to do it.
But, I guess I have bigger problems as to why Macros aren't passing the variables correctly.
Is it possible to make the image clickable with the tooltip URL ?
well, now let's fix this line again...
from this...
<xsl:variable name="thisFolder select="1052"/>
to this...
<xsl:variable name="thisFolder select=" /macro/rotateFolder/@id"/>
<xsl:variable name="thisFolder" select="/macro/rotateFolder/@id"/> Doesn't work again.
drop the @id and put this on the next line...
<textarea><xsl:copy-of select="$thisFolder"/></textarea>
and paste here what is in the textarea
won't let me save, Error Occured:
Error occured
System.Xml.Xsl.XslLoadException: Unexpected token '' in the expression.
/macro/rotateFolder/<-- An error occurred at C:\inetpub\wwwroot\xslt\634715860829140625_temp.xslt(21,3).
at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)
If I leave the @ID in, it lets me save, and this is what comes up in the textarea
<!--END-->
</td>
<td align="left" valign="middle">
<div class="Quote">"Libraries store the energy that fuels the imagination. They open up windows to the world and inspire us to explore and achieve, and contribute to improving our quality of life. Libraries change lives for the better."<div class="Author" align="right"><strong>Sidney Sheldon</strong><br />Author</div></div>
</tr>
<tr>
<td colspan="2" valign="top">
<p class="maincopy">Contrary to popular belief, Lorem Ipsum is not
simply random text. It has roots in a piece of classical Latin
literature from 45 BC, making it over 2000 years old. Richard
McClintock, a Latin professor at Hampden-Sydney College in
Virginia, looked up one of the more obscure Latin words,
consectetur, from a Lorem Ipsum passage, and going through the
cites of the word in classical literature, discovered the
undoubtable source. Lorem Ipsum comes from sections 1.10.32 and
1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good
and Evil) by Cicero, written in 45 BC. This book is a treatise on
the theory of ethics, very popular during the Renaissance. The
first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes
from a line in section 1.10.32.</p>
<p class="maincopy">The standard chunk of Lorem Ipsum used since
the 1500s is reproduced below for those interested. Sections
1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero
are also reproduced in their exact original form, accompanied by
English versions from the 1914 translation by H. Rackham.</p>
</td>
</tr>
</table>
</div>
</div>
<div id="divClearer"></div>
<div id="divFooter"><img src="/images/footer_021.png" width="218" height="62"/></div><div id="divFooterText">©2012 Copyright Duluth Public Library. All Rights Reserved.</div>
</div>
</body>
</html>
Would it matter if my umbraco installation is not an application, but a web site in IIS.
Ok, one step closer. I changed the .NET trust level from Internal to web_hightrust and I get this for all my Macros. (if I go lower, it errors out.)
I was never able to get this solved. I upgraded to 4.8.0 and it still does not work without hard coding the Media Library folder in the XSLT. It will not work otherwise for me.
It says this has been solved - running 4.8.0 and it does not work - Any ideas
is working on a reply...