Copied to clipboard

Flag this post as spam?

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


  • Gus Deadman 45 posts 65 karma points
    Jul 11, 2012 @ 14:01
    Gus Deadman
    0

    ALERT: In-line/page style in RazorLogin.cshtml

    Please be aware that in RazorLogin.cshtml there is a style statement which controls the colour of some of the text when including the login utility in a website.

    I'm not sure why it's there but if it is affecting your text colours and you don't know why you are likely to have a hell of a job trying to it track down. It took me three hours to find this and that was even though I knew what I was looking for. If you don't know the source of the issue it may take much longer.

    This is a prime example of why in-line/page styles are not a good idea, as unless you wrote the code you don't know why certain things are the way they are and have to go hunting around, which wastes time. The code to look for is here, commented out;

    @*<style type="text/css">

     p,label {color:white;}

    </style>*@

     

    A good idea is to remove this completely and control the text colours from the CSS files.

    Also remember that you cannot edit CSHTML files in Umbraco.

  • Thomas 66 posts 88 karma points
    Jul 13, 2012 @ 16:01
    Thomas
    0

    "Scripting files" in the developer section allows you to edit all the CSHTML you'd like directly from the backoffice.

  • Gus Deadman 45 posts 65 karma points
    Jul 13, 2012 @ 17:12
    Gus Deadman
    0

    Sorry I should have said you cannot edit CSHTML files in Umbraco if they are within a sub-folder of the Macroscripts folder for example uBlogsy CSHTML files. See

    http://our.umbraco.org/projects/starter-kits/ublogsy/ublogsy-bugs/26232-Scripting-file-could-not-be-saved

    Only if they are at the top level of the Scripting files section can they be edited so generally it's easier to edit them outside of Umbraco.

    Thanks for prompting the clarification.

Please Sign in or register to post replies

Write your reply to:

Draft