config.tx 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <div id="backoffice">
  2. <p class="title">
  3. General settings:
  4. </p>
  5. This controls your Theme and Data Model used.
  6. The Data Model <em>must</em> be 0-configuration.
  7. If for example, you use mysql it will have to rely on either a local server, valid config file or connection proxy/pooler locally.
  8. <hr />
  9. <form class="Submissions Config" id="mainConfig" method="post" action="/config/save">
  10. Theme:
  11. <select class="cooltext" name="theme">
  12. <option value="" <: if ( $current_theme == '' ) { :>selected<: } :> >default</option>
  13. : for $themes -> $theme {
  14. <option value="<: $theme :>" <: if ( $current_theme == $theme ) { :>selected<: } :> ><: $theme :></option>
  15. : }
  16. </select>
  17. <div>
  18. Data Model:
  19. <select class="cooltext" name="data_model">
  20. : for $data_models -> $dm {
  21. <option value="<: $dm :>" <: if ( $current_data_model == $dm ) { :>selected<: } :> ><: $dm :></option>
  22. : }
  23. </select>
  24. </div>
  25. <div>
  26. Allow Embeds from:
  27. <input class="cooltext" type="textarea" name="embeds" value="<: $embeds :>" />
  28. </div>
  29. <br />
  30. <input type="submit" class="coolbutton" value="Commit Changes" />
  31. </form>
  32. <hr />
  33. <p class="title">
  34. Theme cloner:
  35. </p>
  36. Want to write your own theme?
  37. 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>
  38. for information on how tCMS' templates, image sets and CSS work in the theming system.
  39. <hr />
  40. <form class="Submissions" id="themeCloner" method="post" action="/themeclone">
  41. Theme:
  42. <select class="cooltext" name="theme">
  43. : for $themes -> $theme {
  44. <option value="<: $theme :>"><: $theme :></option>
  45. : }
  46. </select>
  47. <input required type="text" class="cooltext" placeholder="newTheme" name="newtheme" />
  48. <input type="submit" class="coolbutton" value="Clone" />
  49. </form>
  50. </div>