config.tx 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 <em>must</em> 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 class="Submissions Config" 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. <div>
  19. Data Model:
  20. <select class="cooltext" name="data_model">
  21. : for $data_models -> $dm {
  22. <option value="<: $dm :>" <: if ( $current_data_model == $dm ) { :>selected<: } :> ><: $dm :></option>
  23. : }
  24. </select>
  25. </div>
  26. <div>
  27. <span>Facebook App ID:</span>
  28. <input type="text" class="cooltext" name="fb_app_id" value="<: $fb_app_id :>" />
  29. </div>
  30. <br />
  31. <input type="submit" class="coolbutton" value="Commit Changes" />
  32. </form>
  33. <hr />
  34. <p class="title">
  35. Theme cloner:
  36. </p>
  37. Want to write your own theme?
  38. 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>
  39. for information on how tCMS' templates, image sets and CSS work in the theming system.
  40. <hr />
  41. <form class="Submissions" id="themeCloner" method="post" action="/themeclone">
  42. Theme:
  43. <select class="cooltext" name="theme">
  44. : for $themes -> $theme {
  45. <option value="<: $theme :>"><: $theme :></option>
  46. : }
  47. </select>
  48. <input required type="text" class="cooltext" placeholder="newTheme" name="newtheme" />
  49. <input type="submit" class="coolbutton" value="Clone" />
  50. </form>