Disable folder modify

Last post 11-01-2006, 12:41 AM by Adam. 3 replies.
Sort Posts: Previous Next
  •  10-31-2006, 2:28 PM 23924

    Disable folder modify

    I've created a site manager feature in editor which is based on inserttemplate.frame.asp page. Currently, the modify icon displays for folders and files.  How do I set it so that the modify icon only displays for files?
  •  10-31-2006, 2:34 PM 23925 in reply to 23924

    Re: Disable folder modify

    petert,
     
    Please open browse_Template.asp file and find the following code:
     
    For Each fol In sf 'add the html for the folders
       dim str_openfolderEvent
       str_openfolderEvent = "onclick=""parent.SetUpload_FolderPath('"&current_Path&folpath&fol.name&"');location.href='browse_Template.asp?loc=" & folpath & fol.name & "&MP="&current_Path&"';"""
       s = s & "<tr onMouseOver=""row_over(this)"" onMouseOut=""row_out(this)"">"
       s = s & "<td "&str_openfolderEvent&"><img vspace=""0"" hspace=""0"" src=""images/closedfolder.gif"" style=""VERTICAL-ALIGN: middle""></td>" & vbcrlf
       s = s & "<td valign=""top"" style=""cursor:pointer"" "&str_openfolderEvent&">" & vbcrlf
       s = s & fol.name & "&nbsp;&nbsp;</td>" & vbcrlf
       s = s & "<td NOWRAP style=""cursor:pointer;"" "&str_openfolderEvent&">" & FormatSize(fol.size) & "</td>"
       if CBool(AllowDelete) Then
        s = s & "<td NOWRAP style=""cursor:pointer; border:1px"" ><img vspace=""0"" hspace=""0"" src=""images/cut.gif"" onclick=""deletefolder('" & current_Path & folpath  & fol.name & "')"" alt=""Delete""></td>"
       End If

       if CBool(AllowRename) Then 
        s = s & "<td NOWRAP style=""cursor:pointer; border:1px"" ><img vspace=""0"" hspace=""0"" src=""images/edit.gif"" alt=""Rename"" onclick=""renamefolder('" & current_Path & folpath  & fol.name & "')""></td>"
       End If
      
       s = s & "</tr>" & vbcrlf
      Next
     
     
    And modify it to meet your own requirements.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-31-2006, 5:56 PM 23928 in reply to 23925

    Re: Disable folder modify

    Correction on my post.  File extension was aspx(.net), not asp.
    I don't have a file called browse_Template.asp. 
    I'm using Cute Editor for .NET (CuteEditor 5.3).  I thought this was posted in forum section for Cute Editor for .NET.
     
    FYI
    I posted this in forum for Cute Editor for .NET
     
  •  11-01-2006, 12:41 AM 23933 in reply to 23928

    Re: Disable folder modify

    >>I've created a site manager feature in editor which is based on inserttemplate.frame.asp page. Currently, the modify icon displays for folders and files.  How do I set it so that the modify icon only displays for files?
     
    I thought you are using asp version because the file name: inserttemplate.frame.asp. So I moved the thread to ASP forum.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML