config.tx 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. : include "sysbar.tx";
  2. : include "jsalert.tx";
  3. <p class="title">
  4. General settings:
  5. </p>
  6. This controls your Theme and Data Model used.
  7. The Data Model *must* be 0-configuration.
  8. If for example, you use mysql it will have to rely on either a local server, valid config file or connection proxy/pooler locally.
  9. <hr />
  10. <form id="mainConfig" method="post" action="/config/save">
  11. Theme:
  12. <select class="cooltext" name="theme">
  13. <option value="" <: if ( $current_theme == '' ) { :>selected<: } :> >default</option>
  14. : for $themes -> $theme {
  15. <option value="<: $theme :>" <: if ( $current_theme == $theme ) { :>selected<: } :> ><: $theme :></option>
  16. : }
  17. </select>
  18. <br />
  19. Data Model:
  20. <select class="cooltext" name="data_model">
  21. : for $data_models -> $dm {
  22. <option value="<: $dm :>"><: $dm :></option>
  23. : }
  24. </select>
  25. <br /><br />
  26. <input type="submit" class="coolbutton" value="Commit Changes" />
  27. </form>
  28. <hr />
  29. <p class="title">
  30. User management:
  31. </p>
  32. Users and their sessions are stored in ~/.tcms/auth.db (sqlite3). All other user data is considered a post like any other.
  33. <hr />
  34. : include "mbengine.tx";
  35. <hr />
  36. <p class="title">
  37. Theme cloner:
  38. </p>
  39. Want to write your own theme?
  40. Clone a theme here then see the <a href="https://tcms.troglodyne.net/index.php?nav=5&post=fileshare/manual/Chapter 03-Customization.post" title="GET UR MIND RITE">styling guide</a>
  41. for information on how tCMS' templates, image sets and CSS work in the theming system.
  42. <hr />
  43. <form id="themeCloner" method="post" action="/themeclone">
  44. Theme:
  45. <select class="cooltext" name="theme">
  46. : for $themes -> $theme {
  47. <option value="<: $theme :>"><: $theme :></option>
  48. : }
  49. </select>
  50. <br />
  51. <input type="text" class="cooltext" placeholder="newTheme" name="newtheme" />
  52. <input type="submit" class="coolbutton" value="Clone" />
  53. </form>