This project is read-only.
1

Closed

Content was not being rendered when no user was authenticated

description

When checking for AllowEdit, I was returning empty string, needed to return content.
 
public static string CheckForEditMode(string ContentName, string content)
    {
        if (!Jot.AllowEdit())
            return content;
 
        string editHandle = String.Format(@"<a href='javascript:OpenContentEdit(""{0}"")'><img src='/JotCMS/images/editContent.png' alt='click to Edit Content'></a>", ContentName);
 
        // if in edit mode
        if (Jot.GetCurrentJotMode() == Jot.JotMode.Edit)
            content += editHandle;
 
        return content;
    }
Closed Oct 28, 2010 at 1:15 PM by jordan112
Fixed within Jot.cs class and uploaded to Downloads section.

comments