Copied to clipboard

Flag this post as spam?

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


  • Petr Snobelt 923 posts 1535 karma points
    Mar 24, 2010 @ 21:07
    Petr Snobelt
    1

    How is content stored?

    Hello,

    is content stored as xmlnodes or inside cdata section?

    I like to store same xml to work with using xslt, but default textbox multiline stores content inside cdata, and is harder to convert it back to xml nodes.

    Thank you

    Petr

  • Tommy Poulsen 514 posts 708 karma points
    Mar 25, 2010 @ 10:31
    Tommy Poulsen
    0

    Hi Peter, good point +1.

    The content is handled as basic text, passed on as the umbraco.interfaces.IData result of the datatype, and as I'm not doing anything specifically to save it any other way. In the same way, the text it added directly to the multiline textbox on load.

    I have not tried using it directly from xslt, but I'll try playing around with that.

    >Tommy

     

  • Tommy Poulsen 514 posts 708 karma points
    Mar 27, 2010 @ 23:50
    Tommy Poulsen
    0

    Now I uploaded a new version (0.3) of the TidyHtml datatype that supports saving the content as xml, in case you want to use- and query it from e.g. a xslt macro. The save-as-xml option must be enabled in your datatype setup.

    Download count reset - I forgot that, it's really annoying.

  • Petr Snobelt 923 posts 1535 karma points
    Mar 28, 2010 @ 07:58
    Petr Snobelt
    0

    Great

    Thank  you

  • Tommy Poulsen 514 posts 708 karma points
    Mar 28, 2010 @ 09:00
    Tommy Poulsen
    0

    You are welcome Petr - and obvious extension.

    I'm considering changing the name of the package to something else, btw, not sure what.

    >Tommy

Please Sign in or register to post replies

Write your reply to:

Draft