Click here to Skip to main content
15,885,216 members
Articles / Programming Languages / C#

sharpcms.net - CMS framework based on XSLT and XML

Rate me:
Please Sign up or sign in to vote.
5.00/5 (16 votes)
29 Nov 20053 min read 72.1K   3.3K   90  
CMS for .NET based on XSLT, XML and C#.
<settings>
  <templates>
    <show>~/Custom/Components/FrontEnd/Xsl/Show.xslt</show>
    <admin>~/System/Components/admin/Xsl/admin.xslt</admin>
    <choose>~/System/Components/admin/Xsl/choose.xslt</choose>
    <login>~/System/Components/Users/Xsl/login.xslt</login>
  </templates>
  <sitetree>
    <containers>
      <item>content</item>
    </containers>
    <stdpage>show/danish/about</stdpage>
    <elementlist>
      <paragraph>
        <item name="Header" attribute="header" type="text" />
        <item name="Header type" attribute="headerstyle" type="list">
          <item>Header1</item>
          <item>Header2</item>
        </item>
        <item name="Text" attribute="text" type="tinymce" height="300" />
        <item name="Link" attribute="link" type="choosepage" />
        <item name="Picture" attribute="picture" type="choosefile" />
        <item name="Picture pos." attribute="picturepos" type="list">
          <item>Left</item>
          <item>Right</item>
        </item>
      </paragraph>
      <coworker>
        <item name="Name" attribute="name" type="text" />
        <item name="Email" attribute="email" type="text" />
        <item name="Role" attribute="role" type="text" />
        <item name="Picture" attribute="picture" type="choosefile" />
        <item name="Text" attribute="text" type="textarea" />
        <item name="Category" attribute="category" type="text" />
      </coworker>
      <test>
        <item name="Name" attribute="name" type="text" />
        <item name="Email" attribute="email" type="text" />
        <item name="Role" attribute="role" type="text" />
        <item name="Picture" attribute="picture" type="choosefile" />
        <item name="Text" attribute="text" type="textarea" />
        <item name="Category" attribute="category" type="text" />
      </test>
      <top>
        <item name="Menu name" attribute="menuname" type="text" />
        <item name="Page name" attribute="pagename" type="text" />
        <item name="Last edited" attribute="lastedited" type="text" />
        <item name="Status" attribute="status" type="statuslist" />
          
          statuslist
        </top>
    </elementlist>
    <treeFilename>~/Custom/App_Data/database/tree.xml</treeFilename>
    <contentRoot>~/Custom/App_Data/database/site/</contentRoot>
    <contentFilenameFormat>{0}.xml</contentFilenameFormat>
    <pagestatus>
      <open>Show in menu</open>
      <hide>Hide from menu</hide>
      <closed>Not viewable</closed>
    </pagestatus>
  </sitetree>
  <general>
    <stdprocess>show/danish/about</stdprocess>
    <customrootcomponents>~/Custom/Components</customrootcomponents>
    <systemrootcomponents>~/System/Components</systemrootcomponents>
    <sitedataroot>~/Custom/App_Data</sitedataroot>
  </general>
  <admin>
    <menu>
      <item event="logout" weight="999">Log out</item>
      <item event="update" weight="998">Update system</item>
      <item event="clear" weight="997">Clear cache</item>
      <item path="admin/changelog" weight="22">Changelog</item>
      <item path="admin/file" weight="10">Files</item>
      <item path="admin/page" weight="0">Pages</item>
      <item path="admin/user" weight="20">Users</item>
    </menu>
  </admin>
  <common>
    <cleanChars>
      <anywhere>abcdefghijklomnopqrstuvwqxyz_</anywhere>
      <notInBeginning>1234567890-.</notInBeginning>
    </cleanChars>
    <mimetypes>
      <defaulttype>application/octet-stream</defaulttype>
      <bmp>image/bmp</bmp>
      <doc>application/msword</doc>
      <gif>image/gif</gif>
      <html>text/html</html>
      <htm>text/html</htm>
      <jpg>image/jpeg</jpg>
      <jpeg>image/jpeg</jpeg>
      <jpe>image/jpeg</jpe>
      <pdf>application/pdf</pdf>
      <png>image/png</png>
      <rtf>application/rtf</rtf>
      <tiff>image/tiff</tiff>
      <tif>image/tiff</tif>
      <txt>text/plain</txt>
      <xml>text/xml</xml>
      <xsl>text/xml</xsl>
      <xslt>text/xml</xslt>
      <xhtml>application/xhtml+xml</xhtml>
      <zip>application/zip</zip>
    </mimetypes>
  </common>
  <loadxml>
    <changelog>~/System/Components/Changelog/changelog.xml</changelog>
  </loadxml>
  <errorlog>
    <logpath>~/Custom/App_Data/log.log</logpath>
  </errorlog>
  <filetree>
    <filesPath>~/Custom/App_Data/Files</filesPath>
  </filetree>
  <users>
    <filename>~/Custom/App_Data/Users.xml</filename>
  </users>
  <test>
    <value name="test">aaa</value>
  </test>
</settings>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Denmark Denmark
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions