File Content Repository - noogen/phuncms GitHub Wiki

FileContentRepository.cs

You want to quickly get a start on your project, this is the repository to use. It support absolute, relative, and azure local storage.

The only configuration that is required for this repository is the @repositorySource attribute as seen below.

    <configSections>
        <section name="phuncms" type="Phun.Configuration.PhunCmsConfigurationSection, Phun" 
                 requirePermission="false" />
    </configSections>
    <phuncms ...>
        <contentMap>
            <add route="CmsContent" repositoryType="file" 
                 repositorySource="App_Data\CmsContent" />
        </contentMap>
    </phuncms>

repositorySource

  • Absolute path example: c:\your\absolute\path or e:\path\to\your\file\store
  • Relative path example: App_Data\CmsContent or App_Content
  • Azure local storage: localresource:NameOfYourLocalResource or localresource:CmsContentCache
⚠️ **GitHub.com Fallback** ⚠️