Copied to clipboard

Flag this post as spam?

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


  • Ivan 139 posts 302 karma points
    Feb 10, 2010 @ 21:10
    Ivan
    0

    Is it possible to invoke the results of a XSLT file directly in frontend?

    Hi:

    I am trying to get ajax pagination with jquery work in a web site but i need only the html code returned by the macro i created and not the full html page code rendered.

    I mean, when you Visualize an XSLT file in the backend you get only the desired html code but when you render it in a template document in frontend you get full html page code, including html code generated by the macro.

    Is there a way to invoke the code generated by the macro like this "http://.../umbraco/developer/xslt/xsltVisualize.aspx?page=2" or something similiar?

    /Ivan

     

  • Morten Christensen 596 posts 2773 karma points admin hq c-trib
    Feb 10, 2010 @ 21:46
    Morten Christensen
    0

    Hi Ivan,

    It sounds like your template is inheirented from another template, so html and body tags appears around your Macro output. If you use a clean Template and insert your Macro here, you won't get anything other then your Macro/XSLT output - you control all of this your self.

    Your masterpage (Template) would look something like this, and would only render your XSLT:

    <%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>

    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
    <umbraco:Macro Alias="Your Macro Here" runat="server"></umbraco:Macro>
    </asp:Content>

    - Morten

  • Ivan 139 posts 302 karma points
    Feb 10, 2010 @ 22:10
    Ivan
    0

    That's exactly what i was looking for.

    Thanks a lot Morten!

Please Sign in or register to post replies

Write your reply to:

Draft