DotNetGallery with DotNetNuke, multiple folderpath's

Last post 05-25-2005, 10:27 PM by SimonH. 4 replies.
Sort Posts: Previous Next
  •  04-27-2005, 1:06 AM 6143

    DotNetGallery with DotNetNuke, multiple folderpath's

    Hi Adam
     
    The company I work for host a few portals and one of our customers have requested to use DotNetGallery. After a quick trial we brought the Developer licence.
     
    I have installed the control and it works fine but I have hit a problem.
     
    We have multiple portals but the dotnetgallerymodule.ascx is stored in the dotnetnuke directory and contains the "path" of the folder that contains the images. We dont want all our customers sharing the same Image directory.
    I have seen in .NET examples that you can specify the folder path but how can you do this in dotnetnuke?

    We also have a customer who wants to use the control to view images in multiple directories.... if we could specify the Folderpath then this would fix this problem too.

    Thanks for your time on this one Adam

    Best Regards

    Simon
     
     
  •  04-27-2005, 8:43 PM 6207 in reply to 6143

    Re: DotNetGallery with DotNetNuke, multiple folderpath's

    Simon,
     
    You can specify the folder path based on the user role in the dotnetgallery as well.
     
    For example:
     
    You can do something like this:
     
    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
         If IsAdmin Then
             gallery1.FolderPath= "/Admin_imageFolder/"
             gallery1.ShowBatchBuild = True    
         Else
             gallery1.FolderPath= "/user_imageFolder/"
             gallery1.ShowBatchBuild = Fasle
         End If
     End Sub
     
    Hope it helps.
     
     

    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

  •  05-24-2005, 1:17 AM 6950 in reply to 6207

    Re: DotNetGallery with DotNetNuke, multiple folderpath's

    Hi Adam

    Sorry for this but I am struggling. Where in dotNetNuke should the code mentioned above go?

    Best Regards

    Simon
     
  •  05-24-2005, 10:23 AM 6957 in reply to 6950

    Re: DotNetGallery with DotNetNuke, multiple folderpath's

    Simon,
     
    For the dotnetnuke, you can do this:

    Isadmin = PortalSecurity.IsInRoles("Administrators")
     
     

    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

  •  05-25-2005, 10:27 PM 7017 in reply to 6957

    Re: DotNetGallery with DotNetNuke, multiple folderpath's

    Hi Adam
     
    My problem isnt with who is the Administrator and who is the user, I just want to be able to set a different folderpath for each Page / tab in a portal.
     
    The code you initially gave does what I want to do in an ASP project.

    My question is how do I ( or my customers who design their own portal) use that code in DotNetNuke? Our customers design their own portal by using DotNetNuke to create pages/Tabs and attach modules to these pages/Tabs. They do not see any ASP. I am happy to help out but you dont see an ASP page in DotNetNuke, the page is created dynaically from configuration in the database. I am hoping you have used dotNetGallery in dotNetNuke more than I, so know more about how to change properties on the control in dotNetNuke.
     
    Best Regards
     
    Simon
View as RSS news feed in XML