We are customizing Catalook , installing it on child portals to a main site.
All products are installed on portal 0 and managed from there but are sold via the child portals, which will all be different fund raisers.
There is an issue with downloads not happening because a separate file management for each child portal isn't created. The code that will create the path to the downloadable file is below. The entries have been created in the database. The folder part of the path does show up in Catalook but because the only full instance of Admin | File Management only lives on portal 0, the Portal ID value of any child portal doesn't create a file list in that folder path.
Is there a way to install independent File Management modules on child portals? If not, then portal 0 files will need to be referenced, if my terms are correct. This is in fact what will be happening anyway.
Altering the method GetFileList(_objPortal.PortalID, FileFilter, NoneSpecified, cboFolders.SelectedItem.Value, True) to read GetFileList(0, FileFilter, NoneSpecified, cboFolders.SelectedItem.Value, True) of course gets the drop down to populate with the file.
Of course I'm looking for a better answer than that. I'd like to just install enough of file management onto each child portal so that the Catalook code is left alone.
Hope I'm making sense -- somehow Portal 0 has to be referenced so that the download links on child portals will find files and work. A back end solution with our own tables is preferable to having to modify vendor code every time they update.
Ideas?
Private Function GetFileList(ByVal NoneSpecified As Boolean) As ArrayList
Dim fileList As ArrayList
If PortalSettings.ActiveTab.ParentId = PortalSettings.SuperTabId Then
fileList = Common.Globals.GetFileList(Null.NullInteger, FileFilter, NoneSpecified, cboFolders.SelectedItem.Value, True)
Else
fileList = Common.Globals.GetFileList(_objPortal.PortalID, FileFilter, NoneSpecified, cboFolders.SelectedItem.Value, True)
End If
Return fileList