Copied to clipboard

Flag this post as spam?

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


  • newguy 16 posts 20 karma points
    May 28, 2009 @ 18:25
    newguy
    0

    macro renders in editor but not page

    I don't understand this, I drop a macro on a page and it (an image) shows up in the editor
    but not on the web page?

    this is the xslt I am using:

    [code]

    ]>

    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"
    exclude-result-prefixes="msxml umbraco.library">







    [/code]

    the macro properties are:
    Use in editor Yes (checked)
    Render content in editor Yes
    (checked)

    the Macro Parameters are:
    Show (checked)
    Alias = picture
    Name = Picture
    Type = mediaCurrent

    placing the below code in a textpage template does not render anything either:

    [code]


    [/code]

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    May 28, 2009 @ 18:34
    Dirk De Grave
    0

    Hi,

    Might this be the issue:

    Picture="[#picture]" >

    whereas in your xslt:



    Both should be the same (Mind the capitalization).

    Other than that, I have no clue...

    Regards,
    /Dirk

  • newguy 16 posts 20 karma points
    May 28, 2009 @ 18:51
    newguy
    0

    I'm thinking it's not the xslt or the macro.

    If I choose to create a generic prebuilt xslt :
    right click Xslt Files -> create -> choose "List SubPages from Current Page" from the dropdown list

    in the macro properties:
    Use in editor Yes
    Render content in editor Yes

    then I drop the macro on a page within the editor and it shows all the sub pages of the current page as is designed BUT it does not show on the published live page

    The other odd thing is it does show up by clicking the "Preview" button inside the editor

    I am using 3.0.6

Please Sign in or register to post replies

Write your reply to:

Draft