Re: Dynamic Path to Configurations file

  •  06-11-2008, 3:16 PM

    Re: Dynamic Path to Configurations file

    I need to set up diffrent companies to have diffrent permisions and I want to avoid having 100+ files
    Is their a way to have these be dynamic values:
     
    MaxImageSize
    MaxMediaSize
    MaxFlashSize
    MaxDocumentSize
    MaxTemplateSize
    ImageGalleryPath
    MediaGalleryPath FlashGalleryPath
    TemplateGalleryPath
    FilesGalleryPath
     
    the way I have the code right now is:
     
    <configuration>
     <security name="MaxImageSize">1000</security>
     <security name="MaxMediaSize">100000</security>
     <security name="MaxFlashSize">1000</security>
     <security name="MaxDocumentSize">1000</security>
     <security name="MaxTemplateSize">1000</security>
     <security name="ImageGalleryPath">/egallery/upload/Company_Name</security>
     <security name="MediaGalleryPath">/egallery/upload/Company_Name</security>
     <security name="FlashGalleryPath">/egallery/upload/Company_Name</security>
     <security name="TemplateGalleryPath">/egallery/upload</security>
     <security name="FilesGalleryPath">/egallery/upload</security> 
     <security name="AllowUpload">false</security>
    </configuration>
      
    This is the path of the file (Not sure if this matters)
    SiteRoot/Configuration/Security/default_Dev.config
     
    Thanks
    yaco
     
View Complete Thread