Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 18:30
    Ryan Green
    0

    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.

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 18:31
    bob baty-barr
    0

    please tell me your vesrion of umbraco? also a link to view output if it is publicly available.

    thanks,

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 20:02
    Ryan Green
    0

    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?

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 20:15
    bob baty-barr
    0

    Ryan, are you using the xslt on the source code tab for this package? it is written for the new schema...

     

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 20:16
    Ryan Green
    0

    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):

    <table width="100%" border="0" cellspacing="10" cellpadding="0">
      <tr>
      <td align="left" valign="top" colspan="2">
      <span class="breadcrumb">You are here:</span>
      </td>
      </tr>
      <tr>
      <td align="left" valign="top">
      <!--FEATURE IMAGE ROTATOR-->
       
      <!--END-->
      </td>
      <td align="left" valign="middle">
      <div class="Quote">&quot;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.&quot;<div class="Author" align="right"><strong>Sidney Sheldon</strong><br />Author</div></div>
      </tr>
  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 20:17
    Ryan Green
    0

    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

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 20:18
    bob baty-barr
    0

    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.

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 20:22
    Ryan Green
    0

    Yes, I am: This is what is in there:

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>

    <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">&nbsp;</div>

    <div id="carousel_container">

    <div id="carousel_inner">

    <ul id="carousel_ul">

    </ul>

    </div>

    <div class="clearDiv">&nbsp;</div>

    <input type='hidden' id='hidden_auto_slide_seconds' value='0' />

    </div>

    <div class="clearDiv">&nbsp;</div>

    <div id="viewMoreNews"><a href="#">More News Articles</a></div>

    <div class="clearDiv">&nbsp;</div>

    </div><!-- end rotator markup -->

    </xsl:if>

    </xsl:template>

     

    </xsl:stylesheet>

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 20:25
    bob baty-barr
    0

    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,

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 20:31
    Ryan Green
    0





     

     

     

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 20:33
    Ryan Green
    0

     This is the folder that it links to

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 20:35
    Ryan Green
    0

    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?

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 20:41
    bob baty-barr
    0

    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?

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 20:43
    Ryan Green
    0

    Yes, 1052. I only have two images in it, does there need to be a certain amount of images in it?

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 20:44
    bob baty-barr
    0

    nope... no minimum number...

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 20:46
    bob baty-barr
    0

    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.

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 20:48
    Ryan Green
    0

    That's odd. All it says is The folder id is 

    There is no number after it at all.

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 20:52
    bob baty-barr
    0

    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.

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 20:55
    Ryan Green
    0

     

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 20:56
    bob baty-barr
    0

    need grab of the other tab parameters tab... sorry

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 20:58
    Ryan Green
    0

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 21:04
    Ryan Green
    0

    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.

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 21:05
    bob baty-barr
    0

    hmmm... let's do some quick searches to figure out what could be the issue.

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 21:06
    Ryan Green
    0

    THANK YOU!!!! I really appreciate your help.

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 21:28
    Ryan Green
    0

    I put ?umbDebug=true in and this is the result I got

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 21:32
    bob baty-barr
    0

    what if you change this...

    <xsl:variable name="thisFolder" select="/macro/rotateFolder/node/@id"/>

    to this...

    <xsl:variable name="thisFolder select="1052"/>

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 21:35
    Ryan Green
    0

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 21:37
    bob baty-barr
    0

    can you post the markup output?

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 21:38
    Ryan Green
    0
      <div id="rotateWrap"><div id="rotatorMain" /><div id="demotip"> </div><div id="carousel_container"><div id="carousel_inner"><ul id="carousel_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>
       
  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 21:54
    bob baty-barr
    0

    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...

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 21:55
    bob baty-barr
    0

    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.

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 21:59
    Ryan Green
    0

    That seemed to do it. 

    But, I guess I have bigger problems as to why Macros aren't passing the variables correctly.

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 22:00
    Ryan Green
    0

    Is it possible to make the image clickable with the tooltip URL ?

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 22:03
    bob baty-barr
    0

    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"/>

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 22:04
    Ryan Green
    0

    <xsl:variable name="thisFolder" select="/macro/rotateFolder/@id"/>  Doesn't work again.

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 02, 2012 @ 22:06
    bob baty-barr
    0

    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

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 22:09
    Ryan Green
    0

    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)

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 22:11
    Ryan Green
    0

    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>

      

      

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 23:10
    Ryan Green
    0

    Would it matter if my umbraco installation is not an application, but a web site in IIS.

  • Ryan Green 63 posts 83 karma points
    May 02, 2012 @ 23:16
    Ryan Green
    0

    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.)

  • Ryan Green 63 posts 83 karma points
    Sep 17, 2012 @ 21:40
    Ryan Green
    0

    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.

  • Darryn Mutch 1 post 21 karma points
    Sep 19, 2012 @ 12:44
    Darryn Mutch
    0

    It says this has been solved - running 4.8.0 and it does not work - Any ideas

Please Sign in or register to post replies

Write your reply to:

Draft