Copied to clipboard

Flag this post as spam?

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


  • Jon Dunfee 199 posts 468 karma points
    Mar 14, 2010 @ 08:50
    Jon Dunfee
    0

    Contour form added to richtext snippet in media gallery not publishing

    Ok, hopefully I can explain what I'm doing to see if there is a solution to what I'm encountering [or lack thereof].  I have a media type, named "Snippet", that contains only a richtext box, alias "snippetText", allowing users to create snippets of reusable content (think a newsletter signup column tout).  Now, I have a media picker in my doc type to select one of these snippets that will be shared in the current page and potentially any children. Here's the magic portion of XSLT in my RightShared macro:

      <xsl:for-each select="$currentPage/ancestor-or-self::node [string(data [@alias='rightSnippet']) != ''][1]">
    <xsl:sort select="@level" order="descending"/>
    <xsl:value-of select="umbraco.library:GetMedia(data [@alias='rightSnippet'], 'false')/data [@alias='snippetText']" disable-output-escaping="yes"/>
    </xsl:for-each>

    Here's an example of a node grabbed from the macro:


    <data alias="snippetText">
    <p><img src="/media/3098/interestedinlearningmore.png" width="193" height="37" alt="Interested In Learning More"/></p>

    <p><img src="/media/3104/callus000-000-0000.png" width="193" height="18" alt="Call Us 000-000-0000"/></p>

    <p><img src="/media/3110/tollfree000-000-0000.png" width="193" height="19" alt="Toll-Free 000-000-0000"/></p>

    <?UMBRACO_MACRO
    formguid="65dc5f56-ce3d-4b8a-bf92-dd7f6abdc187"
    macroAlias="umbracoContour.RenderForm" />
    </data>

    All works beautifully except the Contour form doesn't render.  I verified the form is valid by adding it as regular content to test it.  Is this even possible to achieve using Contour 1.0.7 on Umbraco 4.0.3?

  • Jon Dunfee 199 posts 468 karma points
    Mar 14, 2010 @ 18:58
    Jon Dunfee
    0

    I just realized that I posted my issue on the wrong thread.  I reposted to http://our.umbraco.org/forum/umbraco-pro/contour/7825-Contour-form-added-to-richtext-snippet-in-media-gallery-not-publishing  Stuff happens when you stay up too late trying to figure things out.

    Sure would be nice if users had more control in this forum.  Editing and deleting threads would be nice.

Please Sign in or register to post replies

Write your reply to:

Draft