Copied to clipboard

Flag this post as spam?

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


  • hetaurhet 245 posts 267 karma points
    Feb 14, 2012 @ 05:32
    hetaurhet
    0

    razor scripts folder

    after installing the package, under developer section, scripting files node it creates one folder ublogsy which is having all razor scripts.

    But when I click on any razor file... it shows the content in very small window and also file name appears as uBlogsy\uBlogsyBrowserTitle.cshtml and not uBlogsy/uBlogsyBrowserTitle.cshtml. i.e. '/' problem.

    Why is it so? How can I see whole file content? When I click on any other razor scripts they are shown properly.

    I am using 4.7.1.

     

  • hetaurhet 245 posts 267 karma points
    Feb 14, 2012 @ 10:25
    hetaurhet
    0

    also, noticed now that scripts files are not getting saved. Is it problem of ublogsy or umbraco that it doesnot allow scripts in sub-folder?

     

  • Trevor Loader 199 posts 256 karma points
    Feb 14, 2012 @ 18:09
    Trevor Loader
    0

    I noticed this too when I wanted to tweak one or two of them.

    However, you can copy the text and create a duplicate one at the scripts root level.  Even though the ones in the uBlogsy sub folder don't save, then will delete ok.

    You then need to ensure that the macro points to the new script and that any uBlogsy scripts that call rendermacro on the old script or updated with the new path.

    Hope that workaround helps.

  • hetaurhet 245 posts 267 karma points
    Feb 16, 2012 @ 13:53
    hetaurhet
    0

    yes that is one solution. but didnt wanted to change at all places the path of scripts...

    anyways thanks.

  • Fros Kouri 5 posts 25 karma points
    Feb 16, 2012 @ 18:59
    Fros Kouri
    0

    Found another workaround here: http://umbraco.codeplex.com/workitem/30422

    It seems that if you change the backslash (\) to a forward slash (/) in the filename, the file gets saved. The only problem is that you have to do that every time you want to change the file.

  • hetaurhet 245 posts 267 karma points
    Feb 17, 2012 @ 07:06
    hetaurhet
    0

    ok.. wil check out

Please Sign in or register to post replies

Write your reply to:

Draft