Copied to clipboard

Flag this post as spam?

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


  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Feb 17, 2011 @ 09:33
    Sebastiaan Janssen
    4

    Razor implementation wishlist

    Just a few wishes:

    - Rename the python folder to something that's more fitting
    - Would it be very hard to use the ExpandoObject to make it possible to use Current.BodyText instead of Current.GetProperty("bodyText")? I've not played with this
    - For properties that store their value as an XML string it would be awesome if you could access that more easily (I've now solved it with a tiny little XML parser that takes.. XPath, which is what we're kinda trying to avoid with Razor).
    - Fix the issue where umbraco crashes if you add  to the web.config (which is what VS will do automatically if you add a .cshtml file).

    And I would LOVE a dedicated forum on our for Razor! :)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 17, 2011 @ 10:10
    Jan Skovgaard
    0

    Hi Seb

    Great suggestions there mate...have you made the feature request on codeplex so we can vote for it in there? :-)

    Harald Ulriksen already suggested a dedicated forum for Razor in our and on twitter, but that does'nt seem to have gotten any response from HQ/admins...:-/

    /Jan

  • Jonas Eriksson 930 posts 1825 karma points
    Feb 17, 2011 @ 11:35
    Jonas Eriksson
    0

    I guess Slace answered the path thing:

    http://www.aaron-powell.com/umbraco-4-and-razor

    "Razor files live along side the Iron* files in the /python folder (yeah, that's a hold over from the original DLR engine and changing it would be a breaking change so we have to live with it. Note - as Morten pointed out in the comments you can set <add key="umbracoPythonPath" value="~/Razor" /> and use a different path for script files), and you create them like you create any other DLR script file in the Umbraco back office:"

  • Jonas Eriksson 930 posts 1825 karma points
    Feb 20, 2011 @ 11:45
    Jonas Eriksson
    0

    Wishlist for the dynamicnode:

    return null or a default value (instead of throwing an error) when querying for non existant properties http://our.umbraco.org/forum/developers/api-questions/17383-DynamicNode-safe-property-(topnavigation-in-Razor)

    lambdas http://our.umbraco.org/forum/developers/api-questions/16034-Razor-@helper-in-Umbraco?p=1

    Cheers

    Jonas

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies