Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

File Content Repository

noogen edited this page Mar 31, 2013 · 2 revisions

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
Clone this wiki locally