Copied to clipboard

Flag this post as spam?

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


  • Tony 11 posts 31 karma points
    Feb 16, 2012 @ 07:28
    Tony
    0

    data to flash in Umbraco 3

    I inherited a website that is running an old version of Umbraco, and some of the navigation is in flash.

    I've looked at the flash files, and they're pulling the links from aan xml file, and though I've been through all the xslt documents on the server, I cannot find where to change the nav

    having trouble finding documentation. 

    Help!

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 16, 2012 @ 08:18
    Jan Skovgaard
    0

    Hi Tony and welcome to the community :)

    Do you have any clue in which XSLT file the nav is generated? And what do you need to change? If you know, which file it is then try posting the xslt code in here.

    /Jan

  • Tony 11 posts 31 karma points
    Feb 16, 2012 @ 08:35
    Tony
    0

    Hi Jan, Thanks for the response.  The sites been pretty neglected, and there's no documentation that was left by the former developer

    I need to change some the weights
    (not the variable itself, just the text that is displayed)

    I'm needing to add some variables to
    MiniToyAge and MiniAge variables

    (I need to add a new age cetegory)

    If I can just find what file I need to change, I can knock this out

    but, I think I've located it

    there's this:

     <script language="JavaScript" type="text/javascript">
        AC_FL_RunContent(
          'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
          'width', '570',
          'height', '104',
          'src', '/flash/<xsl:value-of select="$FlashMovie" />',
          'quality', 'high',
          'pluginspage', 'http://www.adobe.com/go/getflashplayer',
          'align', 'middle',
          'play', 'true',
          'loop', 'true',
          'scale', 'showall',
          'wmode', 'transparent',
          'devicefont', 'false',
          'id', '<xsl:value-of select="$FlashMovie" />',
          'bgcolor', '#ffffff',
          'name', '<xsl:value-of select="$FlashMovie" />',
          'menu', 'true',
          'allowFullScreen', 'false',
          'allowScriptAccess','sameDomain',
          'movie', '/flash/<xsl:value-of select="$FlashMovie" />',
          'FlashVars', '<xsl:value-of select="$FlashVars" disable-output-escaping="yes" />',
          'salign', ''
        ); //end AC code
      </script>

     

    and this:

     
      <xsl:variable name="FlashVars">
        <xsl:choose>
          <xsl:when test="(umbraco.library:RequestQueryString('Animal') = 'Dog') and (umbraco.library:RequestQueryString('DogSize') = 'Mini Toy')">Animal=Dog&amp;DogSize=Mini Toy&amp;MiniToyAge=<xsl:value-of select="umbraco.library:RequestQueryString('MiniToyAge')" /></xsl:when>
          <xsl:when test="(umbraco.library:RequestQueryString('Animal') = 'Dog') and (umbraco.library:RequestQueryString('DogSize') = 'Mini')">Animal=Dog&amp;DogSize=Mini&amp;MiniAge=<xsl:value-of select="umbraco.library:RequestQueryString('MiniAge')" /></xsl:when>
          <xsl:when test="(umbraco.library:RequestQueryString('Animal') = 'Dog') and (umbraco.library:RequestQueryString('DogSize') = 'Medium')">Animal=Dog&amp;DogSize=Medium&amp;MediumAge=<xsl:value-of select="umbraco.library:RequestQueryString('MediumAge')" /></xsl:when>
          <xsl:when test="(umbraco.library:RequestQueryString('Animal') = 'Dog') and (umbraco.library:RequestQueryString('DogSize') = 'Maxi')">Animal=Dog&amp;DogSize=Maxi&amp;MaxiAge=<xsl:value-of select="umbraco.library:RequestQueryString('MaxiAge')" /></xsl:when>
          <xsl:when test="(umbraco.library:RequestQueryString('Animal') = 'Dog') and (umbraco.library:RequestQueryString('DogSize') = 'Giant')">Animal=Dog&amp;DogSize=Giant&amp;GiantAge=<xsl:value-of select="umbraco.library:RequestQueryString('GiantAge')" /></xsl:when>
          <xsl:when test="umbraco.library:RequestQueryString('Animal') = 'Dog'">Animal=Dog</xsl:when>
          <xsl:when test="umbraco.library:RequestQueryString('Animal') = 'Cat'">Animal=Cat&amp;CatAge=<xsl:value-of select="umbraco.library:RequestQueryString('CatAge')" />&amp;Breed=<xsl:value-of select="umbraco.library:RequestQueryString('Breed')" />&amp;Needs=<xsl:value-of select="umbraco.library:RequestQueryString('Meeds')" /></xsl:when>
          <xsl:otherwise></xsl:otherwise>
        </xsl:choose>
      </xsl:variable>

  • Tony 11 posts 31 karma points
    Feb 16, 2012 @ 08:52
    Tony
    0

    if there's more code you need, please let me know

     on another note, I'm trying to also figure out, why I added a datatype, selected it for several of the pages on the site, published them, but when I try to do a subnav link that shows just those results, it shows nothing on the page

  • Tony 11 posts 31 karma points
    Feb 16, 2012 @ 10:41
    Tony
    0

    ... does it normally take a while to get an answer to a question like this?

     

  • Tony 11 posts 31 karma points
    Feb 16, 2012 @ 20:26
    Tony
    0

    help...

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 16, 2012 @ 21:40
    Jan Skovgaard
    0

    Hi Tony

    The response time on the forum varies from question to question. Please keep in mind people are replying in their spare time and they don't hesitate to respond if they have an answer they feel can help you solve your problem.

    But here I am ready to try and see if I can help you out :)

    I'm just going to take some time to have a look at the code and then I'll get back to you.

    /Jan

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 16, 2012 @ 21:51
    Jan Skovgaard
    0

    ...And since the subject says your issue is about Umbraco 3 it can probably scare some away since Umbraco 5 has just been released and Umbraco 3 is really old school now :)

    However...

    I'm not sure you need to change anything in the above file.

    There must be another file where the values of the querystring are being set when a link is clicked since it seems to me that the "MiniToyAge" value is being requested in the above code.

    Hope this helps.

    /Jan

  • Tony 11 posts 31 karma points
    Feb 16, 2012 @ 21:51
    Tony
    0

    Thanks Jan.  I really do appreciate it.  Sorry if I'm a little frustrated, it's not targeted at you or the community.  Just wish the former developer had left some kind documentation, or even comments in the code...

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 16, 2012 @ 21:53
    Jan Skovgaard
    0

    Hi Tony

    I can understand that. Know the feeling. I guess the former developer used the paradigm that "code is documenting itself!" :)

    But let's see if we can get this one figured out together.

    /Jan

  • Tony 11 posts 31 karma points
    Feb 16, 2012 @ 22:12
    Tony
    0

    is there an easy way to figure out specifically where it's pulling that data from? 
    or is there something I should specifically be looking for or at?

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 16, 2012 @ 22:20
    Jan Skovgaard
    0

    Hi Tony

    That's very hard to tell since no Umbraco installation is identical. It's up to the developer to define the content structure, the templates and the xslt renderings etc.

    So I don't have any clue about what the files could be called or what they contain and what thought's the former dev have had about the site.

    However I would think the xslt file was given a name containing "nav", "navi" or "menu"..

    Also try to look at how the templates in the "settings" section has been setup - what macroes are they using and is there an area called navigation or something? (I know it's a flash-site so I suppose not...but it's worth the shot).

    You can also try to insert a text in the files you suspect could be the one being used to see what happens when the file is saved...

    Perhaps you can try posting a screendump of the file names in the XSLT folder in the "developer" section...don't know if it helps, but then I can perhaps have a guess at what file I suspect could be used for it and then you can post the code and we can try to figure it out that way?...

    /Jan

  • Tony 11 posts 31 karma points
    Feb 16, 2012 @ 22:31
    Tony
    0

    you know, the funny part is, it's just a subnav that's done in flash... and for the life of me I can't figure out why...
    weirder still, he built no way to get to the underlying pages without the subnav in flash, but the navigation pops up on the side AFTER you select what you want in the flash file...

    I looked in the macros and there's one document called MainNav with a .net User Control at /usercontrols/MainNav.ascx

    but apparently I can't get to that from the control panel in Umbraco

    the xstl file I found with the flash info I posted earlier was called GridFlash.xslt and there's a macro with the same name, but it just points to the xstl file

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 16, 2012 @ 22:36
    Jan Skovgaard
    0

    Aaah, then he has made a macro based on a user control instead.

    Then you need to see if there is something usefull for you in the user control...but I suspect that you will need to open the project in visual studio file since the code you're after is probably put in the codebehind (cs) file for the user control.

    Yes it seems weird that the navigation is done in flash but perhaps they wanted make some special effects not possible using html/css/javascript approach? Anyhow if there is not visual studio project outside of Umbraco I'm afraid it won't be *THAT* easy to make the changes you need to unless he has written all the code directly in the .ascx file.

    Hope this helps.

    /Jan

  • Tony 11 posts 31 karma points
    Feb 16, 2012 @ 22:40
    Tony
    0

    so I should look in the MainNav.ascx file then?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 16, 2012 @ 22:40
    Jan Skovgaard
    0

    Yup :)

    /Jan

  • Tony 11 posts 31 karma points
    Feb 16, 2012 @ 22:52
    Tony
    0

    nothing there... it was all main nav  items

  • Tony 11 posts 31 karma points
    Feb 17, 2012 @ 00:53
    Tony
    0

    any other suggestions?

Please Sign in or register to post replies

Write your reply to:

Draft