config.tx 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <div id="backoffice">
  2. <p class="title">
  3. General settings:
  4. </p>
  5. Everything tCMS reads out of its configuration file lives here, grouped the way
  6. config/default.cfg groups it. Open the section you care about and leave the
  7. rest folded up.
  8. <br />
  9. The Data Model <em>must</em> be 0-configuration.
  10. If for example, you use mysql it will have to rely on either a local server, valid config file or connection proxy/pooler locally.
  11. <hr />
  12. <form class="Submissions Config" id="mainConfig" method="post" action="/config/save">
  13. : for $config_sections -> $section {
  14. <details class="config-section">
  15. <summary><: $section.title :></summary>
  16. : for $section.fields -> $field {
  17. <div class="config-field">
  18. <label for="config-<: $field.name :>"><: $field.title :></label>
  19. : if ( $field.comment ) {
  20. <p class="config-help"><: $field.comment :></p>
  21. : }
  22. : if ( $field.options ) {
  23. <select class="cooltext" id="config-<: $field.name :>" name="<: $field.name :>">
  24. : for $field.options -> $option {
  25. <option value="<: $option.value :>" <: if ( $option.selected ) { :>selected<: } :> ><: $option.label :></option>
  26. : }
  27. </select>
  28. : } else if ( $field.multiline ) {
  29. <textarea class="cooltext" id="config-<: $field.name :>" name="<: $field.name :>" rows="3" form="mainConfig"><: $field.value :></textarea>
  30. : } else {
  31. <input class="cooltext" type="text" id="config-<: $field.name :>" name="<: $field.name :>" value="<: $field.value :>" />
  32. : }
  33. </div>
  34. : }
  35. </details>
  36. : }
  37. <br />
  38. <input type="submit" class="coolbutton" value="Commit Changes" />
  39. </form>
  40. <hr />
  41. <p class="title">
  42. Theme cloner:
  43. </p>
  44. Want to write your own theme?
  45. 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>
  46. for information on how tCMS' templates, image sets and CSS work in the theming system.
  47. <hr />
  48. <form class="Submissions" id="themeCloner" method="post" action="/themeclone">
  49. Theme:
  50. <select class="cooltext" name="theme">
  51. : for $themes -> $theme {
  52. <option value="<: $theme :>"><: $theme :></option>
  53. : }
  54. </select>
  55. <input required type="text" class="cooltext" placeholder="newTheme" name="newtheme" />
  56. <input type="submit" class="coolbutton" value="Clone" />
  57. </form>
  58. </div>